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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x70
mov ebx, dword [ebp + 8]
mov edi, edx
mov esi, ecx
call fcn.00555590
mov dword [esi + 0x5c], edx
mov ecx, edi
mov edx, ebx
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 [esp], esi
mov dword [esi + 0x78], 0
mov dword [esp + 0x30], edi
call fcn.0040d8b0
lea esi, [esp + 0x38]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
mov ecx, esi
push ebx
call fcn.00535150
mov ecx, esi
push 0x572db5
call fcn.0050bbc0
test eax, eax
je 0x40c081
xor eax, eax
lea ebx, [esp + 0x14]
lea edi, [esp + 4]
xor ecx, ecx
cmp ecx, eax
je 0x40c020
nop word cs:[eax + eax]
push esi
call fcn.00535150
add dword [esp + 0x18], 4
jmp 0x40c028
mov ecx, ebx
push esi
call fcn.00403c30
push esi
push edi
call fcn.004cd890
add esp, 8
mov ecx, esi
push edi
call fcn.00533c10
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c067
mov ecx, esi
push 0x572db5
call fcn.0050bbc0
test eax, eax
je 0x40c081
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jne 0x40c010
jmp 0x40c020
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c049
lea eax, [esp + 0xc]
push eax
call fcn.00533980
jmp 0x40c049
mov eax, dword [esp + 0x38]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c583
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp ebx, edi
je 0x40c0c5
lea eax, [edi - 4]
cmp ebx, eax
jae 0x40c0c5
add edi, 0xfffffff8
nop word [eax + eax]
lea eax, [edi + 4]
mov ecx, ebx
push eax
call fcn.00533c10
add ebx, 4
cmp ebx, edi
lea edi, [edi - 4]
jb 0x40c0b0
mov edi, dword [esp]
lea eax, [esp + 0x14]
lea edx, [esp + 0x20]
mov ecx, edi
push dword [ebp + 8]
push dword [esp + 0x34]
push eax
call fcn.0040d910
add esp, 0xc
test al, al
je 0x40c49e
lea eax, [esp + 0xc]
mov ecx, esi
lea edi, [edi + 0xc]
push eax
push dword [0x5756cc]
call fcn.005350b0
push esi
push edi
call fcn.00426ab0
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x38]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c5a4
test bl, bl
je 0x40c26e
lea eax, [esp + 0xc]
mov dword [esp + 0x38], 0x573258
lea ecx, [esp + 4]
push eax
push str.mkdir
call fcn.005350b0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
cmp edi, eax
mov dword [esp + 8], eax
je 0x40c231
nop word cs:[eax + eax]
nop
push edi
lea eax, [esp + 0x10]
push eax
call fcn.00418060
add esp, 8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, 0x4001
jb 0x40c1a0
push ecx
push str.path_too_long:__s
push dword [esp + 8]
call fcn.0040ea90
add esp, 0xc
mov ebx, 1
jmp 0x40c1ec
mov ecx, dword [esp + 4]
add eax, dword [ecx - 0xc]
cmp eax, 0x8001
jb 0x40c1cc
push esi
push 0
lea ebx, [esp + 0xc]
push ebx
call fcn.00404020
add esp, 0xc
mov ecx, ebx
push 5
push str.mkdir
call fcn.00534200
lea ebx, [esp + 4]
mov ecx, ebx
push 1
push 0x572dcf
call fcn.00533e50
lea eax, [esp + 0xc]
mov ecx, ebx
push eax
call fcn.00533f60
xor ebx, ebx
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c20e
test ebx, ebx
jne 0x40c22a
add edi, 4
cmp dword [esp + 8], edi
jne 0x40c160
jmp 0x40c231
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c1fb
lea eax, [esp + 0x2c]
push eax
call fcn.00533980
test ebx, ebx
je 0x40c1ff
mov edi, 1
jmp 0x40c253
lea ebx, [esp + 4]
mov ecx, ebx
push str.mkdir
call fcn.0050bbc0
xor edi, edi
test eax, eax
je 0x40c253
push esi
push 0
push ebx
call fcn.00404020
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c5cd
test edi, edi
jne 0x40c49e
mov al, byte [ebp + 0xc]
mov ecx, dword [esp]
test al, al
je 0x40c35a
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp edi, ebx
je 0x40c35a
nop dword [eax]
mov eax, dword [edi + 4]
cmp byte [ecx + 0x24], 0
je 0x40c2b0
push eax
push 0x3254534c
jmp 0x40c2b6
push eax
push 0x54415453
call fcn.0040ebf0
test al, al
je 0x40c48d
mov ecx, dword [esp]
add edi, 0x28
cmp ebx, edi
jne 0x40c290
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp edi, ebx
je 0x40c35a
nop dword [eax]
push esi
call fcn.0040ec80
test al, al
je 0x40c350
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
xor ecx, dword [edi + 0x1c]
xor eax, dword [edi + 0x18]
or eax, ecx
jne 0x40c350
movzx eax, word [edi + 0x10]
and ax, word [esp + 0x3e]
and eax, 0xf000
cmp eax, 0xa000
je 0x40c330
movzx eax, ax
cmp eax, 0x8000
jne 0x40c350
mov eax, dword [esp + 0x5c]
mov ecx, eax
xor eax, dword [edi + 8]
sar ecx, 0x1f
xor ecx, dword [edi + 0xc]
or ecx, eax
je 0x40c341
jmp 0x40c350
mov eax, dword [esp + 0x5c]
mov ecx, eax
sar ecx, 0x1f
cmp eax, dword [edi + 8]
sbb ecx, dword [edi + 0xc]
jl 0x40c350
mov byte [edi + 0x20], 1
nop word cs:[eax + eax]
nop
mov ecx, dword [esp]
add edi, 0x28
cmp ebx, edi
jne 0x40c2e0
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x78], 0
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
cmp ebx, edi
je 0x40c459
mov edx, ebx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], edi
nop
cmp byte [edx + 0x20], 0
jne 0x40c3bd
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x10]
mov edi, esi
mov esi, dword [esp]
add ecx, dword [edx + 0x18]
adc eax, dword [edx + 0x1c]
mov dword [esi + 0x78], ecx
mov dword [esp + 8], ecx
mov dword [esi + 0x7c], eax
mov esi, edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
add edx, 0x28
cmp edi, edx
jne 0x40c390
mov ecx, dword [esp]
cmp ebx, edi
mov byte [ecx + 0x80], 1
je 0x40c460
xor eax, eax
nop dword [eax + eax]
cmp byte [ebx + 0x20], 0
je 0x40c3f0
inc eax
jmp 0x40c450
mov dword [esp + 8], eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
cmp byte [ebp + 0x10], 0
je 0x40c419
push eax
push edx
push str.would_push:__s_____s
push ecx
call fcn.0040ee10
mov ecx, dword [esp + 0x10]
add esp, 0x10
mov eax, dword [esp + 8]
jmp 0x40c450
movzx ecx, word [ebx + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp]
push 0
push dword [esp + 0x14]
push dword [ebx + 8]
push eax
call fcn.0040c600
mov ecx, dword [esp + 0x10]
add esp, 0x10
test al, al
mov eax, dword [esp + 8]
je 0x40c49e
nop word cs:[eax + eax]
nop dword [eax]
add ebx, 0x28
cmp edi, ebx
jne 0x40c3e0
jmp 0x40c462
mov byte [ecx + 0x80], 1
xor eax, eax
add dword [ecx + 0x68], eax
adc dword [ecx + 0x6c], 0
add dword [ecx + 0x38], eax
mov eax, ecx
adc dword [ecx + 0x3c], 0
lea ecx, [ecx + 0x58]
add eax, 0x88
push 0
push dword [esp + 0x34]
push eax
call fcn.0040f920
mov al, 1
mov dword [esp], eax
jmp 0x40c4a5
push str.failed_to_send_lstat
push dword [esp + 4]
call fcn.0040ea90
add esp, 8
mov dword [esp], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp edi, ebx
jne 0x40c500
test edi, edi
je 0x40c4be
push edi
call fcn.00563f90
add esp, 4
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
cmp edi, ebx
jne 0x40c550
test edi, edi
je 0x40c4db
push edi
call fcn.00563f90
add esp, 4
mov eax, dword [esp]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c50d
push esi
call fcn.00533980
jmp 0x40c50d
mov eax, dword [edi]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c4e6
add edi, 4
cmp ebx, edi
jne 0x40c500
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x40c4b5
jmp 0x40c4be
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c55e
push esi
call fcn.00533980
jmp 0x40c55e
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c56b
push esi
call fcn.00533980
jmp 0x40c56b
mov eax, dword [edi + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c51e
mov eax, dword [edi]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x40c534
add edi, 0x28
cmp ebx, edi
jne 0x40c550
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x40c4d2
jmp 0x40c4db
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c094
lea eax, [esp + 4]
push eax
call fcn.00533980
jmp 0x40c094
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c11e
lea eax, [esp + 4]
push eax
call fcn.00533980
test bl, bl
jne 0x40c126
jmp 0x40c26e
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x40c266
lea eax, [esp + 0xc]
push eax
call fcn.00533980
test edi, edi
jne 0x40c49e
jmp 0x40c26e