Function at 0x406a00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a17e3
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x62c144]
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 0x406a6c
call fcn.00449c97
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 0x406a79
push ecx
push 0
call fcn.0043e368
cdq
add esp, 8
add dword [ebx], eax
adc dword [ebx + 4], edx
jmp 0x406a79
call fcn.00449c97
add esp, 4
mov dword [ebx], eax
mov dword [ebx + 4], edx
call fcn.0043d81c
test al, al
je 0x406aa0
stc
add byte [edi], dl
mov esi, 0xb83ed00a
jne 0x406aa1
das
invalid
xor eax, eax
mov dword [ebp - 0x2c], 0xf
push 0xffffffffffffffff
rol bh, 0x45
aam 0xf
add byte [eax], al
add byte [edx - 1], ch
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.00401d70
cmp dword [ebx + 0x128], 0
mov dword [ebp - 4], 0
je 0x406bd2
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 fcn.0043210d
mov ecx, dword [ebx + 0x128]
add esp, 8
push 0
call fcn.00403b00
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 0x406ba5
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 0x406b55
mov eax, dword [ecx]
jmp 0x406b57
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.00401fa0
call fcn.00426585
mov dword [ebp - 0x60], eax
add esp, 0x1c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x406b8c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402210
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jmp 0x406ce1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x406bbe
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402210
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x30], 0
je 0x406ce1
push 0x1869f
push 0x2710
call fcn.0043e368
add esp, 8
lea ecx, [ebp - 0x40]
mov esi, eax
push 1
push 0x5a69e0
call fcn.00406f60
push 5
push str.c251f
lea ecx, [ebp - 0x40]
call fcn.00406f60
push 1
push 0x5a69ec
lea ecx, [ebp - 0x40]
call fcn.00406f60
mov eax, esi
cdq
push edx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00426e86
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00406e60
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x406c58
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004021c0
lea ecx, [ebp - 0xa4]
call fcn.0043da14
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0043de84
lea ecx, [ebp - 0xa4]
call fcn.0043e253
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.00439cc8
mov ecx, dword [ebp - 0x5c]
mov edi, eax
inc ecx
mov dword [ebp - 0x60], edi
push ecx
push 0
push edi
call fcn.00446360
mov ecx, dword [esi + 4]
add esp, 0x10
xor edx, edx
sub ecx, dword [esi]
je 0x406cd2
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 0x406cc0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.0043da8a
call fcn.0043d67e
test al, al
je 0x406cfc
mov al, byte ss:[0x6db99a2f]
xchg esp, eax
idiv byte [edi - 0x235c8ae4]
inc edx
mov ecx, 0xe8020816
inc ecx
add ax, word [eax]
call fcn.0043d342
test al, al
je 0x406d20
pop ebx
xchg edx, eax
scasb al, byte es:[edi]
invalid
call fcn.0043d342
test al, al
je 0x406d44
stosb byte es:[edi], al
or eax, 0x98e93875
dec edx
jl 0x406da3
daa
jae 0x406ce6
lcall 0x5339, 0xede24cce
cmc
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.0043e469
mov eax, dword [ebp - 0x64]
add esp, 0x10
test eax, eax
jne 0x406d8c
push 0x8d
call fcn.0043ec3d
add esp, 4
test ebx, ebx
je 0x406da8
push ebx
call fcn.00439cd1
add esp, 4
jmp 0x406da8
mov esi, dword [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00406610
test ebx, ebx
je 0x406da4
push ebx
call fcn.00439cd1
add esp, 4
add al, 0xc6
inc esi
or al, 1
mov byte [esi + 0xc], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x406df2
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x1000
jb 0x406de9
test cl, 0x1f
je 0x406dc5
call fcn.00448de1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x406dd1
call fcn.00448de1
sub ecx, eax
cmp ecx, 4
jae 0x406ddd
call fcn.00448de1
cmp ecx, 0x23
jbe 0x406de7
call fcn.00448de1
mov ecx, eax
push ecx
call fcn.00439a3c
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.00439cb7
mov esp, ebp
pop ebp
ret