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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42d0b4]
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 sub.msvcrt.dll_memset
add esp, 0xc
cmp byte [ebp - 0x14], 0
je 0x41dbb1
mov eax, 0x7fe7
push eax
lea ecx, [ebp - 0x220]
call fcn.0040e330
test eax, eax
js 0x41dbbb
xor edi, edi
lea ecx, [ecx]
cmp edi, 0x7fe6
jae 0x40e97d
mov eax, dword [esi + 0x38]
movzx esi, word [eax + edi*2]
cmp esi, 0x22
je 0x40eaf4
test si, si
je 0x40e97d
cmp byte [ebp - 0x221], 0
jne 0x40e949
push esi
push 0x40234c
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x40e97d
cmp ebx, 0xffffffff
jne 0x40e965
push esi
push 0x402364
call dword [sym.imp.msvcrt.dll_wcschr]
add esp, 8
test eax, eax
jne 0x40eb15
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dbc5
mov word [eax + edi*2], si
inc edi
mov esi, dword [ebp - 0x228]
jmp 0x40e910
mov dword [ebp - 0x230], edi
test edi, edi
je 0x41dbd0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dbd8
xor ecx, ecx
mov word [eax + edi*2], cx
cmp ebx, 0xffffffff
jne 0x40eb29
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41dbe3
xor edi, edi
mov esi, 0x401678
mov eax, dword [esi - 8]
test eax, eax
je 0x40e9cd
push eax
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40e9e4
add esi, 0x18
inc edi
cmp esi, 0x401a68
jle 0x40e9b7
mov ecx, dword [ebp - 0x22c]
or edi, 0xffffffff
jmp 0x40e9f8
movzx eax, word [esi]
test al, 4
jne 0x41dbee
mov ecx, dword [ebp - 0x22c]
mov word [ecx], ax
mov dword [0x42d0d8], edi
cmp edi, 0xffffffff
je 0x40ea6b
mov ecx, dword [ebp - 0x228]
mov ebx, dword [ebp - 0x230]
cmp edi, 0x14
je 0x40ea62
mov ecx, dword [ecx + 0x38]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea20
sub ecx, edx
sar ecx, 1
cmp ebx, ecx
jne 0x41dc15
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x40ea4f
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.00416ad0
mov esp, ebp
pop ebp
ret
mov dword [ecx + 0x40], 1
jmp 0x40ea14
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x41dc00
push ecx
mov ecx, 0x2d
call fcn.0040ecd0
cmp eax, 0x2d
je 0x41dc0b
xor cl, cl
xor ebx, ebx
mov byte [ebp - 0x221], cl
jmp 0x40eaa0
mov eax, dword [ebp - 0x228]
mov eax, dword [eax + 0x38]
movzx esi, word [eax + ebx*2]
test si, si
je 0x40eae9
cmp esi, 0x22
je 0x40eb07
test cl, cl
je 0x40eabe
inc ebx
jmp 0x40eaa0
push esi
call dword [sym.imp.msvcrt.dll_iswspace]
add esp, 4
test eax, eax
jne 0x40eae9
mov edx, esi
mov ecx, 0x4022c0
call fcn.0040a574
test eax, eax
jne 0x40eae9
cmp esi, 0x2f
je 0x40eae9
mov cl, byte [ebp - 0x221]
jmp 0x40eabb
mov ecx, dword [ebp - 0x228]
jmp 0x40ea14
cmp byte [ebp - 0x221], 0
sete byte [ebp - 0x221]
jmp 0x40e949
test cl, cl
sete cl
inc ebx
mov byte [ebp - 0x221], cl
jmp 0x40eaa0
cmp byte [0x435745], 0
je 0x40e97d
mov ebx, edi
jmp 0x40e965
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40eb5e
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40eb54
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x230], ebx
test eax, eax
je 0x40eb66
xor ecx, ecx
mov word [eax + ebx*2], cx
jmp 0x40e9a5
test al, 0x10
je 0x40e9a5
jmp 0x40eb3c
lea eax, [ebp - 0x220]
jmp 0x40eb30
lea eax, [ebp - 0x220]
jmp 0x40eb49
mov eax, 0x104
jmp 0x40e8f7
mov edi, 0xfffffffe
jmp 0x40ea37
lea eax, [ebp - 0x220]
jmp 0x40e970
or edi, 0xffffffff
jmp 0x40ea37
lea eax, [ebp - 0x220]
jmp 0x40e996
lea ebx, [ebp - 0x220]
jmp 0x40e9b0
cmp byte [0x435745], 0
jne 0x40e9ef
jmp 0x40e9cd
lea edx, [ebp - 0x220]
jmp 0x40ea76
mov edi, 0x2d
jmp 0x40ea37
mov eax, dword [ebp - 0x228]
lea esi, [ecx + 1]
mov ecx, dword [eax + 0x3c]
test ecx, ecx
je 0x41dc39
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41dc28
sub ecx, edx
sar ecx, 1
add esi, ecx
lea ecx, [esi + esi]
call fcn.0040dc10
mov ecx, eax
mov dword [ebp - 0x22c], ecx
test ecx, ecx
jne 0x41dc5f
call fcn.00429762
push 1
push 0x43fa20
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [ebp - 0x228]
add ebx, ebx
mov edx, esi
mov eax, dword [eax + 0x38]
add eax, ebx
push eax
call fcn.0040f2e0
mov ecx, dword [ebp - 0x228]
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x41dc93
mov edx, esi
mov esi, dword [ebp - 0x22c]
push eax
mov ecx, esi
call fcn.0040fb80
jmp 0x41dc99
mov esi, dword [ebp - 0x22c]
mov eax, dword [ebp - 0x228]
xor ecx, ecx
mov dword [eax + 0x3c], esi
mov eax, dword [eax + 0x38]
mov word [ebx + eax], cx
jmp 0x40ea37