Function at 0x46cc10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513ef2
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x57c080]
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 ebx, edx
mov edi, ecx
mov dword [ebp - 0x84], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0
call fcn.0046d460
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x46cc7c
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cc8f
mov byte [ebp - 0x71], al
cmp dword [ebx + 0x10], eax
jne 0x46cc93
mov byte [ebp - 0x71], 1
mov dword [ebp - 4], 0
mov eax, 1
mov dword [ebp - 0x78], eax
and eax, 0xfffffffe
mov dword [ebp - 0x78], eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46cce2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ccd8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d0fc
push edx
push ecx
call fcn.004da8c5
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 0x46cdbe
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x7c], eax
jb 0x46cd13
mov ebx, dword [ebx]
cmp eax, 8
jae 0x46cd28
push 0x10
push ebx
push edi
call fcn.004dbfd0
mov esi, 7
jmp 0x46cd9f
mov esi, eax
mov eax, 0x7ffffffe
or esi, 7
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46cd49
or ecx, 0xffffffff
jmp 0x46cd51
cmp ecx, 0x1000
jb 0x46cd78
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004da8d3
add esp, 4
test eax, eax
je 0x46d10b
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x46cd8b
test ecx, ecx
je 0x46cd89
push ecx
call fcn.004da8d3
add esp, 4
mov ecx, eax
jmp 0x46cd8b
xor ecx, ecx
mov eax, dword [ebp - 0x7c]
mov dword [edi], ecx
lea eax, [eax*2 + 2]
push eax
push ebx
push ecx
call fcn.004dbfd0
add esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x7c]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
mov dword [ebp - 0x78], 2
jmp 0x46d0de
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0046d3f0
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 esi, 8
mov ecx, ebx
push eax
mov dword [ebp - 0x78], esi
call fcn.0046de10
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0046cc10
add esp, 4
mov byte [ebp - 4], 0xb
and esi, 0xfffffff7
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x46ce7b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ce71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d101
push edx
push ecx
call fcn.004da8c5
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.00430479
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x46cff1
cmp dword [ebp - 0x2c], 8
mov edx, eax
mov eax, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x40]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], ecx
cmp eax, ecx
ja 0x46cef4
mov ebx, esi
cmp ecx, 8
jb 0x46ced8
mov ebx, dword [esi]
mov dword [esi + 0x10], eax
lea esi, [eax + eax]
push esi
push edx
push ebx
call fcn.004dc550
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x46cff1
cmp eax, 0x7ffffffe
ja 0x46d106
mov ebx, eax
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46cf13
mov ebx, 0x7ffffffe
jmp 0x46cf31
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46cf29
mov ebx, 0x7ffffffe
jmp 0x46cf31
lea eax, [edx + ecx]
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
mov dword [ebp - 0x80], ebx
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46cf46
or ecx, 0xffffffff
jmp 0x46cf4e
cmp ecx, 0x1000
jb 0x46cf75
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004da8d3
add esp, 4
test eax, eax
je 0x46d10b
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46cf88
test ecx, ecx
je 0x46cf86
push ecx
call fcn.004da8d3
add esp, 4
mov ebx, eax
jmp 0x46cf88
xor ebx, ebx
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x80]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea esi, [ecx + ecx]
push esi
push dword [ebp - 0x8c]
push ebx
call fcn.004dbfd0
mov ecx, dword [ebp - 0x84]
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov esi, dword [ebp - 0x7c]
cmp ecx, 8
jb 0x46cfef
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46cfe5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d10b
mov eax, edx
push ecx
push eax
call fcn.004da8c5
add esp, 8
mov dword [esi], ebx
push 0x18
lea eax, [ebp - 0x58]
mov dword [edi + 0x10], 0
push eax
push edi
mov dword [edi + 0x14], 0
call fcn.004dbfd0
xor eax, eax
mov dword [ebp - 0x48], 0
add esp, 0xc
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x78], 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 edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x46d07d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d073
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d10b
push edx
push ecx
call fcn.004da8c5
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 edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x46d0ca
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d0c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d10b
push edx
push ecx
call fcn.004da8c5
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.004da8b4
mov esp, ebp
pop ebp
ret
call fcn.004e0966
call fcn.004e0966
call fcn.00405394
call fcn.004e0966
int3