Function at 0x414360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b19a6
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4ee05c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x26c], ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00478480
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4143e4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00402940
mov ebx, 7
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], ebx
mov word [ebp - 0x230], ax
cmp dword [ebp - 0x234], 8
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmovae edx, dword [ebp - 0x248]
mov byte [ebp - 4], 1
mov dword [ebp - 0x268], edx
cmp eax, 0xb
jb 0x4145db
add eax, 0xfffffff6
lea ecx, [edx + eax*2]
mov eax, edx
mov dword [ebp - 0x264], ecx
sub ecx, eax
sar ecx, 1
je 0x4145db
cmp word [eax], 0x77
je 0x414483
add eax, 2
sub ecx, 1
jne 0x414470
jmp 0x4145db
mov edx, 0x4bb4e8
mov edi, eax
mov esi, 0xb
sub edi, edx
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x41450d
add edx, 2
sub esi, 1
jne 0x414491
sub eax, dword [ebp - 0x268]
sar eax, 1
cmp eax, 0xffffffff
je 0x4145db
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x260]
push eax
call fcn.00415000
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x41458a
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x414525
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41451b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414691
jmp 0x41451b
mov ecx, dword [ebp - 0x264]
add eax, 2
jmp 0x414466
push edx
push ecx
call fcn.00475cfa
add esp, 8
mov dword [ebp - 0x220], 0
xor eax, eax
mov word [ebp - 0x230], ax
mov dword [ebp - 0x21c], 7
mov eax, dword [esi]
mov dword [ebp - 0x230], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x224], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x21c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x260]
call fcn.00402120
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4145d5
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004218d0
mov ebx, dword [ebp - 0x21c]
add esp, 0xc
mov esi, eax
jmp 0x4145e0
mov ebx, dword [ebp - 0x21c]
mov esi, 1
cmp ebx, 8
jb 0x41461a
mov ecx, dword [ebp - 0x230]
lea edx, [ebx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414610
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414696
push edx
push ecx
call fcn.00475cfa
add esp, 8
mov edx, dword [ebp - 0x234]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp edx, 8
jb 0x414673
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414669
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414696
push edx
push ecx
call fcn.00475cfa
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00475f67
mov esp, ebp
pop ebp
ret
call fcn.00481379
call fcn.00481379
int3