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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1c0
xorps xmm0, xmm0
movaps xmmword [esp + 0x160], xmm0
movaps xmmword [esp + 0x150], xmm0
movaps xmmword [esp + 0x140], xmm0
movaps xmmword [esp + 0x130], xmm0
movaps xmmword [esp + 0x120], xmm0
movaps xmmword [esp + 0x110], xmm0
movaps xmmword [esp + 0x100], xmm0
movaps xmmword [esp + 0xf0], xmm0
movaps xmmword [esp + 0xe0], xmm0
movaps xmmword [esp + 0xd0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xa0], xmm0
lea ecx, [esp + 0xa0]
call fcn.004127d0
cmp dword [esp + 0xa0], 0
js 0x40ebfd
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x1a0], xmm0
movaps xmmword [esp + 0x190], xmm0
movaps xmmword [esp + 0x180], xmm0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40ec30
mov ebx, eax
cmp eax, 0xb
jae 0x40e2f5
mov eax, ebx
add al, bl
mov byte [esp + 0x60], al
lea esi, [esp + 0x61]
test ebx, ebx
jne 0x40e31a
jmp 0x40e325
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov esi, eax
mov dword [esp + 0x68], eax
add edi, 2
mov dword [esp + 0x60], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x64], ebx
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea eax, [esp + 0x180]
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x60]
push eax
call fcn.0040ec50
add esp, 4
mov byte [esp + 0xf], al
test byte [esp + 0x60], 1
je 0x40e35b
push dword [esp + 0x68]
call fcn.0051c570
add esp, 4
mov esi, dword [ebp + 8]
cmp byte [esp + 0xf], 0
je 0x40e388
movzx eax, word [esp + 0x186]
and eax, 0xf000
cmp eax, 0x4000
jne 0x40e3a2
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov esi, eax
mov al, 1
mov dword [esp + 0x5c], eax
jmp 0x40e402
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 2
je 0x40e3a2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x7b
jne 0x40ebd6
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov esi, eax
mov eax, ecx
sub eax, esi
cmp eax, 5
jb 0x40e3ba
push edi
push str.target__s_is_not_a_directory
jmp 0x40e3e1
mov dword [esp + 0x2c], ecx
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp byte [eax + edi - 1], 0x2f
setne al
movzx ecx, byte [esp + 0xf]
xor cl, 1
or cl, al
jne 0x40e3f6
push edi
push str.failed_to_access__s:_Not_a_directory
lea eax, [esp + 0xa8]
push eax
call fcn.00413060
add esp, 0xc
jmp 0x40ebfd
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x2c]
mov al, 1
cmp esi, ecx
je 0x40eb16
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
jmp 0x40e460
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push edi
push str.cannot_stat__s:__s
lea eax, [esp + 0xac]
push eax
call fcn.00413060
add esp, 0x10
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x2c]
mov edi, ebx
add esi, 4
cmp esi, ecx
je 0x40eb1a
mov ebx, edi
mov edi, dword [esi]
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
lea eax, [esp + 0x60]
push eax
push edi
call fcn.004796c0
add esp, 8
cmp eax, 0xffffffff
je 0x40e420
mov dword [esp + 0x34], edi
movzx eax, word [esp + 0x66]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x4000
jne 0x40e500
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov edi, ebx
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40ec15
mov ebx, eax
mov dword [esp + 0x3c], esi
cmp eax, 0xb
jae 0x40e58b
mov eax, ebx
add al, bl
mov byte [esp + 0x20], al
lea esi, [esp + 0x21]
test ebx, ebx
jne 0x40e5b0
jmp 0x40e5bb
mov ecx, eax
and ecx, 0xd000
cmp ecx, 0x8000
mov edi, ebx
jne 0x40e56c
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], edi
cmp byte [esp + 0x5c], 0
mov ebx, dword [esp + 0x34]
je 0x40e6b5
lea ecx, [esp + 0x20]
push edi
call fcn.005205a0
movzx eax, byte [esp + 0x20]
test al, 1
je 0x40e61b
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp byte [ecx + eax - 1], 0x2f
jne 0x40e628
jmp 0x40e633
push eax
push dword [esp + 0x38]
push str.skipping_special_file__s__mode__0o_o_
lea eax, [esp + 0xac]
push eax
call fcn.00413100
add esp, 0x10
jmp 0x40e96c
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov esi, eax
mov dword [esp + 0x28], eax
add edi, 2
mov dword [esp + 0x20], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x24], ebx
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
cmp byte [esp + 0xf], 0
mov esi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x34]
je 0x40ea00
cmp byte [esp + 0x5c], 0
je 0x40e5fe
movzx eax, byte [esp + 0x20]
test al, 1
je 0x40e975
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp byte [ecx + eax - 1], 0x2f
jne 0x40e982
jmp 0x40e98d
push edi
push str.target__s_is_not_a_directory
lea eax, [esp + 0xa8]
push eax
call fcn.00413060
add esp, 0xc
xor ebx, ebx
jmp 0x40eaee
shr eax, 1
lea ecx, [esp + 0x21]
cmp byte [ecx + eax - 1], 0x2f
je 0x40e633
lea ecx, [esp + 0x20]
push 0x2f
call fcn.00520460
mov dword [esp + 0x90], ebx
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x94], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0x9c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.004b8c20
add esp, 0xc
movzx eax, byte [esp + 0x10]
test al, 1
je 0x40e67e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x40e684
shr eax, 1
lea edx, [esp + 0x11]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00520110
test byte [esp + 0x10], 1
je 0x40e6a2
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
test byte [esp + 0x20], 1
lea eax, [esp + 0x21]
je 0x40e6b1
mov eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
call fcn.004cdd40
mov dword [esp + 0x11c], edx
mov dword [esp + 0x118], eax
lea eax, [esp + 0x118]
xorps xmm0, xmm0
movups xmmword [eax + 8], xmm0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
test byte [esp + 0x144], 1
jne 0x40e6fa
mov word [esp + 0x144], 0
jmp 0x40e70f
mov eax, dword [esp + 0x14c]
mov byte [eax], 0
mov dword [esp + 0x148], 0
mov dword [esp + 0x154], 0
mov dword [esp + 0x150], 0
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x138], eax
mov byte [esp + 0x140], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40ec1e
mov ebx, eax
mov dword [esp + 0x3c], esi
cmp eax, 0xb
jae 0x40e78e
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea esi, [esp + 0x11]
test ebx, ebx
mov edi, dword [esp + 0x38]
jne 0x40e7b4
jmp 0x40e7c2
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
add edi, 2
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x38]
push ebx
push dword [esp + 0x38]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40ec39
mov ebx, eax
cmp eax, 0xb
jae 0x40e809
mov eax, ebx
add al, bl
mov byte [esp + 0x40], al
lea esi, [esp + 0x41]
test ebx, ebx
jne 0x40e82f
jmp 0x40e83a
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov esi, eax
mov dword [esp + 0x48], eax
add edi, 2
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x44], ebx
push ebx
push edi
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
movzx eax, word [esp + 0x66]
movzx esi, byte [ebp + 0x18]
movzx edi, byte [ebp + 0x10]
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x10]
push esi
push dword [ebp + 0x14]
push edi
push eax
push dword [esp + 0x94]
lea eax, [esp + 0x54]
push eax
call fcn.0040f690
add esp, 0x18
mov byte [esp + 0x38], al
test byte [esp + 0x40], 1
je 0x40e887
push dword [esp + 0x48]
call fcn.0051c570
add esp, 4
test byte [esp + 0x10], 1
mov esi, dword [esp + 0x34]
je 0x40e89e
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
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 0x40ec1e
mov ebx, eax
cmp eax, 0xb
jae 0x40e8e4
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea esi, [esp + 0x11]
test ebx, ebx
mov edi, dword [ebp + 0xc]
jne 0x40e909
jmp 0x40e917
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov esi, eax
mov dword [esp + 0x18], eax
add edi, 2
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov edi, dword [ebp + 0xc]
push ebx
push dword [esp + 0x38]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea ecx, [esp + 0x118]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x160]
push eax
call fcn.00417a30
test byte [esp + 0x10], 1
je 0x40e949
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
test byte [esp + 0x20], 1
mov esi, dword [esp + 0x3c]
je 0x40e960
push dword [esp + 0x28]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x30]
and al, byte [esp + 0x38]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x2c]
jmp 0x40e455
shr eax, 1
lea ecx, [esp + 0x21]
cmp byte [ecx + eax - 1], 0x2f
je 0x40e98d
lea ecx, [esp + 0x20]
push 0x2f
call fcn.00520460
mov dword [esp + 0x98], ebx
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [esp + 0x9c], eax
sub esp, 0xc
movsd xmm0, qword [esp + 0xa4]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x1c]
mov dword [esp], eax
call fcn.004b8c20
add esp, 0xc
movzx eax, byte [esp + 0x10]
test al, 1
je 0x40e9d8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
jmp 0x40e9de
shr eax, 1
lea edx, [esp + 0x11]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.00520110
test byte [esp + 0x10], 1
je 0x40ea00
push dword [esp + 0x18]
call fcn.0051c570
add esp, 4
nop dword [eax]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x58], 0
push ebx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x40ec27
mov ebx, eax
cmp eax, 0xb
jae 0x40ea43
mov eax, ebx
add al, bl
mov byte [esp + 0x50], al
lea esi, [esp + 0x51]
test ebx, ebx
jne 0x40ea68
jmp 0x40ea76
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.0051c3d0
add esp, 4
mov esi, eax
mov dword [esp + 0x58], eax
add edi, 2
mov dword [esp + 0x50], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x54], ebx
push ebx
push dword [esp + 0x38]
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea ebx, [esp + 0x174]
mov ecx, ebx
lea eax, [esp + 0x20]
push eax
call fcn.0051f860
movzx eax, byte [ebp + 0x18]
movzx esi, byte [ebp + 0x10]
lea ecx, [esp + 0xa0]
lea edx, [esp + 0x50]
push eax
push dword [ebp + 0x14]
push 0
push esi
push ebx
call fcn.0040eda0
add esp, 0x14
mov ebx, eax
test byte [esp + 0x174], 1
je 0x40eacb
push dword [esp + 0x17c]
call fcn.0051c570
add esp, 4
mov eax, dword [esp + 0x30]
and al, bl
mov dword [esp + 0x30], eax
mov bl, 1
test byte [esp + 0x50], 1
mov esi, dword [esp + 0x3c]
je 0x40eaee
push dword [esp + 0x58]
call fcn.0051c570
add esp, 4
mov ecx, dword [esp + 0x2c]
test byte [esp + 0x20], 1
je 0x40eb09
push dword [esp + 0x28]
call fcn.0051c570
mov ecx, dword [esp + 0x30]
add esp, 4
test bl, bl
jne 0x40e455
jmp 0x40ebfd
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xa0]
push 1
call fcn.004131b0
mov ebx, eax
and bl, byte [esp + 0x30]
mov eax, dword [esp + 0x124]
xor eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x120]
xor ecx, dword [esp + 0xe0]
or ecx, eax
jne 0x40eb8e
mov eax, dword [esp + 0x12c]
xor eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x128]
xor ecx, dword [esp + 0xe8]
or ecx, eax
jne 0x40eb8e
mov eax, dword [esp + 0x134]
xor eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0x130]
xor ecx, dword [esp + 0xf0]
or ecx, eax
je 0x40ebff
lea ecx, [esp + 0xd8]
lea eax, [esp + 0x158]
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x68], 0
push 0
lea edx, [esp + 0x64]
push edx
push eax
call fcn.00417a30
test byte [esp + 0x60], 1
je 0x40ebff
push dword [esp + 0x68]
call fcn.0051c570
add esp, 4
jmp 0x40ebff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push edi
push str.stat_failed_when_trying_to_push_to__s:__s
lea eax, [esp + 0xac]
push eax
call fcn.00413060
add esp, 0x10
xor ebx, ebx
lea ecx, [esp + 0xa0]
call fcn.00412ee0
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
lea ecx, [esp + 0x50]
call fcn.0051f6b0
lea ecx, [esp + 0x60]
call fcn.0051f6b0
lea ecx, [esp + 0x40]
call fcn.0051f6b0
nop word cs:[eax + eax]