Function at 0x46ba90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x54e938]
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.00406300
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.00406960
push 1
push 0x5104d4
lea ecx, [ebp - 0x20]
call fcn.0040e560
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040e6b0
lea edx, [ebp - 0x20]
push edx
mov eax, edx
push eax
call fcn.00417a40
add esp, 8
lea esi, [ebx + 8]
test al, al
jne 0x46bb68
cmp dword [ebp - 0xc], esi
jb 0x46bb46
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
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 0x46bf50
mov eax, dword [ebp - 0x74]
push eax
jmp 0x46bf48
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x46bb73
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46bb35
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.00417a40
add esp, 8
test al, al
jne 0x46bbf6
cmp dword [ebp - 0x28], esi
jb 0x46bbb6
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46bbd8
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
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 0x46bf50
mov edx, dword [ebp - 0x74]
push edx
jmp 0x46bf48
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46bc72
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46bc72
cmp dword [ebp - 0x28], esi
jb 0x46bc32
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46bc54
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
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 0x46bf50
mov edx, dword [ebp - 0x74]
push edx
jmp 0x46bf48
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00405d40
push edi
lea ecx, [ebp - 0xd0]
call fcn.00406570
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00408350
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 0x46bce9
mov edx, dword [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406ee0
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406ec9
add esp, 0x14
lea ecx, [ebp - 0xd0]
cmp byte [ebp - 0xd9], bl
je 0x46bd4d
call fcn.00438ee0
cmp dword [ebp - 0x28], esi
jb 0x46bd0d
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
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 0x46bd2f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
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 0x46bf50
mov edx, dword [ebp - 0x74]
push edx
jmp 0x46bf48
lea eax, [ebp - 0x90]
push eax
call fcn.004104f0
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.00406960
lea ecx, [ebp - 0x90]
call fcn.00407110
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46be0a
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0043dfb0
add esp, 8
test al, al
jne 0x46be0a
cmp dword [ebp - 0x44], esi
jb 0x46bdbd
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ec9
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.00438ee0
cmp dword [ebp - 0x28], esi
jb 0x46bde5
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
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 0x46be02
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x46bb4d
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x46bedd
cmp eax, ebx
jbe 0x46bec4
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x84]
call fcn.00459f20
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
mov dword [ebp - 0xd8], esi
cmp esi, eax
je 0x46be9a
mov edi, 0x10
cmp dword [esi + 0x20], edi
lea eax, [esi + 0xc]
jb 0x46be51
mov eax, dword [eax]
push str.Embedding
push eax
call fcn.004e20da
add esp, 8
test eax, eax
jne 0x46bf67
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [esi + 0x28]
push 0x50d97c
push eax
push ebx
call fcn.004073b0
test eax, eax
jne 0x46bf67
lea ecx, [ebp - 0xd8]
call fcn.0047a880
mov esi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x80]
cmp esi, eax
jne 0x46be47
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.00438fb0
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406ec9
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.00406960
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], esi
jb 0x46beee
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406ec9
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.00438ee0
cmp dword [ebp - 0x28], esi
jb 0x46bf16
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406ec9
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 0x46bf33
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ec9
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 0x46bf50
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0xd1]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
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.00438fb0
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406ec9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x46bfa2
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ec9
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.00438ee0
cmp dword [ebp - 0x28], esi
jb 0x46bfcf
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406ec9
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 0x46be02
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406ec9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x46bb4d