Function at 0x406130
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a2673
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x62e10c]
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 ebx, ecx
mov dword [ebp - 0x68], ebx
mov eax, dword [ebx]
or eax, dword [ebx + 4]
push 0
jne 0x40619c
call fcn.00449e5c
mov ecx, dword [ebx + 8]
add esp, 4
shl ecx, 4
sub ecx, dword [ebx + 8]
shl ecx, 2
mov dword [ebx], eax
mov dword [ebx + 4], edx
test ecx, ecx
jle 0x4061a9
push ecx
push 0
call fcn.00424956
cdq
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
jmp 0x4061a9
call fcn.00449e5c
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.00425114
test al, al
je 0x4061d0
into
arpl ax, si
sbb ah, 0x18
fldenv [edi - 0xba708be]
outsd dx, dword [esi]
adc eax, 0xa346434a
xchg edx, eax
cmp eax, 0x3b538cd
int 0x8b
pop ebp
cwde
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x5c], eax
lea eax, [ebx + 0x110]
push 0
push eax
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401e70
mov dword [ebp - 4], 0
cmp dword [ebx + 0x128], 0
je 0x406302
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 1
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
lea ecx, [ebp - 0x40]
mov eax, esp
push ecx
push eax
call int.004281cb
mov ecx, dword [ebx + 0x128]
add esp, 8
push 0
call fcn.00404900
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4062d5
lea eax, [ebp - 0x5c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x406285
mov eax, dword [ecx]
jmp 0x406287
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00401bc0
call fcn.00422df5
mov dword [ebp - 0x60], eax
add esp, 0x1c
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4062bc
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401fa0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x406404
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4062ee
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401fa0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x406404
push 0x1869f
push 0x2710
call fcn.00424956
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x623198
call fcn.004071a0
push 5
push str.c251f
lea ecx, [ebp - 0x40]
call fcn.004071a0
push 1
push 0x6231a4
lea ecx, [ebp - 0x40]
call fcn.004071a0
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00421c45
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004072d0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00401930
lea ecx, [ebp - 0xa4]
call fcn.0043c345
mov byte [ebp - 4], 3
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0xa4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0043c7b5
lea ecx, [ebp - 0xa4]
call fcn.0043cb84
mov esi, eax
mov ecx, 1
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmove eax, ecx
mov dword [ebp - 0x5c], eax
inc eax
push eax
call fcn.00436a01
mov ecx, dword [ebp - 0x5c]
mov edi, eax
inc ecx
mov dword [ebp - 0x60], edi
push ecx
push 0
push edi
call fcn.00446a10
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x4063f5
mov eax, dword [esi]
mov al, byte [edx + eax]
mov byte [edx + edi], al
inc edx
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp edx, eax
jb 0x4063e3
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.0043c3bb
call fcn.00424f76
test al, al
je 0x40641f
or eax, 0x73ef423a
pop es
aas
add dword [ebp + 0x414ae0ae], 0x70590698
sahf
call fcn.00424c3a
test al, al
je 0x406443
mov ah, 0x96
push ecx
outsd dx, dword [esi]
int1
pop edi
int3
call fcn.00424c3a
test al, al
je 0x406467
dec ebp
int 0xa2
push 0xfffffffffffffff1
xchg edi, eax
pop ds
invalid
mov ebx, dword [ebp - 0x60]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push dword [ebp - 0x5c]
mov dword [ebp - 0x70], 0
push ebx
call fcn.0043cf0a
mov eax, dword [ebp - 0x64]
add esp, 0x10
test eax, eax
jne 0x4064af
push 0x8d
call fcn.00425626
add esp, 4
test ebx, ebx
je 0x4064cb
push ebx
call fcn.004369fc
add esp, 4
jmp 0x4064cb
mov esi, dword [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00406740
test ebx, ebx
je 0x4064c7
push ebx
call fcn.004369fc
add esp, 4
mov byte [esi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x406515
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x40650c
test cl, 0x1f
je 0x4064e8
call fcn.00448fc1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4064f4
call fcn.00448fc1
sub ecx, eax
cmp ecx, 4
jae 0x406500
call fcn.00448fc1
cmp ecx, 0x23
jbe 0x40650a
call fcn.00448fc1
mov ecx, eax
push ecx
call fcn.0043671a
add esp, 4
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.0043671f
mov esp, ebp
pop ebp
ret