Function at 0x40a730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aadbc
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4d82a4]
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 esi, ecx
mov dword [ebp - 0x268], esi
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x264], edi
call fcn.0040a6a0
push 0x208
mov ebx, eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00462120
add esp, 0xc
mov dword [ebp - 0x234], 7
xor eax, eax
mov dword [ebp - 0x238], 0
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push 6
push str.UnKonw
call fcn.00407de0
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 0
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40a7e0
mov eax, dword [str.UnKonw]
mov dword [ecx], eax
mov eax, dword [0x4b01cc]
mov dword [ecx + 4], eax
mov eax, dword [0x4b01d0]
mov dword [ecx + 8], eax
mov ax, word [0x4b01d4]
mov word [ecx + 0xc], ax
test ebx, ebx
je 0x40a9ea
push ebx
lea eax, [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040b050
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push 0x4af804
push dword [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
call fcn.004076b0
add esp, 0x10
test eax, eax
jne 0x40a8de
push ebx
lea eax, [ebp - 0x260]
mov ecx, esi
push eax
call fcn.0040b140
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x40a8bc
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40a893
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407fb0
xor eax, eax
mov dword [ebp - 0x21c], 7
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00406e90
mov eax, dword [ebp - 0x24c]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x40a8de
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00407fb0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00455af7
mov edx, eax
add esp, 8
cmp dword [edx + 0x14], 8
jb 0x40a90c
mov edx, dword [edx]
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a910
lea edi, [ebp - 0x218]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40a926
mov eax, dword [ebp - 0x24c]
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp eax, 8
jb 0x40a95e
inc eax
lea ecx, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
call fcn.00407fb0
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
je 0x40a9c2
lea eax, [ebp - 0x248]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x40a9a1
mov eax, dword [ecx]
jmp 0x40a9a3
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x230]
push edx
push eax
call fcn.00407cc0
mov ecx, dword [ebp - 0x268]
call fcn.0040a510
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40a9e4
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407fb0
mov edi, dword [ebp - 0x264]
cmp word [ebp - 0x218], 0
mov eax, dword [ebp - 0x26c]
mov dword [eax], ebx
jne 0x40aa00
xor ecx, ecx
jmp 0x40aa1f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aa10
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x270]
lea eax, [ebp - 0x218]
push eax
call fcn.00407de0
lea eax, [ebp - 0x248]
cmp edi, eax
je 0x40aa48
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407cc0
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x40aa66
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407fb0
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.00413a09
mov esp, ebp
pop ebp
ret 0x10