Function at 0x459230
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x5256a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0xc
mov dword [ebp - 0xe0], ecx
xor ebx, ebx
xor edx, edx
push str.IMEPADSV.EXE
lea ecx, [ebp - 0x74]
mov dword [ebp - 0xd8], eax
mov byte [ebp - 0xd1], bl
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], ebx
mov word [ebp - 0x74], dx
call fcn.00406030
push 0xffffffffffffffff
push ebx
xor eax, eax
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], ax
call fcn.00406690
push 1
push 0x4ea370
lea ecx, [ebp - 0x20]
call fcn.0040d610
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040d500
lea edx, [ebp - 0x20]
push edx
mov eax, edx
push eax
call fcn.00416360
add esp, 8
lea esi, [ebx + 8]
test al, al
jne 0x459308
cmp dword [ebp - 0xc], esi
jb 0x4592e6
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
mov dword [ebp - 0xc], 7
xor edx, edx
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], dx
cmp dword [ebp - 0x60], esi
jb 0x4596f0
mov eax, dword [ebp - 0x74]
push eax
jmp 0x4596e8
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x459313
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4592d5
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0x3c]
push edx
xor ecx, ecx
push eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], cx
call fcn.00416360
add esp, 8
test al, al
jne 0x459396
cmp dword [ebp - 0x28], esi
jb 0x459356
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], esi
jb 0x459378
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], cx
cmp dword [ebp - 0x60], esi
jb 0x4596f0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4596e8
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x459412
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x459412
cmp dword [ebp - 0x28], esi
jb 0x4593d2
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], esi
jb 0x4593f4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], cx
cmp dword [ebp - 0x60], esi
jb 0x4596f0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4596e8
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00405a70
push edi
lea ecx, [ebp - 0xd0]
call fcn.004062a0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408180
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
mov eax, dword [ebp - 0x84]
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
setne byte [ebp - 0xd9]
cmp eax, ebx
je 0x459489
mov edx, dword [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406d10
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406cf9
add esp, 0x14
lea ecx, [ebp - 0xd0]
cmp byte [ebp - 0xd9], bl
je 0x4594ed
call fcn.0042f340
cmp dword [ebp - 0x28], esi
jb 0x4594ad
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
cmp dword [ebp - 0xc], esi
jb 0x4594cf
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], ebx
mov word [ebp - 0x20], cx
cmp dword [ebp - 0x60], esi
jb 0x4596f0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4596e8
lea eax, [ebp - 0x90]
push eax
call fcn.0040fcb0
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x58], cx
mov edi, 7
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
call fcn.00406690
lea ecx, [ebp - 0x90]
call fcn.00406f40
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x4595aa
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0045b1d0
add esp, 8
test al, al
jne 0x4595aa
cmp dword [ebp - 0x44], esi
jb 0x45955d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x58], cx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
call fcn.0042f340
cmp dword [ebp - 0x28], esi
jb 0x459585
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], esi
jb 0x4595a2
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x4592ed
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x45967d
cmp eax, ebx
jbe 0x459664
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x84]
call fcn.0044d9b0
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
mov dword [ebp - 0xd8], esi
cmp esi, eax
je 0x45963a
mov edi, 0x10
cmp dword [esi + 0x20], edi
lea eax, [esi + 0xc]
jb 0x4595f1
mov eax, dword [eax]
push str.Embedding
push eax
call fcn.004b79a7
add esp, 8
test eax, eax
jne 0x459707
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [esi + 0x28]
push 0x4e796c
push eax
push ebx
call fcn.004071e0
test eax, eax
jne 0x459707
lea ecx, [ebp - 0xd8]
call fcn.0044c940
mov esi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x80]
cmp esi, eax
jne 0x4595e7
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0042f410
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406cf9
mov esi, 8
add esp, 4
lea edi, [esi - 1]
mov ecx, dword [ebp - 0xe0]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00406690
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], esi
jb 0x45968e
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406cf9
add esp, 4
xor edx, edx
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], dx
call fcn.0042f340
cmp dword [ebp - 0x28], esi
jb 0x4596b6
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x3c], cx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0xc], esi
jb 0x4596d3
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov word [ebp - 0x20], ax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], edi
cmp dword [ebp - 0x60], esi
jb 0x4596f0
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00406cf9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401306
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0xe0]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0042f410
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406cf9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x459742
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406cf9
add esp, 4
xor ecx, ecx
mov word [ebp - 0x58], cx
mov edi, 7
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], ebx
call fcn.0042f340
cmp dword [ebp - 0x28], esi
jb 0x45976f
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406cf9
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], ax
cmp dword [ebp - 0xc], esi
jb 0x4595a2
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406cf9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x4592ed