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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5c3040]
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 0x4b137f
test ebx, ebx
je 0x4b1384
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 0x4b13a0
sub ecx, edx
mov dword [edi + 0x10b88], ecx
test ebx, ebx
je 0x4b147a
mov cl, byte [edi + 0x109f0]
lea eax, [edi + 0x109f0]
test cl, cl
je 0x4b13de
cmp cl, 0x5c
jne 0x4b13cf
mov byte [eax], 0x2f
push eax
call fcn.0053f49e
add esp, 4
mov cl, byte [eax]
test cl, cl
jne 0x4b13c7
mov al, byte [edi + 0x109f0]
lea ebx, [edi + 0x109f0]
mov dword [ebp - 0x114], ebx
cmp al, 0x2f
jne 0x4b140a
mov dword [edi + 0x10b84], 1
inc ebx
mov word [ebp - 0x110], 0x2f
jmp 0x4b146e
movzx eax, al
push eax
call fcn.00535160
add esp, 4
test eax, eax
je 0x4b1474
cmp byte [edi + 0x109f1], 0x3a
jne 0x4b1474
mov dword [edi + 0x10b84], 1
lea edx, [ebx + 1]
movzx eax, byte [ebx]
mov cl, byte [ebx + 2]
mov byte [ebp - 0x110], al
movzx eax, byte [ebx + 1]
mov byte [ebp - 0x10f], al
cmp cl, 0x2f
jne 0x4b1451
mov byte [ebp - 0x10e], cl
lea eax, [ebp - 0x10e]
lea esi, [ebp - 0x10d]
cmove eax, esi
xor ebx, ebx
cmp cl, 0x2f
sete bl
inc ebx
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.004b1cf0
add esp, 4
mov dword [ebp - 0x118], eax
test eax, eax
jne 0x4b1af8
lea ebx, [ebp - 0x110]
mov byte [ebp - 0x110], al
cmp dword [ebp - 0x124], eax
jne 0x4b14e3
cmp dword [edi + 0x24], eax
je 0x4b14c6
lea ecx, [edi + 0x109f0]
push 0x2f
push ecx
call fcn.00535b2d
add esp, 8
mov esi, eax
lea ecx, [edi + 0x109f0]
test esi, esi
jne 0x4b14da
mov esi, ecx
mov dword [ebp - 0x114], esi
jmp 0x4b14e9
inc esi
mov dword [ebp - 0x114], esi
jmp 0x4b14e9
lea ecx, [edi + 0x109f0]
movzx esi, byte [esi]
test esi, esi
je 0x4b1768
lea eax, [esi - 0x20]
cmp eax, 0x5c
ja case.0x4b1507.33
movzx eax, byte [eax + 0x4b1b20]
jmp dword [eax*4 + 0x4b1b0c]
lea eax, [edi + 0x10980]
mov byte [ebx], 0
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.005369ef
add esp, 8
test eax, eax
jne 0x4b156d
mov eax, 0x2000
test word [edi + 0x10986], ax
je 0x4b156d
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b1542
sub ecx, edx
add ecx, 1
je 0x4b1563
mov al, byte [ebp + ecx - 0x111]
mov byte [ebp + ecx - 0x110], al
sub ecx, 1
jne 0x4b1550
mov bl, 0x5f
mov byte [ebp - 0x110], bl
jmp 0x4b1573
mov bl, byte [ebp - 0x110]
mov ecx, 0x5aea3c
lea eax, [ebp - 0x110]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b15a0
test dl, dl
je 0x4b159c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b15a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b1580
xor eax, eax
jmp 0x4b15a5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b15c0
mov byte [ebp - 0x110], al
lea ebx, [ebp - 0x110]
mov dword [ebp - 0x120], eax
jmp 0x4b165a
cmp dword [edi + 0x64], 0
jne 0x4b1618
mov ecx, 0x5aea40
lea eax, [ebp - 0x110]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4b15f1
test dl, dl
je 0x4b15ed
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4b15f1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4b15d1
xor eax, eax
jmp 0x4b15f6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4b1618
mov byte [ebp - 0x110], al
lea ebx, [ebp - 0x110]
mov dword [ebp - 0x11c], 1
mov dword [ebp - 0x120], eax
jmp 0x4b165a
test bl, bl
je 0x4b1646
push 2
lea edx, [ebp - 0x110]
mov ecx, edi
call fcn.004b1cf0
mov ecx, eax
add esp, 4
and eax, 0x7f00
mov dword [ebp - 0x118], ecx
cmp eax, 0x100
ja 0x4b16f7
xor eax, eax
lea ebx, [ebp - 0x110]
mov dword [ebp - 0x120], eax
jmp 0x4b165a
mov byte [ebx], 0x5f
inc ebx
mov esi, dword [ebp - 0x114]
push esi
call fcn.0053f49e
add esp, 4
mov dword [ebp - 0x114], eax
movzx esi, byte [eax]
test esi, esi
je 0x4b170a
lea ecx, [edi + 0x109f0]
jmp 0x4b14f4
mov dword [ebp - 0x120], ebx
mov byte [ebx], 0x3b
jmp 0x4b1659
cmp dword [edi + 0x3c], 0
jne 0x4b16b2
mov edx, ecx
mov ecx, edi
call fcn.004b0c10
test eax, eax
je 0x4b16ac
cmp dword [edi + 0x10b94], 0
jne 0x4b16b2
mov al, 0x20
mov byte [ebx], al
jmp 0x4b1659
mov al, 0x5f
mov byte [ebx], al
jmp 0x4b1659
push esi
call fcn.00535310
add esp, 4
test eax, eax
jne 0x4b16ca
cmp esi, 0x7f
jb 0x4b165a
call fcn.005401be
mov esi, dword [ebp - 0x114]
push eax
push esi
call fcn.0054013e
push eax
push esi
push ebx
call fcn.005264b0
add esp, 0x14
push ebx
call fcn.0053f49e
add esp, 4
mov ebx, eax
jmp 0x4b1660
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00524763
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 0
je 0x4b1768
cmp dword [edi + 0x38], 0
jne 0x4b1768
push 0
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
lea esi, [edi + 0x8dc]
call fcn.004bb930
push ecx
push eax
push str.warning:__skipped__..___path_component_s__in__s_n
push esi
call fcn.004ae360
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 0x4b1768
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 0x4b17c4
nop dword [eax + eax]
test ecx, ecx
je 0x4b17be
mov dword [ebp - 0x114], esi
call fcn.005401be
push eax
push esi
call fcn.0054013e
mov ecx, dword [ebp - 0x11c]
add esi, eax
sub ecx, eax
add esp, 8
mov dword [ebp - 0x11c], ecx
cmp byte [esi], 0
jne 0x4b1790
mov eax, dword [ebp - 0x114]
cmp byte [eax], 0x2f
jne 0x4b1920
lea ebx, [edi + 0x109f0]
mov ecx, edi
push 4
mov edx, ebx
call fcn.004b1cf0
add esp, 4
cmp dword [edi + 0x10b80], 0
je 0x4b189c
cmp dword [edi + 0x38], 0
jne 0x4b1824
push 0
lea edx, [edi + 0x88dc]
mov ecx, ebx
lea esi, [edi + 0x8dc]
call fcn.004bb930
push ecx
push eax
push str.___creating:___22s_n
push esi
call fcn.004ae360
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 0x4b187b
and eax, 0x7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b187b
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
lea esi, [edi + 0x8dc]
call fcn.004bb930
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.004ae360
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.00524763
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x78], 1
jne 0x4b18ff
mov eax, dword [edi + 0x8d8]
mov eax, dword [eax + 0x14]
test al, 0x6f
je 0x4b18ff
and eax, 0x7f
push eax
lea eax, [edi + 0x109f0]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4b18ff
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
lea esi, [edi + 0x8dc]
call fcn.004bb930
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.004ae360
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.00524763
mov esp, ebp
pop ebp
ret
mov byte [ebx], 0
cmp dword [edi + 0x54], 0
jne 0x4b1961
mov ebx, dword [ebp - 0x120]
test ebx, ebx
je 0x4b1961
movzx eax, byte [ebx + 1]
lea esi, [ebx + 1]
push eax
call fcn.005351f0
add esp, 4
test eax, eax
je 0x4b1959
movzx eax, byte [esi + 1]
inc esi
push eax
call fcn.005351f0
add esp, 4
test eax, eax
jne 0x4b1947
cmp byte [esi], 0
jne 0x4b1961
mov byte [ebx], 0
lea eax, [edi + 0x10980]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.005369ef
add esp, 8
test eax, eax
jne 0x4b19bd
mov eax, 0x2000
test word [edi + 0x10986], ax
je 0x4b19bd
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b1992
sub ecx, edx
add ecx, 1
je 0x4b19b3
mov al, byte [ebp + ecx - 0x111]
mov byte [ebp + ecx - 0x110], al
sub ecx, 1
jne 0x4b19a0
mov al, 0x5f
mov byte [ebp - 0x110], al
jmp 0x4b19c3
mov al, byte [ebp - 0x110]
test al, al
jne 0x4b1a1c
push 1
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
lea esi, [edi + 0x8dc]
call fcn.004bb930
push ecx
push eax
push str.mapname:__conversion_of__s_failed_n
push esi
call fcn.004ae360
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.00524763
mov esp, ebp
pop ebp
ret
push 3
lea edx, [ebp - 0x110]
mov ecx, edi
call fcn.004b1cf0
add esp, 4
lea edx, [edi + 0x109f0]
mov ecx, edi
push 4
call fcn.004b1cf0
mov eax, dword [edi + 0x8d8]
add esp, 4
test byte [eax + 0x18], 0x20
je 0x4b1af2
movzx eax, byte [edi + 0x10b8c]
add al, 0x60
cmp dword [edi + 0x38], 0
mov byte [ebp - 0x114], al
mov ax, word [0x5b6ac4]
mov word [ebp - 0x113], ax
movzx eax, byte [0x5b6ac6]
mov byte [ebp - 0x111], al
jne 0x4b1aba
push 0
lea edx, [edi + 0x88dc]
lea ecx, [edi + 0x109f0]
lea esi, [edi + 0x8dc]
call fcn.004bb930
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
push str.labelling__s___22s_n
push esi
call fcn.004ae360
add esp, 0x14
push eax
mov eax, dword [edi + 0x10b54]
push esi
push edi
call eax
lea eax, [edi + 0x109f0]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
test eax, eax
jne 0x4b18ff
push 1
push ecx
lea esi, [edi + 0x8dc]
push str.mapname:__error_setting_volume_label_n
push esi
call fcn.004ae360
add esp, 0xc
jmp 0x4b19f0
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00524763
mov esp, ebp
pop ebp
ret