Function at 0x46ca00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513f62
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x57d074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x84], esi
mov edi, ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x88], edi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x7c], 0
call fcn.0046d3b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x7c], 1
jb 0x46ca72
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ca85
mov byte [ebp - 0x71], al
cmp dword [esi + 0x10], eax
jne 0x46ca89
mov byte [ebp - 0x71], 1
mov dword [ebp - 4], 0
mov eax, 1
mov dword [ebp - 0x7c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x46cb0a
lea edx, [eax + 1]
mov eax, dword [ebp - 0x28]
mov ecx, eax
cmp edx, 0x7fffffff
ja 0x46cf9c
add edx, edx
cmp edx, 0x1000
jb 0x46cb00
lea edi, [edx + 0x23]
mov dword [ebp - 0x80], edi
cmp edi, edx
mov edi, dword [ebp - 0x78]
jbe 0x46cf9c
mov edx, dword [ebp - 0x80]
test cl, 0x1f
jne 0x46cf9c
mov eax, dword [eax - 4]
cmp eax, ecx
jae 0x46cf9c
sub ecx, eax
cmp ecx, 4
jb 0x46cf9c
cmp ecx, 0x23
ja 0x46cf9c
push edx
push eax
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp byte [ebp - 0x71], al
je 0x46cbd7
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
cmp dword [esi + 0x14], 8
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x78], ecx
jb 0x46cb3b
mov esi, dword [esi]
cmp ecx, 8
jae 0x46cb4c
mov ebx, 7
mov ecx, edi
lea eax, [ebx + 9]
jmp 0x46cbb0
mov ebx, ecx
mov eax, 0x7ffffffe
or ebx, 7
cmp ebx, eax
cmova ebx, eax
lea eax, [ebx + 1]
test eax, eax
jne 0x46cb66
xor ecx, ecx
jmp 0x46cba4
cmp eax, 0x7fffffff
ja 0x46cfa1
add eax, eax
cmp eax, 0x1000
jb 0x46cb99
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x46cfa6
push ecx
call fcn.004da6a7
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x46cba4
push eax
call fcn.004da6a7
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x78]
mov dword [edi], ecx
lea eax, [eax*2 + 2]
mov dword [ebp - 4], 0
push eax
push esi
push ecx
call fcn.004dbdb0
mov eax, dword [ebp - 0x78]
add esp, 0xc
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x7c], 2
jmp 0x46cf7e
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.0046d340
mov dword [ebp - 4], 4
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x84]
mov esi, 8
push eax
mov dword [ebp - 0x7c], esi
call fcn.0046de90
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0046ca00
add esp, 4
mov byte [ebp - 4], 0xb
and esi, 0xfffffff7
mov dword [ebp - 0x7c], esi
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46ccc1
mov eax, dword [ebp - 0x28]
inc edx
mov ecx, eax
cmp edx, 0x7fffffff
ja 0x46cf9c
add edx, edx
cmp edx, 0x1000
jb 0x46ccb7
lea esi, [edx + 0x23]
cmp esi, edx
jbe 0x46cf9c
mov edx, esi
test cl, 0x1f
jne 0x46cf9c
mov eax, dword [eax - 4]
cmp eax, ecx
jae 0x46cf9c
sub ecx, eax
cmp ecx, 4
jb 0x46cf9c
cmp ecx, 0x23
ja 0x46cf9c
push edx
push eax
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x14], 7
push eax
call fcn.0042f846
lea eax, [ebp - 0x40]
cmp ebx, eax
je 0x46ce50
cmp dword [ebp - 0x2c], 8
mov ecx, dword [ebx + 0x14]
cmovae eax, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
cmp eax, ecx
ja 0x46cd3d
mov dword [ebp - 0x78], ebx
mov edx, ebx
cmp ecx, 8
jb 0x46cd1c
mov edx, dword [ebx]
mov dword [ebp - 0x78], edx
lea esi, [eax + eax]
mov dword [ebx + 0x10], eax
push esi
push dword [ebp - 0x80]
push edx
call fcn.004dc330
mov eax, dword [ebp - 0x78]
add esp, 0xc
xor ecx, ecx
mov word [eax + esi], cx
jmp 0x46ce50
cmp eax, 0x7ffffffe
ja 0x46cfab
mov esi, eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x46cd5c
mov esi, 0x7ffffffe
jmp 0x46cd7a
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46cd72
mov esi, 0x7ffffffe
jmp 0x46cd7a
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
test eax, eax
jne 0x46cd85
xor edi, edi
jmp 0x46cdc3
cmp eax, 0x7fffffff
ja 0x46cfb0
add eax, eax
cmp eax, 0x1000
jb 0x46cdb8
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x46cfb5
push ecx
call fcn.004da6a7
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x46cdc3
push eax
call fcn.004da6a7
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x84]
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x10], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x80]
push edi
call fcn.004dbdb0
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov eax, dword [ebp - 0x88]
cmp eax, 8
jb 0x46ce4b
lea ecx, [eax + 1]
mov eax, dword [ebx]
cmp ecx, 0x7fffffff
ja 0x46cf9c
add ecx, ecx
cmp ecx, 0x1000
jb 0x46ce41
lea edx, [ecx + 0x23]
cmp edx, ecx
jbe 0x46cf9c
mov ecx, edx
test al, 0x1f
jne 0x46cf9c
mov edx, dword [eax - 4]
cmp edx, eax
jae 0x46cf9c
sub eax, edx
cmp eax, 4
jb 0x46cf9c
cmp eax, 0x23
ja 0x46cf9c
mov eax, edx
push ecx
push eax
call fcn.004dadb5
add esp, 8
mov dword [ebx], edi
mov edi, dword [ebp - 0x78]
push 0x18
lea eax, [ebp - 0x58]
mov dword [edi + 0x10], 0
push eax
push edi
mov dword [edi + 0x14], 0
call fcn.004dbdb0
add esp, 0xc
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x7c], 2
mov byte [ebp - 4], 7
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x46cf07
lea edx, [eax + 1]
mov eax, dword [ebp - 0x40]
mov ecx, eax
cmp edx, 0x7fffffff
ja 0x46cf9c
add edx, edx
cmp edx, 0x1000
jb 0x46cefd
lea esi, [edx + 0x23]
cmp esi, edx
jbe 0x46cf9c
mov edx, esi
test cl, 0x1f
jne 0x46cf9c
mov eax, dword [eax - 4]
cmp eax, ecx
jae 0x46cf9c
sub ecx, eax
cmp ecx, 4
jb 0x46cf9c
cmp ecx, 0x23
ja 0x46cf9c
push edx
push eax
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x5c]
cmp eax, 8
jb 0x46cf6a
mov ecx, dword [ebp - 0x70]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x7fffffff
ja 0x46cf9c
add edx, edx
cmp edx, 0x1000
jb 0x46cf60
lea esi, [edx + 0x23]
cmp esi, edx
jbe 0x46cf9c
mov edx, esi
test al, 0x1f
jne 0x46cf9c
mov ecx, dword [ecx - 4]
cmp ecx, eax
jae 0x46cf9c
sub eax, ecx
cmp eax, 4
jb 0x46cf9c
cmp eax, 0x23
ja 0x46cf9c
push edx
push ecx
call fcn.004dadb5
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da696
mov esp, ebp
pop ebp
ret
call fcn.004e0754
call fcn.0040547e
call fcn.0040547e
call fcn.0040537b
call fcn.0040547e
call fcn.0040547e
int3