Function at 0x46c9b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513522
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x57c074]
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 edi, edx
mov ebx, ecx
mov dword [ebp - 0x84], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], 0
call fcn.0046d200
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x46ca1c
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ca2f
mov byte [ebp - 0x71], al
cmp dword [edi + 0x10], eax
jne 0x46ca33
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 0x46ca82
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ca78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ce98
push edx
push ecx
call fcn.004d9b41
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 0x46cb5a
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x7c], eax
jb 0x46cab3
mov edi, dword [edi]
cmp eax, 8
jae 0x46cac4
mov esi, 7
mov eax, ebx
lea ecx, [esi + 9]
jmp 0x46cb33
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 0x46cae5
or ecx, 0xffffffff
jmp 0x46caed
cmp ecx, 0x1000
jb 0x46cb16
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004d9b4f
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x46ce9d
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x46cb27
test ecx, ecx
je 0x46cb25
push ecx
call fcn.004d9b4f
add esp, 4
jmp 0x46cb27
xor eax, eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebx], eax
lea ecx, [ecx*2 + 2]
mov dword [ebp - 4], 0
push ecx
push edi
push eax
call fcn.004db240
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], esi
mov dword [ebp - 0x78], 2
jmp 0x46ce7a
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0046d190
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, edi
push eax
mov dword [ebp - 0x78], esi
call fcn.0046dbd0
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0046c9b0
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 0x46cc17
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cc0d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46cea2
push edx
push ecx
call fcn.004d9b41
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.004301f4
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x46cd8d
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 0x46cc90
mov edi, esi
cmp ecx, 8
jb 0x46cc74
mov edi, dword [esi]
mov dword [esi + 0x10], eax
lea esi, [eax + eax]
push esi
push edx
push edi
call fcn.004db7c0
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
jmp 0x46cd8d
cmp eax, 0x7ffffffe
ja 0x46cea7
mov edi, eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x46ccaf
mov edi, 0x7ffffffe
jmp 0x46cccd
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46ccc5
mov edi, 0x7ffffffe
jmp 0x46cccd
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x80], edi
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x46cce2
or ecx, 0xffffffff
jmp 0x46ccea
cmp ecx, 0x1000
jb 0x46cd11
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004d9b4f
add esp, 4
test eax, eax
je 0x46ceac
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x46cd24
test ecx, ecx
je 0x46cd22
push ecx
call fcn.004d9b4f
add esp, 4
mov edi, eax
jmp 0x46cd24
xor edi, edi
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 edi
call fcn.004db240
mov ecx, dword [ebp - 0x84]
xor eax, eax
add esp, 0xc
mov word [esi + edi], ax
mov esi, dword [ebp - 0x7c]
cmp ecx, 8
jb 0x46cd8b
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46cd81
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ce98
mov eax, edx
push ecx
push eax
call fcn.004d9b41
add esp, 8
mov dword [esi], edi
push 0x18
lea eax, [ebp - 0x58]
mov dword [ebx + 0x10], 0
push eax
push ebx
mov dword [ebx + 0x14], 0
call fcn.004db240
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 0x46ce19
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ce0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ceb1
push edx
push ecx
call fcn.004d9b41
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 0x46ce66
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ce5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46ceb6
push edx
push ecx
call fcn.004d9b41
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, ebx
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.004d9b30
mov esp, ebp
pop ebp
ret
call fcn.004dfbf5
call fcn.004dfbf5
call fcn.004dfbf5
call fcn.004053e9
call fcn.004dfbf5
call fcn.004dfbf5
call fcn.004dfbf5
int3