Function at 0x46fe00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x553948]
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.004063e0
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.00406a40
push 1
push 0x514644
lea ecx, [ebp - 0x20]
call fcn.0040e6e0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040e830
lea edx, [ebp - 0x20]
push edx
mov eax, edx
push eax
call fcn.00417bd0
add esp, 8
lea esi, [ebx + 8]
test al, al
jne 0x46fed8
cmp dword [ebp - 0xc], esi
jb 0x46feb6
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
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 0x4702c0
mov eax, dword [ebp - 0x74]
push eax
jmp 0x4702b8
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x46fee3
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46fea5
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.00417bd0
add esp, 8
test al, al
jne 0x46ff66
cmp dword [ebp - 0x28], esi
jb 0x46ff26
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
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 0x46ff48
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
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 0x4702c0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4702b8
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
push ecx
call fcn.004407c0
add esp, 8
test al, al
jne 0x46ffe2
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004407c0
add esp, 8
test al, al
jne 0x46ffe2
cmp dword [ebp - 0x28], esi
jb 0x46ffa2
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
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 0x46ffc4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
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 0x4702c0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4702b8
push ebx
lea ecx, [ebp - 0xd0]
call fcn.00405e20
push edi
lea ecx, [ebp - 0xd0]
call fcn.00406650
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0xd0]
call fcn.004084d0
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 0x470059
mov edx, dword [ebp - 0xe0]
push edx
mov edx, dword [ebp - 0x80]
lea ecx, [ebp - 0x78]
push ecx
push edx
push eax
call fcn.00406fc0
mov eax, dword [ebp - 0x84]
push eax
call fcn.00406fa9
add esp, 0x14
lea ecx, [ebp - 0xd0]
cmp byte [ebp - 0xd9], bl
je 0x4700bd
call fcn.0043b680
cmp dword [ebp - 0x28], esi
jb 0x47007d
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
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 0x47009f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
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 0x4702c0
mov edx, dword [ebp - 0x74]
push edx
jmp 0x4702b8
lea eax, [ebp - 0x90]
push eax
call fcn.00410670
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.00406a40
lea ecx, [ebp - 0x90]
call fcn.004071f0
mov edx, dword [ebp - 0xd8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.004407c0
add esp, 8
test al, al
jne 0x47017a
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.004407c0
add esp, 8
test al, al
jne 0x47017a
cmp dword [ebp - 0x44], esi
jb 0x47012d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406fa9
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.0043b680
cmp dword [ebp - 0x28], esi
jb 0x470155
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406fa9
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 0x470172
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x46febd
mov eax, dword [ebp - 0x9c]
cmp eax, 1
ja 0x47024d
cmp eax, ebx
jbe 0x470234
lea edx, [ebp - 0xa4]
push edx
lea ecx, [ebp - 0x84]
call fcn.0045dca0
mov eax, dword [ebp - 0x80]
mov esi, dword [eax]
mov dword [ebp - 0xd8], esi
cmp esi, eax
je 0x47020a
mov edi, 0x10
cmp dword [esi + 0x20], edi
lea eax, [esi + 0xc]
jb 0x4701c1
mov eax, dword [eax]
push str.Embedding
push eax
call fcn.004e4d0a
add esp, 8
test eax, eax
jne 0x4702d7
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [esi + 0x28]
push 0x51199c
push eax
push ebx
call fcn.00407490
test eax, eax
jne 0x4702d7
lea ecx, [ebp - 0xd8]
call fcn.0047ea00
mov esi, dword [ebp - 0xd8]
mov eax, dword [ebp - 0x80]
cmp esi, eax
jne 0x4701b7
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x84]
call fcn.0043b750
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406fa9
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.00406a40
mov byte [ebp - 0xd1], 1
cmp dword [ebp - 0x44], esi
jb 0x47025e
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.00406fa9
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.0043b680
cmp dword [ebp - 0x28], esi
jb 0x470286
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00406fa9
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 0x4702a3
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406fa9
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 0x4702c0
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.00406fa9
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.0043b750
mov edx, dword [ebp - 0x80]
push edx
call fcn.00406fa9
mov esi, 8
add esp, 4
cmp dword [ebp - 0x44], esi
jb 0x470312
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406fa9
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.0043b680
cmp dword [ebp - 0x28], esi
jb 0x47033f
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00406fa9
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 0x470172
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00406fa9
add esp, 4
mov dword [ebp - 0xc], edi
jmp 0x46febd