Function at 0x46cc30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514192
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.0046d480
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x46cc9c
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ccaf
mov byte [ebp - 0x71], al
cmp dword [ebx + 0x10], eax
jne 0x46ccb3
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 0x46cd02
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ccf8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d11c
push edx
push ecx
call fcn.004dab35
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 0x46cdde
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 0x46cd33
mov ebx, dword [ebx]
cmp eax, 8
jae 0x46cd48
push 0x10
push ebx
push edi
call fcn.004dc240
mov esi, 7
jmp 0x46cdbf
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 0x46cd69
or ecx, 0xffffffff
jmp 0x46cd71
cmp ecx, 0x1000
jb 0x46cd98
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004dab43
add esp, 4
test eax, eax
je 0x46d12b
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x46cdab
test ecx, ecx
je 0x46cda9
push ecx
call fcn.004dab43
add esp, 4
mov ecx, eax
jmp 0x46cdab
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.004dc240
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 0x46d0fe
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0046d410
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.0046de30
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0046cc30
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 0x46ce9b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ce91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d121
push edx
push ecx
call fcn.004dab35
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.00430487
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x46d011
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 0x46cf14
mov ebx, esi
cmp ecx, 8
jb 0x46cef8
mov ebx, dword [esi]
mov dword [esi + 0x10], eax
lea esi, [eax + eax]
push esi
push edx
push ebx
call fcn.004dc7c0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x46d011
cmp eax, 0x7ffffffe
ja 0x46d126
mov ebx, eax
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46cf33
mov ebx, 0x7ffffffe
jmp 0x46cf51
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46cf49
mov ebx, 0x7ffffffe
jmp 0x46cf51
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 0x46cf66
or ecx, 0xffffffff
jmp 0x46cf6e
cmp ecx, 0x1000
jb 0x46cf95
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004dab43
add esp, 4
test eax, eax
je 0x46d12b
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46cfa8
test ecx, ecx
je 0x46cfa6
push ecx
call fcn.004dab43
add esp, 4
mov ebx, eax
jmp 0x46cfa8
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.004dc240
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 0x46d00f
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46d005
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d12b
mov eax, edx
push ecx
push eax
call fcn.004dab35
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.004dc240
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 0x46d09d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d093
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d12b
push edx
push ecx
call fcn.004dab35
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 0x46d0ea
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d0e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d12b
push edx
push ecx
call fcn.004dab35
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.004dab24
mov esp, ebp
pop ebp
ret
call fcn.004e0bd6
call fcn.004e0bd6
call fcn.00405394
call fcn.004e0bd6
int3