Function at 0x40b0f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov edi, edx
mov esi, ecx
call fcn.004e2710
mov dword [esi + 0x5c], edx
mov dword [esi + 0x58], eax
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
movzx eax, byte [edi]
test al, 1
je 0x40b152
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
jmp 0x40b157
lea ecx, [edi + 1]
shr eax, 1
mov al, byte [ecx + eax - 1]
mov edx, dword [ebp + 8]
cmp al, 0x2f
je 0x40b172
cmp al, 0x5c
je 0x40b172
mov ecx, edi
push 0x5c
call fcn.00556a60
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
test al, 1
je 0x40b181
mov ecx, dword [edx + 8]
mov eax, dword [edx + 4]
jmp 0x40b186
lea ecx, [edx + 1]
shr eax, 1
cmp byte [ecx + eax - 1], 0x2f
mov dword [esp + 0x6c], edi
mov dword [esp + 4], esi
je 0x40b1a1
mov ecx, edx
push 0x2f
call fcn.00556a60
mov edx, dword [ebp + 8]
lea ebx, [esp + 0x38]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov ecx, ebx
push edx
call fcn.00556b50
lea edi, [esp + 0x18]
lea esi, [esp + 8]
jmp 0x40b204
mov eax, dword [esp + 0x10]
movsd xmm0, qword [esp + 8]
mov dword [esp + 0x40], eax
movsd qword [esp + 0x38], xmm0
movzx eax, byte [esp + 0x38]
test al, 1
je 0x40b220
mov eax, dword [esp + 0x3c]
cmp eax, 1
je 0x40b227
jmp 0x40b241
shr eax, 1
cmp eax, 1
jne 0x40b241
mov ecx, ebx
push 1
push 0x584a4f
push 0xffffffffffffffff
push 0
call fcn.0053da20
test eax, eax
je 0x40b2c3
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x20]
je 0x40b260
push ebx
call fcn.00556b50
add dword [esp + 0x1c], 0xc
jmp 0x40b268
mov ecx, edi
push ebx
call fcn.00575bb0
push ebx
push esi
call fcn.004dcea0
add esp, 8
test byte [esp + 0x38], 1
jne 0x40b290
mov word [esp + 0x38], 0
jmp 0x40b1f0
mov eax, dword [esp + 0x40]
mov byte [eax], 0
mov dword [esp + 0x3c], 0
test byte [esp + 0x38], 1
je 0x40b1f0
push dword [esp + 0x40]
call fcn.004fc300
add esp, 4
mov dword [esp + 0x38], 0
jmp 0x40b1f0
test byte [esp + 0x38], 1
je 0x40b2d6
push dword [esp + 0x40]
call fcn.004fc300
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x40b32c
add ecx, 0xfffffff4
cmp eax, ecx
jae 0x40b32c
add eax, 0xc
nop dword [eax]
mov edx, dword [eax - 4]
mov dword [esp + 0x40], edx
movsd xmm0, qword [eax - 0xc]
movsd qword [esp + 0x38], xmm0
mov edx, dword [ecx + 8]
mov dword [eax - 4], edx
movsd xmm0, qword [ecx]
movsd qword [eax - 0xc], xmm0
mov edx, dword [esp + 0x40]
mov dword [ecx + 8], edx
movsd xmm0, qword [esp + 0x38]
movsd qword [ecx], xmm0
add ecx, 0xfffffff4
cmp eax, ecx
lea eax, [eax + 0xc]
jb 0x40b2f0
mov ecx, dword [esp + 4]
lea edx, [esp + 0x24]
push dword [ebp + 8]
push dword [esp + 0x70]
push edi
call fcn.0040d130
add esp, 0xc
test al, al
je 0x40b8d6
mov eax, dword [0x5bc598]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x40], 0
mov edi, dword [eax]
push edi
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40b98e
mov ecx, eax
mov eax, dword [esp + 4]
mov dword [esp + 0x34], edi
cmp ecx, 0xb
lea eax, [eax + 0xc]
mov dword [esp + 0x14], eax
jae 0x40b3a5
mov eax, ecx
lea edi, [esp + 0x39]
add al, cl
test ecx, ecx
mov byte [esp + 0x38], al
jne 0x40b3cf
jmp 0x40b3e5
mov esi, ecx
add esi, 0x10
and esi, 0xfffffff0
push esi
mov edi, ecx
call fcn.004fc150
mov ecx, edi
add esp, 4
or esi, 1
mov dword [esp + 0x40], eax
mov edi, eax
mov dword [esp + 0x38], esi
lea esi, [esp + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], ecx
push ecx
push dword [esp + 0x38]
push edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov byte [edi + ecx], 0
push ebx
push dword [esp + 0x18]
call fcn.004277d0
add esp, 8
test al, al
je 0x40b424
xor eax, eax
test byte [esp + 0x38], 1
je 0x40b4d9
push dword [esp + 0x40]
mov edi, eax
call fcn.004fc300
mov eax, edi
add esp, 4
test al, al
je 0x40b6a5
jmp 0x40b4e1
mov eax, dword [0x5bc5a4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov edi, dword [eax]
push edi
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40b997
mov ecx, eax
cmp eax, 0xb
mov dword [esp + 0x34], edi
jae 0x40b472
mov eax, ecx
lea edi, [esp + 9]
add al, cl
test ecx, ecx
mov byte [esp + 8], al
jne 0x40b49c
jmp 0x40b4b2
mov esi, ecx
add esi, 0x10
and esi, 0xfffffff0
push esi
mov edi, ecx
call fcn.004fc150
mov ecx, edi
add esp, 4
or esi, 1
mov dword [esp + 0x10], eax
mov edi, eax
mov dword [esp + 8], esi
lea esi, [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x30], ecx
push ecx
push dword [esp + 0x38]
push edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov byte [edi + ecx], 0
push esi
push dword [esp + 0x18]
call fcn.004277d0
add esp, 8
test byte [esp + 8], 1
jne 0x40b631
test byte [esp + 0x38], 1
jne 0x40b407
test al, al
je 0x40b6a5
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x38], 0
mov dword [esp + 0x70], 0x5bef80
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x38], 0xa
mov word [esp + 0x3d], 0x72
mov dword [esp + 0x39], 0x69646b6d
cmp edi, eax
mov dword [esp + 0x14], eax
je 0x40b651
nop dword [eax]
push edi
push esi
call fcn.0041a3e0
add esp, 8
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 8]
cmp eax, 0x4001
jb 0x40b580
mov edx, ecx
and dl, 1
je 0x40b580
push dword [esp + 0x10]
push str.path_too_long:__s
push dword [esp + 0xc]
call fcn.00538ef0
add esp, 0xc
mov esi, 1
test byte [esp + 8], 1
jne 0x40b5f8
jmp 0x40b604
movzx edx, byte [esp + 0x38]
test dl, 1
je 0x40b590
mov edx, dword [esp + 0x3c]
jmp 0x40b592
shr edx, 1
mov esi, ecx
shr esi, 1
test cl, 1
cmove eax, esi
add eax, edx
cmp eax, 0x8001
jb 0x40b5c1
lea eax, [esp + 0x70]
push eax
push 0
push ebx
call fcn.00403c70
add esp, 0xc
mov ecx, ebx
push str.mkdir
call fcn.00555b20
mov ecx, ebx
push 0x584a69
call fcn.00555840
movzx eax, byte [esp + 8]
test al, 1
je 0x40b5e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x40b5e6
shr eax, 1
lea edx, [esp + 9]
mov ecx, ebx
push eax
push edx
call fcn.00555860
xor esi, esi
test byte [esp + 8], 1
je 0x40b604
push dword [esp + 0x10]
call fcn.004fc300
add esp, 4
test esi, esi
jne 0x40b8b0
add edi, 0xc
lea esi, [esp + 8]
cmp dword [esp + 0x14], edi
jne 0x40b530
mov al, byte [esp + 0x38]
test al, 1
jne 0x40b657
shr al, 1
movzx eax, al
cmp eax, 5
je 0x40b660
jmp 0x40b678
push dword [esp + 0x10]
mov edi, eax
call fcn.004fc300
mov eax, edi
add esp, 4
test byte [esp + 0x38], 1
je 0x40b4d9
jmp 0x40b407
mov al, 0xa
test al, 1
je 0x40b625
mov eax, dword [esp + 0x3c]
cmp eax, 5
jne 0x40b678
lea ecx, [esp + 0x38]
push 5
push str.mkdir
push 0xffffffffffffffff
push 0
call fcn.0053da20
test eax, eax
je 0x40b688
lea eax, [esp + 0x70]
push eax
push 0
push ebx
call fcn.00403c70
add esp, 0xc
xor esi, esi
test byte [esp + 0x38], 1
je 0x40b69d
push dword [esp + 0x40]
call fcn.004fc300
add esp, 4
test esi, esi
jne 0x40b8d6
cmp byte [ebp + 0xc], 0
je 0x40b797
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x40b797
nop
test byte [esi + 0xc], 1
jne 0x40b6d0
lea eax, [esi + 0xd]
jmp 0x40b6d3
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 4]
cmp byte [ecx + 0x20], 0
je 0x40b6f0
push eax
push 0x3254534c
jmp 0x40b6f6
push eax
push 0x54415453
call fcn.00538810
test al, al
je 0x40b8c5
add esi, 0x38
cmp edi, esi
jne 0x40b6c0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp esi, edi
jne 0x40b730
jmp 0x40b797
mov eax, dword [esp + 0x5c]
mov ecx, eax
sar ecx, 0x1f
cmp eax, dword [esi + 0x18]
sbb ecx, dword [esi + 0x1c]
jge 0x40b782
jmp 0x40b790
mov ecx, dword [esp + 4]
push ebx
call fcn.00538420
test al, al
je 0x40b790
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
xor ecx, dword [esi + 0x2c]
xor eax, dword [esi + 0x28]
or eax, ecx
jne 0x40b790
movzx eax, word [esi + 0x20]
and ax, word [esp + 0x3e]
and eax, 0xf000
cmp eax, 0xa000
je 0x40b71b
movzx eax, ax
cmp eax, 0x8000
jne 0x40b790
mov eax, dword [esp + 0x5c]
mov ecx, eax
xor eax, dword [esi + 0x18]
sar ecx, 0x1f
xor ecx, dword [esi + 0x1c]
or ecx, eax
jne 0x40b790
mov byte [esi + 0x30], 1
nop word cs:[eax + eax]
add esi, 0x38
cmp edi, esi
jne 0x40b730
mov ebx, dword [esp + 4]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x78], 0
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cmp esi, edi
je 0x40b87d
xor eax, eax
xor ecx, ecx
mov edx, esi
nop
cmp byte [edx + 0x30], 0
jne 0x40b7d2
add eax, dword [edx + 0x28]
adc ecx, dword [edx + 0x2c]
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x7c], ecx
add edx, 0x38
cmp edi, edx
jne 0x40b7c0
cmp esi, edi
mov byte [ebx + 0x80], 1
je 0x40b884
xor ebx, ebx
nop word [eax + eax]
cmp byte [esi + 0x30], 0
je 0x40b800
inc ebx
jmp 0x40b870
test byte [esi], 1
jne 0x40b83e
lea edx, [esi + 1]
test byte [esi + 0xc], 1
je 0x40b847
mov eax, dword [esi + 0x14]
cmp byte [ebp + 0x10], 0
jne 0x40b850
movzx ecx, word [esi + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 4]
push 0
push dword [esp + 0x18]
push dword [esi + 0x18]
push eax
call 0x40b9a0
add esp, 0x10
test al, al
jne 0x40b870
jmp 0x40b8d6
mov edx, dword [esi + 8]
test byte [esi + 0xc], 1
jne 0x40b80e
lea eax, [esi + 0xd]
cmp byte [ebp + 0x10], 0
je 0x40b817
push eax
push edx
push str.would_push:__s_____s
push dword [esp + 0x10]
call fcn.00539020
add esp, 0x10
nop word cs:[eax + eax]
nop dword [eax]
add esi, 0x38
cmp edi, esi
jne 0x40b7f0
jmp 0x40b886
mov byte [ebx + 0x80], 1
xor ebx, ebx
mov eax, dword [esp + 4]
add dword [eax + 0x68], ebx
lea ecx, [eax + 0x58]
adc dword [eax + 0x6c], 0
add dword [eax + 0x38], ebx
adc dword [eax + 0x3c], 0
add eax, 0x88
push 0
push dword [esp + 0x70]
push eax
call fcn.00539780
mov bl, 1
jmp 0x40b8d8
mov esi, 1
test byte [esp + 0x38], 1
jne 0x40b691
jmp 0x40b69d
push str.failed_to_send_lstat
push dword [esp + 8]
call fcn.00538ef0
add esp, 8
xor ebx, ebx
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40b91f
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40b910
nop dword [eax + eax]
test byte [eax - 0xc], 1
lea edi, [eax - 0xc]
je 0x40b904
push dword [eax - 4]
call fcn.004fc300
add esp, 4
cmp esi, edi
mov eax, edi
jne 0x40b8f0
mov eax, dword [esp + 0x18]
jmp 0x40b912
mov eax, esi
mov dword [esp + 0x1c], esi
push eax
call fcn.004fc300
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x40b984
mov edi, dword [esp + 0x28]
cmp edi, esi
je 0x40b975
mov dword [esp + 4], ebx
nop word cs:[eax + eax]
nop dword [eax]
test byte [edi - 0x2c], 1
je 0x40b951
push dword [edi - 0x24]
call fcn.004fc300
add esp, 4
test byte [edi - 0x38], 1
lea ebx, [edi - 0x38]
je 0x40b965
push dword [edi - 0x30]
call fcn.004fc300
add esp, 4
cmp esi, ebx
mov edi, ebx
jne 0x40b940
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 4]
jmp 0x40b977
mov eax, esi
mov dword [esp + 0x28], esi
push eax
call fcn.004fc300
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x38]
call fcn.0053ebb0
lea ecx, [esp + 8]
call fcn.0053ebb0
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
movzx esi, word [ebp + 0x10]
mov bl, byte [ebp + 0x14]
mov edi, edx
mov dword [esp + 4], ecx
lea eax, [esp + 0x2c]
push esi
push dword [ebp + 8]
push str._s__d
push eax
call fcn.004deac0
add esp, 0x10
test bl, bl
je 0x40ba3a
mov ebx, dword [esp + 4]
cmp byte [ebx + 0x20], 0
je 0x40b9e9
mov ecx, ebx
push dword [ebp + 8]
push 0x3254534c
jmp 0x40b9f3
mov ecx, ebx
push dword [ebp + 8]
push 0x54415453
call fcn.00538810
test al, al
je 0x40ba3a
lea eax, [esp + 0x38]
mov ecx, ebx
push eax
call fcn.00538420
test al, al
je 0x40ba3a
and si, word [esp + 0x3e]
and esi, 0xf000
cmp esi, 0xa000
je 0x40bc4d
movzx eax, si
cmp eax, 0x8000
jne 0x40ba3a
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x5c], eax
je 0x40bc5a
lea eax, [esp + 0x38]
push eax
push edi
call fcn.0043a0e0
add esp, 8
cmp eax, 0xffffffff
je 0x40bacc
mov ecx, 0xffff
xor eax, eax
mov esi, dword [esp + 4]
cmp ecx, dword [esp + 0x50]
sbb eax, dword [esp + 0x54]
jl 0x40baf4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
push edi
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40bc75
mov ebx, eax
cmp eax, 0xb
jae 0x40bb39
mov eax, ebx
lea esi, [esp + 9]
add al, bl
test ebx, ebx
mov byte [esp + 8], al
jne 0x40bb65
jmp 0x40bb70
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.00439f20
add esp, 4
push eax
push edi
push str.failed_to_stat_local_file__s:__s
push dword [esp + 0x10]
call fcn.00538ef0
add esp, 0x10
jmp 0x40bc2e
test byte [esp + 0x2c], 1
je 0x40bb01
mov eax, dword [esp + 0x34]
jmp 0x40bb05
lea eax, [esp + 0x2d]
mov ecx, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push eax
call fcn.005388c0
test al, al
je 0x40bc2e
mov ecx, esi
push dword [ebp + 8]
push edi
call fcn.00539160
mov ebx, eax
test byte [esp + 0x2c], 1
jne 0x40bc37
jmp 0x40bc43
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x28]
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
call fcn.004fc150
add esp, 4
or ebx, 1
mov dword [esp + 0x10], eax
mov esi, eax
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push 1
push eax
push ecx
call fcn.004dc920
add esp, 0xc
test byte [esp + 8], 1
mov ebx, eax
je 0x40bb9d
push dword [esp + 0x10]
call fcn.004fc300
add esp, 4
test bl, bl
je 0x40bbb2
test byte [esp + 0x2c], 1
mov ecx, dword [esp + 4]
je 0x40bbe0
mov eax, dword [esp + 0x34]
jmp 0x40bbe4
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.00439f20
add esp, 4
push eax
push edi
push str.failed_to_read_all_of__s:__s
push dword [esp + 0x10]
call fcn.00538ef0
add esp, 0x10
xor ebx, ebx
test byte [esp + 0x18], 1
jne 0x40bc16
jmp 0x40bc22
lea eax, [esp + 0x2d]
movzx edx, byte [esp + 0x18]
test dl, 1
je 0x40bbf8
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
jmp 0x40bbfe
shr edx, 1
lea esi, [esp + 0x19]
push edx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push eax
call fcn.00538be0
mov ebx, eax
test byte [esp + 0x18], 1
je 0x40bc22
push dword [esp + 0x20]
call fcn.004fc300
add esp, 4
mov esi, dword [esp + 4]
test bl, bl
jne 0x40bb1c
xor ebx, ebx
test byte [esp + 0x2c], 1
je 0x40bc43
push dword [esp + 0x34]
call fcn.004fc300
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp dword [esp + 0x5c], eax
jl 0x40ba3a
add dword [ebx + 0x68], 1
adc dword [ebx + 0x6c], 0
add dword [ebx + 0x38], 1
adc dword [ebx + 0x3c], 0
mov bl, 1
test byte [esp + 0x2c], 1
jne 0x40bc37
jmp 0x40bc43
lea ecx, [esp + 8]
call fcn.0053ebb0
nop