Function at 0x414875
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
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, ecx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x1c]
mov ecx, 0x40221c
push edi
mov edi, edx
mov dword [ebp - 0x234], eax
call fcn.00411d90
mov edx, edi
mov ecx, eax
call fcn.00414baf
mov ecx, dword [esi + 0x3c]
xor eax, eax
push eax
xor edx, edx
mov dword [ebp - 0x228], eax
call fcn.0040bc30
mov ebx, eax
mov edx, edi
mov ecx, ebx
call fcn.00414baf
test eax, eax
je 0x4148f5
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4148ea
mov esi, ebx
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4148fc
sub esi, ecx
sar esi, 1
je 0x4209c4
cmp esi, 0x7fe7
jae 0x420b09
mov edi, ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x414922
sub edi, ecx
mov ecx, ebx
sar edi, 1
call fcn.00410060
push eax
lea edx, [edi + 1]
mov ecx, ebx
call fcn.0040f3a0
mov ecx, ebx
call fcn.0040802c
mov ecx, dword [ebp - 0x22c]
mov dword [ecx], eax
cmp eax, 1
je 0x4209bc
xor eax, eax
mov byte [ebp - 0x14], 1
mov edi, 0x104
mov dword [ebp - 0x18], eax
push edi
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x10], edi
push eax
call fcn.00417fbd
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, edi
push eax
call fcn.0040e3f0
test eax, eax
js 0x4209ce
inc esi
xor edi, edi
lea esi, [ebx + esi*2]
cmp word [esi], di
je 0x4209d5
mov ecx, esi
call fcn.0040a7d5
cmp word [eax], di
jne 0x4209c4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4149c3
sub ecx, edx
sar ecx, 1
cmp ecx, 0x7fe7
ja 0x420b09
mov edi, esi
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x4149e5
sub edi, ecx
mov ecx, esi
sar edi, 1
call fcn.00410060
push eax
lea edx, [edi + 1]
mov ecx, esi
call fcn.0040f3a0
movzx eax, word [esi + 2]
push 0x3a
pop edx
cmp ax, dx
jne 0x420a19
push esi
lea ecx, [ebp - 0x220]
call fcn.0040a641
mov edi, dword [ebp + 0xc]
mov edx, edi
mov esi, dword [ebp - 0x224]
mov ecx, esi
push ebx
call fcn.00411cd5
test eax, eax
jne 0x420b09
mov ebx, dword [ebp - 0x22c]
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
test byte [eax], 0x10
jne 0x414a90
push 0x5c
pop edx
mov ecx, esi
call fcn.004101f5
mov esi, eax
test esi, esi
je 0x420abc
add esi, 2
mov ecx, dword [ebx]
push 0x5c
pop edx
mov ecx, dword [ecx + 0x10]
call fcn.004101f5
test eax, eax
jne 0x414a7a
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
push eax
mov eax, esi
mov ecx, esi
sub eax, dword [ebp - 0x224]
sar eax, 1
sub edi, eax
mov edx, edi
call fcn.0040f3a0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420ac7
mov ebx, dword [ebp - 0x230]
mov ecx, ebx
mov edx, dword [ebp + 0x14]
push eax
call fcn.00411cd5
test eax, eax
jne 0x420b09
push eax
mov esi, eax
mov dword [0x4367a8], eax
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov edi, dword [ebp - 0x234]
xor eax, eax
mov ecx, ebx
mov dword [edi], eax
movzx eax, word [ebx]
mov edx, eax
test ax, ax
je 0x414ae7
xor edx, edx
mov eax, ecx
add ecx, 2
cmp word [ecx], dx
jne 0x414ada
movzx edx, word [eax]
push 0x5c
pop eax
cmp dx, ax
je 0x420ad2
push ebx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414b42
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x4367a8], eax
test eax, eax
je 0x414b17
cmp eax, 2
jne 0x420af9
test esi, esi
jne 0x414b4f
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x414b2f
push eax
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416b30
leave
ret 0x18
test al, 0x10
je 0x414b17
xor eax, eax
inc eax
mov dword [edi], eax
mov esi, eax
jmp 0x414b17
mov ecx, dword [ebp - 0x224]
push 0x5c
pop eax
mov edx, eax
call fcn.004101f5
mov edx, eax
xor esi, esi
mov edi, edx
lea eax, [edi + 2]
mov cx, word [edi]
add edi, 2
cmp cx, si
jne 0x414b68
mov esi, ebx
sub edi, eax
sar edi, 1
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, word [ebp - 0x228]
jne 0x414b7c
sub esi, ecx
lea eax, [edi + 1]
sar esi, 1
add eax, esi
cmp eax, 0x7fe7
ja 0x420b09
push edx
mov edx, dword [ebp + 0x14]
mov ecx, ebx
call fcn.0040fc40
jmp 0x414b1b
dec ebp
clc
add al, 1
add byte [eax], al
hlt
and al, 0xff
ror dword [ebx + 0x4d8bfc55], 1
or al, ch
cmp byte [ebx - 1], dh
dec dword [edi]
mov dh, 0xd0
invalid
dec ebp
cld
mov dword [ebp - 0x10], 0
push 0x93eb1cb1
sbb al, 0xeb
xchg ebx, eax
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
push ecx
dec eax
push ecx
call fcn.0041cf00
add esp, 0xc
mov dword [ebp - 0x14], eax
push 0x66
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
call fcn.00417696
add esp, 8
cmp dword [ebp - 0x14], 0
jne 0x420b00
jmp 0x420c87
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx + 0xcb0]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
add eax, dword [edx + 0xcb8]
or al, 0
add byte [ebx + 0x518bfc4d], cl
add eax, dword fs:[edx + 0xcb8]
mov dword [ebp - 8], eax
push 0x6a
push 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
call fcn.00417696
add esp, 8
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call fcn.004198a0
add esp, 0x18
movzx edx, al
test edx, edx
jne 0x420b74
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
call edx
lea eax, [ebp - 0xc]
push eax
push 0x40
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx + 0xcb8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx + 0xcb4]
push eax
mov ecx, dword [edx + 0xcb0]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call fcn.004198a0
add esp, 0x18
movzx ecx, al
test ecx, ecx
jne 0x420bda
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov edx, dword [ecx + 0xcb8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
mov edx, dword [ecx + 0xcb0]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
call edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00417331
add esp, 0xc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push 0x77
push 0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
call fcn.00417696
add esp, 8
push 0x90
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
call edx
add esp, 4
mov dword [ebp - 0x18], eax
push 0x90
mov eax, dword [ebp - 0x18]
push eax
call fcn.00416d73
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00420710
add esp, 0xc
push 0x12c
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call fcn.0041a4e0
add esp, 8
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx + 0xcb8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x64]
mov eax, dword [edx + 0xcb0]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [ebp - 0x1c]
add esp, 0x10
mov esp, ebp
pop ebp
ret