Function at 0x4a4ba0
Capabilities:
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5b0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x120], eax
mov ebx, edx
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x11c], eax
cmp dword [edi + 0x1c], eax
je 0x4a4bdf
test ebx, ebx
je 0x4a4be4
mov eax, 1
lea ecx, [edi + 0x109f0]
mov dword [edi + 0x7c], eax
mov dword [edi + 0x10b80], esi
lea edx, [ecx + 1]
mov dword [edi + 0x10b84], esi
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4c00
sub ecx, edx
mov dword [edi + 0x10b88], ecx
test ebx, ebx
je 0x4a4cdf
lea ebx, [edi + 0x109f0]
mov ecx, ebx
mov al, byte [ecx]
test al, al
je 0x4a4c43
cmp al, 0x5c
jne 0x4a4c2c
mov byte [ecx], 0x2f
push ecx
call fcn.00530e94
mov ecx, eax
add esp, 4
mov al, byte [ecx]
test al, al
jne 0x4a4c25
mov al, byte [edi + 0x109f0]
mov dword [ebp - 0x114], ebx
cmp al, 0x2f
jne 0x4a4c63
mov dword [edi + 0x10b84], 1
inc ebx
mov word [ebp - 0x110], 0x2f
jmp 0x4a4cd3
movzx eax, al
push eax
call fcn.0052db70
add esp, 4
test eax, eax
je 0x4a4cd9
cmp byte [edi + 0x109f1], 0x3a
jne 0x4a4cd9
mov dword [edi + 0x10b84], 1
lea edx, [ebx + 2]
movzx eax, byte [ebx]
mov esi, 0x2f
mov cl, byte [ebx + 2]
mov byte [ebp - 0x110], al
cmp cl, 0x2f
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x10f], al
movzx eax, byte [ebp - 0x10e]
cmove eax, esi
lea esi, [ebp - 0x10d]
mov byte [ebp - 0x10e], al
lea eax, [ebp - 0x10e]
cmove eax, esi
xor ebx, ebx
cmp cl, 0x2f
sete bl
mov byte [eax], 0
add ebx, edx
mov dword [ebp - 0x114], ebx
mov esi, dword [ebp - 0x114]
push 1
lea edx, [ebp - 0x110]
mov ecx, edi
call fcn.004a5560
add esp, 4
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x4a5359
lea ebx, [ebp - 0x110]
mov byte [ebp - 0x110], al
cmp dword [ebp - 0x124], eax
jne 0x4a4d48
cmp dword [edi + 0x24], eax
je 0x4a4d2b
lea ecx, [edi + 0x109f0]
push 0x2f
push ecx
call fcn.0052c5db
add esp, 8
mov esi, eax
lea ecx, [edi + 0x109f0]
test esi, esi
jne 0x4a4d3f
mov esi, ecx
mov dword [ebp - 0x114], esi
jmp 0x4a4d4e
inc esi
mov dword [ebp - 0x114], esi
jmp 0x4a4d4e
lea ecx, [edi + 0x109f0]
movzx esi, byte [esi]
test esi, esi
je 0x4a4fd8
nop dword [eax]
lea eax, [esi - 0x20]
cmp eax, 0x5c
ja case.0x4a4d73.33
movzx eax, byte [eax + 0x4a5380]
jmp dword [eax*4 + 0x4a536c]
lea eax, [edi + 0x10980]
mov byte [ebx], 0
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0052d362
add esp, 8
test eax, eax
jne 0x4a4ddd
mov eax, 0x2000
test word [edi + 0x10986], ax
je 0x4a4ddd
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4db0
sub ecx, edx
add ecx, 1
je 0x4a4dd3
nop
mov al, byte [ebp + ecx - 0x111]
mov byte [ebp + ecx - 0x110], al
sub ecx, 1
jne 0x4a4dc0
mov bl, 0x5f
mov byte [ebp - 0x110], bl
jmp 0x4a4de3
mov bl, byte [ebp - 0x110]
mov ecx, 0x59df74
lea eax, [ebp - 0x110]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a4e10
test dl, dl
je 0x4a4e0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a4e10
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a4df0
xor eax, eax
jmp 0x4a4e15
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a4e30
mov byte [ebp - 0x110], al
lea ebx, [ebp - 0x110]
mov dword [ebp - 0x120], eax
jmp 0x4a4eca
cmp dword [edi + 0x64], 0
jne 0x4a4e88
mov ecx, 0x59df78
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a4e61
test dl, dl
je 0x4a4e5d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a4e61
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a4e41
xor eax, eax
jmp 0x4a4e66
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a4e88
mov byte [ebp - 0x110], al
lea ebx, [ebp - 0x110]
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x120], eax
jmp 0x4a4eca
test bl, bl
je 0x4a4eb6
push 2
lea edx, [ebp - 0x110]
mov ecx, edi
call fcn.004a5560
mov ecx, eax
add esp, 4
and eax, 0x7f00
mov dword [ebp - 0x118], ecx
cmp eax, 0x100
ja 0x4a4f67
xor eax, eax
lea ebx, [ebp - 0x110]
mov dword [ebp - 0x120], eax
jmp 0x4a4eca
mov byte [ebx], 0x5f
inc ebx
mov esi, dword [ebp - 0x114]
push esi
call fcn.00530e94
add esp, 4
mov dword [ebp - 0x114], eax
movzx esi, byte [eax]
test esi, esi
je 0x4a4f7a
lea ecx, [edi + 0x109f0]
jmp 0x4a4d60
mov dword [ebp - 0x120], ebx
mov byte [ebx], 0x3b
jmp 0x4a4ec9
cmp dword [edi + 0x3c], 0
jne 0x4a4f22
mov edx, ecx
mov ecx, edi
call fcn.004a4460
test eax, eax
je 0x4a4f1c
cmp dword [edi + 0x10b94], 0
jne 0x4a4f22
mov cl, 0x20
mov byte [ebx], cl
jmp 0x4a4ec9
mov cl, 0x5f
mov byte [ebx], cl
jmp 0x4a4ec9
push esi
call fcn.0052dc90
add esp, 4
test eax, eax
jne 0x4a4f3a
cmp esi, 0x7f
jb 0x4a4eca
call fcn.00531c59
mov esi, dword [ebp - 0x114]
push eax
push esi
call fcn.00531ad9
push eax
push esi
push ebx
call fcn.0051a200
add esp, 0x14
push ebx
call fcn.00530e94
add esp, 4
mov ebx, eax
jmp 0x4a4ed0
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 0
je 0x4a4fd8
cmp dword [edi + 0x38], 0
jne 0x4a4fd8
push 0
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
lea esi, [edi + 0x8dc]
call fcn.004af020
push ecx
push eax
push str.warning:__skipped__..___path_component_s__in__s_n
push esi
call fcn.004a1b80
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov eax, dword [ebp - 0x118]
test eax, 0xffff80ff
jne 0x4a4fd8
and eax, 0x7f00
or eax, 1
mov dword [ebp - 0x118], eax
cmp byte [edi + 0x109f0], 0
lea esi, [edi + 0x109f0]
mov ecx, dword [edi + 0x10b88]
mov eax, esi
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], eax
je 0x4a5034
nop dword [eax + eax]
test ecx, ecx
je 0x4a502e
mov dword [ebp - 0x114], esi
call fcn.00531c59
push eax
push esi
call fcn.00531ad9
mov ecx, dword [ebp - 0x11c]
add esi, eax
sub ecx, eax
add esp, 8
mov dword [ebp - 0x11c], ecx
cmp byte [esi], 0
jne 0x4a5000
mov eax, dword [ebp - 0x114]
cmp byte [eax], 0x2f
jne 0x4a518a
lea ebx, [edi + 0x109f0]
mov ecx, edi
push 4
mov edx, ebx
call fcn.004a5560
add esp, 4
cmp dword [edi + 0x10b80], 0
je 0x4a5110
cmp dword [edi + 0x38], 0
lea esi, [edi + 0x8dc]
jne 0x4a5098
push 0
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.004af020
push ecx
push eax
push str.___creating:___22s_n
push esi
call fcn.004a1b80
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov eax, dword [edi + 0x8d8]
mov eax, dword [eax + 0x14]
test al, 0x6f
je 0x4a50ef
and eax, 0x7f
push eax
lea eax, [edi + 0x109f0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a50ef
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
call fcn.004af020
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_for__s_n
push esi
call fcn.004a1b80
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov eax, dword [ebp - 0x118]
and eax, 0xffff90ff
or eax, 0x1000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x78], 1
jne 0x4a5169
mov eax, dword [edi + 0x8d8]
mov eax, dword [eax + 0x14]
test al, 0x6f
je 0x4a5169
and eax, 0x7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a5169
push 1
lea edx, [edi + 0x88dc]
mov ecx, ebx
lea esi, [edi + 0x8dc]
call fcn.004af020
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_for__s_n
push esi
call fcn.004a1b80
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov eax, dword [ebp - 0x118]
and eax, 0xffff82ff
or eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov byte [ebx], 0
cmp dword [edi + 0x54], 0
jne 0x4a51cb
mov ebx, dword [ebp - 0x120]
test ebx, ebx
je 0x4a51cb
movzx eax, byte [ebx + 1]
lea esi, [ebx + 1]
push eax
call fcn.0052dc00
add esp, 4
test eax, eax
je 0x4a51c3
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.0052dc00
add esp, 4
test eax, eax
jne 0x4a51b1
cmp byte [esi], 0
jne 0x4a51cb
mov byte [ebx], 0
lea eax, [edi + 0x10980]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.0052d362
add esp, 8
test eax, eax
jne 0x4a52f1
mov eax, 0x2000
test word [edi + 0x10986], ax
je 0x4a52f1
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5204
sub ecx, edx
add ecx, 1
je 0x4a5225
mov al, byte [ebp + ecx - 0x111]
mov byte [ebp + ecx - 0x110], al
sub ecx, 1
jne 0x4a5212
mov byte [ebp - 0x110], 0x5f
push 3
lea edx, [ebp - 0x110]
mov ecx, edi
call fcn.004a5560
add esp, 4
lea ebx, [edi + 0x109f0]
mov edx, ebx
mov ecx, edi
push 4
call fcn.004a5560
mov eax, dword [edi + 0x8d8]
add esp, 4
test byte [eax + 0x18], 0x20
je 0x4a5353
movzx eax, byte [edi + 0x10b8c]
lea esi, [edi + 0x8dc]
add al, 0x60
cmp dword [edi + 0x38], 0
mov byte [ebp - 0x114], al
mov ax, word [0x5a5c8c]
mov word [ebp - 0x113], ax
movzx eax, byte [0x5a5c8e]
mov byte [ebp - 0x111], al
jne 0x4a52c8
push 0
lea edx, [edi + 0x88dc]
mov ecx, ebx
call fcn.004af020
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push str.labelling__s___22s_n
push esi
call fcn.004a1b80
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
push ebx
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
jne 0x4a5169
push 1
push ecx
push str.mapname:__error_setting_volume_label_n
push esi
call fcn.004a1b80
add esp, 0xc
jmp 0x4a5327
cmp byte [ebp - 0x110], 0
jne 0x4a522c
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
lea esi, [edi + 0x8dc]
call fcn.004af020
push ecx
push eax
push str.mapname:__conversion_of__s_failed_n
push esi
call fcn.004a1b80
add esp, 0x10
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
mov eax, dword [ebp - 0x118]
and eax, 0xffff83ff
or eax, 0x300
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00518799
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00518799
mov esp, ebp
pop ebp
ret