Function at 0x4590f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x5246a8]
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.00406040
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.004066a0
push 1
push 0x4e9370
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 0x4591c8
cmp dword [ebp - 0xc], esi
jb 0x4591a6
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406d09
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 0x4595b0
mov eax, dword [ebp - 0x74]
push eax
jmp 0x4595a8
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x4591d3
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459195
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 0x459256
cmp dword [ebp - 0x28], esi
jb 0x459216
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
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 0x459238
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
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 0x4595b0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4595a8
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.0045b070
add esp, 8
test al, al
jne 0x4592d2
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0045b070
add esp, 8
test al, al
jne 0x4592d2
cmp dword [ebp - 0x28], esi
jb 0x459292
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
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 0x4592b4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
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 0x4595b0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4595a8
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00405a80
push edi
lea ecx, [ebp - 0xd0]
call fcn.004062b0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408190
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 0x459349
mov edx, dword [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406d20
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406d09
add esp, 0x14
lea ecx, [ebp - 0xd0]
cmp byte [ebp - 0xd9], bl
je 0x4593ad
call fcn.0042f340
cmp dword [ebp - 0x28], esi
jb 0x45936d
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406d09
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 0x45938f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406d09
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 0x4595b0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4595a8
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.004066a0
lea ecx, [ebp - 0x90]
call fcn.00406f50
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0045b070
add esp, 8
test al, al
jne 0x45946a
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0045b070
add esp, 8
test al, al
jne 0x45946a
cmp dword [ebp - 0x44], esi
jb 0x45941d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406d09
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 0x459445
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406d09
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 0x459462
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406d09
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x4591ad
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x45953d
cmp eax, ebx
jbe 0x459524
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x84]
call fcn.0044d8c0
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
mov dword [ebp - 0xd8], esi
cmp esi, eax
je 0x4594fa
mov edi, 0x10
cmp dword [esi + 0x20], edi
lea eax, [esi + 0xc]
jb 0x4594b1
mov eax, dword [eax]
push str.Embedding
push eax
call fcn.004b7a07
add esp, 8
test eax, eax
jne 0x4595c7
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [esi + 0x28]
push 0x4e696c
push eax
push ebx
call fcn.004071f0
test eax, eax
jne 0x4595c7
lea ecx, [ebp - 0xd8]
call fcn.0044c7f0
mov esi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x80]
cmp esi, eax
jne 0x4594a7
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.00406d09
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.004066a0
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], esi
jb 0x45954e
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406d09
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 0x459576
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406d09
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 0x459593
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406d09
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 0x4595b0
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00406d09
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.00406d09
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x459602
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406d09
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 0x45962f
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406d09
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 0x459462
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406d09
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x4591ad