Function at 0x4143d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4afa56
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x4ec05c]
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.00476450
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 0x414454
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.004029b0
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 0x41464b
add eax, 0xfffffff6
lea ecx, [edx + eax*2]
mov eax, edx
mov dword [ebp - 0x264], ecx
sub ecx, eax
sar ecx, 1
je 0x41464b
cmp word [eax], 0x77
je 0x4144f3
add eax, 2
sub ecx, 1
jne 0x4144e0
jmp 0x41464b
mov edx, 0x4b94e8
mov edi, eax
mov esi, 0xb
sub edi, edx
mov cx, word [edx + edi]
cmp cx, word [edx]
jne 0x41457d
add edx, 2
sub esi, 1
jne 0x414501
sub eax, dword [ebp - 0x268]
sar eax, 1
cmp eax, 0xffffffff
je 0x41464b
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x260]
push eax
call fcn.00415070
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x4145fa
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x414595
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41458b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414701
jmp 0x41458b
mov ecx, dword [ebp - 0x264]
add eax, 2
jmp 0x4144d6
push edx
push ecx
call fcn.00473d9c
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.00402190
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 0x414645
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.00420740
mov ebx, dword [ebp - 0x21c]
add esp, 0xc
mov esi, eax
jmp 0x414650
mov ebx, dword [ebp - 0x21c]
mov esi, 1
cmp ebx, 8
jb 0x41468a
mov ecx, dword [ebp - 0x230]
lea edx, [ebx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414680
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414706
push edx
push ecx
call fcn.00473d9c
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 0x4146e3
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4146d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414706
push edx
push ecx
call fcn.00473d9c
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.00474009
mov esp, ebp
pop ebp
ret
call fcn.0047f349
call fcn.0047f349
int3