Function at 0x40e950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42e0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x220]
mov dword [ebp - 0x22c], edx
mov esi, ecx
mov byte [ebp - 0x221], 0
push 0
push eax
mov dword [ebp - 0x228], esi
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x10], 0x104
call fcn.00417fbd
add esp, 0xc
cmp byte [ebp - 0x14], 0
je 0x41dcf0
mov eax, 0x7fe7
push eax
lea ecx, [ebp - 0x220]
call fcn.0040e3f0
test eax, eax
js 0x41dcfa
xor edi, edi
lea ecx, [ecx]
cmp edi, 0x7fe6
jae 0x40ea3d
mov eax, dword [esi + 0x38]
movzx esi, word [eax + edi*2]
cmp esi, 0x22
je 0x40ebb4
test si, si
je 0x40ea3d
cmp byte [ebp - 0x221], 0
jne 0x40ea09
push esi
push 0x40235c
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x40ea3d
cmp ebx, 0xffffffff
jne 0x40ea25
push esi
push 0x402374
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x40ebd5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dd04
mov word [eax + edi*2], si
inc edi
mov esi, dword [ebp - 0x228]
jmp 0x40e9d0
mov dword [ebp - 0x230], edi
test edi, edi
je 0x41dd0f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dd17
xor ecx, ecx
mov word [eax + edi*2], cx
cmp ebx, 0xffffffff
jne 0x40ebe9
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41dd22
xor edi, edi
mov esi, 0x401688
mov eax, dword [esi - 8]
test eax, eax
je 0x40ea8d
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40eaa4
add esi, 0x18
inc edi
cmp esi, 0x401a78
jle 0x40ea77
mov ecx, dword [ebp - 0x22c]
or edi, 0xffffffff
jmp 0x40eab8
movzx eax, word [esi]
test al, 4
jne 0x41dd2d
mov ecx, dword [ebp - 0x22c]
mov word [ecx], ax
mov dword [0x42e0d8], edi
cmp edi, 0xffffffff
je 0x40eb2b
mov ecx, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x230]
cmp edi, 0x14
je 0x40eb22
mov ecx, dword [ecx + 0x38]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eae0
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
jne 0x41dd54
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x40eb0f
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x40], 1
jmp 0x40ead4
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x41dd3f
push ecx
mov ecx, 0x2d
call fcn.0040ed90
cmp eax, 0x2d
je 0x41dd4a
xor cl, cl
xor ebx, ebx
mov byte [ebp - 0x221], cl
jmp 0x40eb60
mov eax, dword [ebp - 0x228]
mov eax, dword [eax + 0x38]
movzx esi, word [eax + ebx*2]
test si, si
je 0x40eba9
cmp esi, 0x22
je 0x40ebc7
test cl, cl
je 0x40eb7e
inc ebx
jmp 0x40eb60
push esi
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
jne 0x40eba9
mov edx, esi
mov ecx, 0x4022d0
call fcn.0040a62f
test eax, eax
jne 0x40eba9
cmp esi, 0x2f
je 0x40eba9
mov cl, byte [ebp - 0x221]
jmp 0x40eb7b
mov ecx, dword [ebp - 0x228]
jmp 0x40ead4
cmp byte [ebp - 0x221], 0
sete byte [ebp - 0x221]
jmp 0x40ea09
test cl, cl
sete cl
inc ebx
mov byte [ebp - 0x221], cl
jmp 0x40eb60
cmp byte [0x436755], 0
je 0x40ea3d
mov ebx, edi
jmp 0x40ea25
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ec1e
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ec14
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x230], ebx
test eax, eax
je 0x40ec26
xor ecx, ecx
mov word [eax + ebx*2], cx
jmp 0x40ea65
test al, 0x10
je 0x40ea65
jmp 0x40ebfc
lea eax, [ebp - 0x220]
jmp 0x40ebf0
lea eax, [ebp - 0x220]
jmp 0x40ec09
inc ebp
call 0x41dcf6
push ebp
or byte [ebx - 0x74affbbe], cl
dec ebp
or byte [ebx - 0x74adebaf], cl
inc ebp
or byte [ebx + 0x52118b08], cl
adc al, 0x52
adc dword [edx - 0x18], edx
invalid
mov dh, 0xc0
dec ebp
in al, 0x8b
push ebp
or byte [ecx + 0x1b04c4a], cl
int3
add byte [eax], dl
add byte [eax], al
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x41dd6b
xor al, al
jmp 0x41e021
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp + 0xc]
lea ecx, [eax + edx + 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x3c]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx + 0x34], 0
je 0x41ddc2
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
jmp 0x41ddd3
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
movzx eax, word [edx + 2]
sub eax, 1
imul ecx, eax, 0x28
mov edx, dword [ebp - 4]
movzx eax, word [edx + 2]
sub eax, 1
imul edx, eax, 0x28
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 0x14]