Function at 0x4610b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x522638]
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.00405fe0
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.00406640
push 1
push 0x4e84a0
lea ecx, [ebp - 0x20]
call fcn.0040d980
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040d6b0
lea edx, [ebp - 0x20]
push edx
mov eax, edx
push eax
call fcn.0041e780
add esp, 8
lea esi, [ebx + 8]
test al, al
jne 0x461188
cmp dword [ebp - 0xc], esi
jb 0x461166
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ca9
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 0x461570
mov eax, dword [ebp - 0x74]
push eax
jmp 0x461568
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x461193
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461155
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.0041e780
add esp, 8
test al, al
jne 0x461216
cmp dword [ebp - 0x28], esi
jb 0x4611d6
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
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 0x4611f8
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
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 0x461570
mov edx, dword [ebp - 0x74]
push edx
jmp 0x461568
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.00459fb0
add esp, 8
test al, al
jne 0x461292
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.00459fb0
add esp, 8
test al, al
jne 0x461292
cmp dword [ebp - 0x28], esi
jb 0x461252
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
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 0x461274
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
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 0x461570
mov edx, dword [ebp - 0x74]
push edx
jmp 0x461568
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00405a20
push edi
lea ecx, [ebp - 0xd0]
call fcn.00406250
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408130
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 0x461309
mov edx, dword [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406cc0
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406ca9
add esp, 0x14
lea ecx, [ebp - 0xd0]
cmp byte [ebp - 0xd9], bl
je 0x46136d
call fcn.00435650
cmp dword [ebp - 0x28], esi
jb 0x46132d
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ca9
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 0x46134f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ca9
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 0x461570
mov edx, dword [ebp - 0x74]
push edx
jmp 0x461568
lea eax, [ebp - 0x90]
push eax
call fcn.00419dd0
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.00406640
lea ecx, [ebp - 0x90]
call fcn.00406ef0
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.00459fb0
add esp, 8
test al, al
jne 0x46142a
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00459fb0
add esp, 8
test al, al
jne 0x46142a
cmp dword [ebp - 0x44], esi
jb 0x4613dd
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ca9
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.00435650
cmp dword [ebp - 0x28], esi
jb 0x461405
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ca9
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 0x461422
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x46116d
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x4614fd
cmp eax, ebx
jbe 0x4614e4
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x84]
call fcn.00453620
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
mov dword [ebp - 0xd8], esi
cmp esi, eax
je 0x4614ba
mov edi, 0x10
cmp dword [esi + 0x20], edi
lea eax, [esi + 0xc]
jb 0x461471
mov eax, dword [eax]
push str.Embedding
push eax
call fcn.004b89b9
add esp, 8
test eax, eax
jne 0x461587
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [esi + 0x28]
push 0x4e596c
push eax
push ebx
call fcn.00407190
test eax, eax
jne 0x461587
lea ecx, [ebp - 0xd8]
call fcn.00452880
mov esi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x80]
cmp esi, eax
jne 0x461467
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00435720
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406ca9
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.00406640
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], esi
jb 0x46150e
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406ca9
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.00435650
cmp dword [ebp - 0x28], esi
jb 0x461536
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406ca9
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 0x461553
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ca9
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 0x461570
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00406ca9
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.00435720
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406ca9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x4615c2
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ca9
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.00435650
cmp dword [ebp - 0x28], esi
jb 0x4615ef
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ca9
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 0x461422
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ca9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x46116d