Function at 0x46cc20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5141b2
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.0046d470
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], 1
jb 0x46cc8c
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cc9f
mov byte [ebp - 0x71], al
cmp dword [ebx + 0x10], eax
jne 0x46cca3
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 0x46ccf2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46cce8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d10c
push edx
push ecx
call fcn.004dab55
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 0x46cdce
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 0x46cd23
mov ebx, dword [ebx]
cmp eax, 8
jae 0x46cd38
push 0x10
push ebx
push edi
call fcn.004dc260
mov esi, 7
jmp 0x46cdaf
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 0x46cd59
or ecx, 0xffffffff
jmp 0x46cd61
cmp ecx, 0x1000
jb 0x46cd88
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004dab63
add esp, 4
test eax, eax
je 0x46d11b
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x46cd9b
test ecx, ecx
je 0x46cd99
push ecx
call fcn.004dab63
add esp, 4
mov ecx, eax
jmp 0x46cd9b
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.004dc260
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 0x46d0ee
lea eax, [ebp - 0x70]
mov ecx, ebx
push eax
call fcn.0046d400
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.0046cc20
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 0x46ce8b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46ce81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d111
push edx
push ecx
call fcn.004dab55
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.0043047c
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x40]
cmp esi, eax
je 0x46d001
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 0x46cf04
mov ebx, esi
cmp ecx, 8
jb 0x46cee8
mov ebx, dword [esi]
mov dword [esi + 0x10], eax
lea esi, [eax + eax]
push esi
push edx
push ebx
call fcn.004dc7e0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x46d001
cmp eax, 0x7ffffffe
ja 0x46d116
mov ebx, eax
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x46cf23
mov ebx, 0x7ffffffe
jmp 0x46cf41
mov edx, ecx
mov eax, 0x7ffffffe
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x46cf39
mov ebx, 0x7ffffffe
jmp 0x46cf41
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 0x46cf56
or ecx, 0xffffffff
jmp 0x46cf5e
cmp ecx, 0x1000
jb 0x46cf85
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.004dab63
add esp, 4
test eax, eax
je 0x46d11b
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x46cf98
test ecx, ecx
je 0x46cf96
push ecx
call fcn.004dab63
add esp, 4
mov ebx, eax
jmp 0x46cf98
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.004dc260
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 0x46cfff
mov eax, dword [esi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x46cff5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d11b
mov eax, edx
push ecx
push eax
call fcn.004dab55
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.004dc260
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 0x46d08d
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d083
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d11b
push edx
push ecx
call fcn.004dab55
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 0x46d0da
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d0d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d11b
push edx
push ecx
call fcn.004dab55
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.004dab44
mov esp, ebp
pop ebp
ret
call fcn.004e0bf6
call fcn.004e0bf6
call fcn.00405394
call fcn.004e0bf6
int3