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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov edi, edx
mov esi, ecx
call fcn.004cdd40
mov dword [esi + 0x7c], edx
mov dword [esi + 0x78], eax
xorps xmm0, xmm0
movups xmmword [esi + 0x80], xmm0
movups xmmword [esi + 0x90], xmm0
test byte [esi + 0xa4], 1
jne 0x40ede3
mov word [esi + 0xa4], 0
jmp 0x40edf6
mov eax, dword [esi + 0xac]
mov byte [eax], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 0
movzx eax, byte [edi]
test al, 1
mov dword [esp + 0x78], edi
je 0x40ee1d
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
jmp 0x40ee22
lea ecx, [edi + 1]
shr eax, 1
mov edi, dword [ebp + 8]
movzx eax, byte [ecx + eax - 1]
cmp eax, 0x2f
je 0x40ee3f
cmp eax, 0x5c
je 0x40ee3f
mov ecx, dword [esp + 0x78]
push 0x5c
call fcn.00520460
movzx eax, byte [edi]
test al, 1
je 0x40ee55
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
cmp byte [ecx + eax - 1], 0x2f
jne 0x40ee61
jmp 0x40ee6a
lea ecx, [edi + 1]
shr eax, 1
cmp byte [ecx + eax - 1], 0x2f
je 0x40ee6a
mov ecx, edi
push 0x2f
call fcn.00520460
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x20]
push edi
call fcn.0051f860
movzx ebx, byte [esp + 0x20]
test bl, 1
sete cl
je 0x40eecf
mov edx, dword [esp + 0x24]
jmp 0x40eed3
mov edx, ebx
shr edx, 1
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x28]
test edx, edx
je 0x40efe5
lea edi, [esp + 0x21]
test bl, 1
mov esi, eax
cmove esi, edi
mov edi, dword [ebp + 8]
add edx, esi
lea ebx, [esp + 0x10]
nop dword [eax + eax]
cmp byte [esi], 0x2f
jne 0x40ef0f
inc esi
cmp esi, edx
jne 0x40ef00
jmp 0x40efe5
mov ecx, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x60]
je 0x40ef2a
lea eax, [esp + 0x20]
push eax
call fcn.0051f860
add dword [esp + 0x5c], 0xc
jmp 0x40ef38
lea ecx, [esp + 0x58]
lea eax, [esp + 0x20]
push eax
call fcn.00404870
movzx eax, byte [esp + 0x20]
test al, 1
je 0x40ef4b
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
jmp 0x40ef51
shr eax, 1
lea ecx, [esp + 0x21]
mov dword [esp + 0x88], eax
mov dword [esp + 0x84], ecx
sub esp, 0xc
movsd xmm0, qword [esp + 0x90]
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.004b8b20
add esp, 0xc
test byte [esp + 0x20], 1
je 0x40efa5
mov eax, dword [esp + 0x28]
mov byte [eax], 0
mov dword [esp + 0x24], 0
test byte [esp + 0x20], 1
je 0x40efa5
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
movsd xmm0, qword [esp + 0x10]
movsd qword [esp + 0x20], xmm0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
movzx ecx, byte [esp + 0x20]
mov ebx, ecx
shr ebx, 1
test cl, 1
cmovne ebx, dword [esp + 0x24]
sete cl
mov esi, eax
lea edx, [esp + 0x21]
cmove esi, edx
lea edx, [esi + ebx]
test ebx, ebx
lea ebx, [esp + 0x10]
jne 0x40ef00
test cl, 1
jne 0x40eff3
push eax
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
mov esi, dword [esp + 0xc]
je 0x40f04e
add ecx, 0xfffffff4
cmp ecx, eax
jbe 0x40f04e
add eax, 0xc
nop dword [eax]
mov edx, dword [eax - 4]
mov dword [esp + 0x28], edx
movsd xmm0, qword [eax - 0xc]
movsd qword [esp + 0x20], xmm0
mov edx, dword [ecx + 8]
mov dword [eax - 4], edx
movsd xmm0, qword [ecx]
movsd qword [eax - 0xc], xmm0
mov edx, dword [esp + 0x28]
mov dword [ecx + 8], edx
movsd xmm0, qword [esp + 0x20]
movsd qword [ecx], xmm0
add ecx, 0xfffffff4
lea edx, [eax + 0xc]
cmp eax, ecx
mov eax, edx
jb 0x40f010
lea eax, [esp + 0x58]
lea edx, [esp + 0x68]
mov ecx, esi
push edi
mov edi, dword [esp + 0x7c]
push edi
push eax
call fcn.004117d0
add esp, 0xc
test al, al
je 0x40f5c9
mov ebx, dword [esi + 0x2c]
mov eax, dword [0x866d70]
mov esi, dword [eax]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40f67c
mov ecx, eax
cmp eax, 0xb
jae 0x40f0bc
mov eax, ecx
add al, cl
mov byte [esp + 0x20], al
lea edi, [esp + 0x21]
test ecx, ecx
jne 0x40f0ea
jmp 0x40f0f9
mov dword [esp + 0x1c], ebx
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
mov edi, ecx
call fcn.0051c3d0
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x28], eax
add ebx, 2
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
push ecx
push esi
push edi
mov esi, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, esi
add esp, 0xc
mov byte [edi + ecx], 0
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.004545e0
add esp, 8
test al, al
je 0x40f116
xor ebx, ebx
jmp 0x40f1cb
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 0x2c]
mov eax, dword [0x865a64]
mov esi, dword [eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40f685
mov ecx, eax
cmp eax, 0xb
jae 0x40f167
mov eax, ecx
add al, cl
mov byte [esp + 0x10], al
lea edi, [esp + 0x11]
test ecx, ecx
jne 0x40f195
jmp 0x40f1a4
mov dword [esp + 0x1c], ebx
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
mov edi, ecx
call fcn.0051c3d0
mov ecx, edi
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
add ebx, 2
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
push ecx
push esi
push edi
mov esi, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, esi
add esp, 0xc
mov byte [edi + ecx], 0
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.004545e0
add esp, 8
mov ebx, eax
test byte [esp + 0x10], 1
je 0x40f1cb
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
mov esi, dword [esp + 0xc]
test byte [esp + 0x20], 1
je 0x40f1e2
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
test bl, bl
je 0x40f3a0
mov dword [esp + 0x7c], 0x8669a0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov byte [esp + 0x20], 0xa
mov byte [esp + 0x25], 0x72
mov dword [esp + 0x21], 0x69646b6d
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
cmp edi, eax
je 0x40f352
nop dword [eax + eax]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push edi
lea eax, [esp + 0x14]
push eax
call fcn.00448e50
add esp, 8
movzx eax, byte [esp + 0x10]
test al, 1
je 0x40f280
mov ebx, dword [esp + 0x14]
cmp ebx, 0x4001
jae 0x40f28c
movzx eax, byte [esp + 0x20]
test al, 1
je 0x40f2b0
mov eax, dword [esp + 0x24]
jmp 0x40f2b2
mov ebx, eax
shr ebx, 1
cmp ebx, 0x4001
jb 0x40f26b
lea ecx, [esp + 0x11]
test al, 1
je 0x40f298
mov ecx, dword [esp + 0x18]
push ecx
push str.path_too_long:__s
push esi
call fcn.00413060
add esp, 0xc
test byte [esp + 0x10], 1
jne 0x40f318
jmp 0x40f324
shr eax, 1
add eax, ebx
cmp eax, 0x8001
jb 0x40f2df
lea eax, [esp + 0x7c]
push eax
push 0
lea esi, [esp + 0x28]
push esi
call fcn.00405280
add esp, 0xc
mov ecx, esi
mov esi, dword [esp + 0xc]
push str.mkdir
call fcn.005205a0
lea ecx, [esp + 0x20]
push 0x865eb0
call fcn.00520360
movzx eax, byte [esp + 0x10]
test al, 1
je 0x40f300
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x40f306
shr eax, 1
lea edx, [esp + 0x11]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00520110
test byte [esp + 0x10], 1
je 0x40f324
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
cmp ebx, 0x4000
ja 0x40f5a3
add edi, 0xc
cmp edi, dword [esp + 0x1c]
jne 0x40f230
movzx eax, byte [esp + 0x20]
test al, 1
jne 0x40f358
shr al, 1
movzx eax, al
cmp eax, 5
je 0x40f361
jmp 0x40f379
mov al, 0xa
test al, 1
je 0x40f346
mov eax, dword [esp + 0x24]
cmp eax, 5
jne 0x40f379
lea ecx, [esp + 0x20]
push 5
push str.mkdir
push 0xffffffffffffffff
push 0
call fcn.00521750
test eax, eax
je 0x40f38d
lea eax, [esp + 0x7c]
push eax
push 0
lea eax, [esp + 0x28]
push eax
call fcn.00405280
add esp, 0xc
test byte [esp + 0x20], 1
je 0x40f3a0
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
cmp byte [ebp + 0xc], 0
je 0x40f456
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
cmp esi, edi
je 0x40f456
mov ebx, 0x54415453
nop
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0x30], 0
lea eax, [esi + 0xc]
mov edx, 0x3254534c
cmove edx, ebx
push eax
push edx
call fcn.004139e0
test al, al
je 0x40f5b8
add esi, 0x38
cmp esi, edi
jne 0x40f3c0
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
jmp 0x40f403
add esi, 0x38
cmp esi, edi
je 0x40f456
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x20]
push eax
call fcn.00413fa0
test al, al
je 0x40f400
mov eax, dword [esp + 0x3c]
xor eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x38]
xor ecx, dword [esi + 0x28]
or ecx, eax
jne 0x40f400
mov eax, dword [esp + 0x44]
mov ecx, eax
xor eax, dword [esi + 0x18]
sar ecx, 0x1f
xor ecx, dword [esi + 0x1c]
or ecx, eax
jne 0x40f400
mov byte [esi + 0x30], 1
jmp 0x40f400
mov eax, dword [esp + 0xc]
mov dword [eax + 0x98], 0
mov dword [eax + 0x9c], 0
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x6c]
cmp edi, ebx
je 0x40f55e
xor ecx, ecx
xor edx, edx
mov esi, edi
mov eax, dword [esp + 0xc]
jmp 0x40f497
add esi, 0x38
cmp esi, ebx
je 0x40f4b1
cmp byte [esi + 0x30], 0
jne 0x40f490
add ecx, dword [esi + 0x28]
adc edx, dword [esi + 0x2c]
mov dword [eax + 0x98], ecx
mov dword [eax + 0x9c], edx
jmp 0x40f490
mov ecx, dword [esp + 0xc]
mov byte [ecx + 0xa0], 1
xor esi, esi
cmp edi, ebx
je 0x40f567
movzx eax, byte [ebp + 0x18]
mov dword [esp + 0x80], eax
jmp 0x40f4e8
inc esi
add edi, 0x38
cmp edi, ebx
je 0x40f567
cmp byte [edi + 0x30], 0
jne 0x40f4e0
cmp byte [ebp + 0x10], 0
je 0x40f507
test byte [edi], 1
je 0x40f53d
mov eax, dword [edi + 8]
test byte [edi + 0xc], 1
jne 0x40f546
lea ecx, [edi + 0xd]
jmp 0x40f549
lea eax, [edi + 0xc]
mov dword [esp + 0x1c], eax
movzx eax, word [edi + 0x20]
mov ecx, dword [esp + 0xc]
mov edx, edi
push dword [esp + 0x80]
push dword [ebp + 0x14]
push 0
push eax
push dword [edi + 0x18]
push dword [esp + 0x30]
call fcn.0040f690
add esp, 0x18
test al, al
jne 0x40f4e1
jmp 0x40f5c9
lea eax, [edi + 1]
test byte [edi + 0xc], 1
je 0x40f502
mov ecx, dword [edi + 0x14]
push ecx
push eax
push str.would_push:__s_____s
push dword [esp + 0x18]
call fcn.004142c0
add esp, 0x10
jmp 0x40f4e1
mov byte [eax + 0xa0], 1
xor esi, esi
mov ebx, dword [esp + 0xc]
add dword [ebx + 0x88], esi
adc dword [ebx + 0x8c], 0
add dword [ebx + 0x48], esi
lea edi, [ebx + 0x78]
adc dword [ebx + 0x4c], 0
mov ecx, ebx
push 1
call fcn.004131b0
add ebx, 0xb8
mov ecx, edi
push 0
push dword [esp + 0x7c]
push ebx
mov ebx, eax
call fcn.00417a30
jmp 0x40f5cb
test byte [esp + 0x20], 1
je 0x40f5c9
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
jmp 0x40f5c9
push str.failed_to_send_lstat
push dword [esp + 0x10]
call fcn.00413060
add esp, 8
xor ebx, ebx
mov esi, dword [esp + 0x58]
test esi, esi
je 0x40f60d
mov eax, dword [esp + 0x5c]
mov ecx, esi
cmp eax, esi
jne 0x40f5e6
jmp 0x40f600
mov eax, edi
cmp edi, esi
je 0x40f5fc
lea edi, [eax - 0xc]
test byte [eax - 0xc], 1
je 0x40f5e0
push dword [eax - 4]
call fcn.0051c570
add esp, 4
jmp 0x40f5e0
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x5c], esi
push ecx
call fcn.0051c570
add esp, 4
mov esi, dword [esp + 0x68]
test esi, esi
je 0x40f672
mov edi, dword [esp + 0x6c]
mov eax, esi
cmp edi, esi
je 0x40f665
mov dword [esp + 0xc], ebx
jmp 0x40f636
mov edi, ebx
cmp ebx, esi
je 0x40f65d
test byte [edi - 0x2c], 1
je 0x40f647
push dword [edi - 0x24]
call fcn.0051c570
add esp, 4
lea ebx, [edi - 0x38]
test byte [edi - 0x38], 1
je 0x40f630
push dword [edi - 0x30]
call fcn.0051c570
add esp, 4
jmp 0x40f630
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x6c], esi
push eax
call fcn.0051c570
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.0051f6b0
lea ecx, [esp + 0x10]
call fcn.0051f6b0
nop