Function at 0x46c070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61a0a0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6a8c7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
test esi, esi
je 0x46c3a6
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46c3a6
mov ecx, esi
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c0d0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.0044e430
push 0
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0044d900
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46c13e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c134
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c3c8
push edx
push ecx
call fcn.005d588d
add esp, 8
mov ecx, edi
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 7
lea edx, [ecx + 2]
mov word [ebp - 0x78], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c165
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.0044e430
push 0
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0044d900
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x46c1d0
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c1c6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c3cd
push edx
push ecx
call fcn.005d588d
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, 0x6b4020
mov dword [ebp - 0x64], 7
cmovae ecx, dword [ebp - 0x28]
mov word [ebp - 0x78], ax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x46c1f6
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x48a900
cmovae ecx, dword [ebp - 0x40]
mov dword [ebp - 0x5c], 0x48a9a0
mov dword [ebp - 0x58], 0x48aa20
mov dword [ebp - 0x54], 0x48aaa0
mov dword [ebp - 0x50], 0x48ab30
mov dword [ebp - 0x4c], 0x48abe0
mov dword [ebp - 0x48], 0x48ac20
mov dword [ebp - 0x44], 0
call fcn.0048b840
mov esi, eax
test esi, esi
jne 0x46c2de
mov edx, dword [ebp - 0x14]
lea edi, [eax + 2]
cmp edx, 0x10
jb 0x46c28f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c285
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c3d2
push edx
push ecx
call fcn.005d588d
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x46c3ab
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c2cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c3d7
push edx
push ecx
call fcn.005d588d
add esp, 8
jmp 0x46c3ab
sub esp, 8
mov ecx, esi
call fcn.0046bfa0
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x14]
mov edi, eax
cmp edx, 0x10
jb 0x46c325
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c31b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c3dc
push edx
push ecx
call fcn.005d588d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x46c36e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46c364
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c3e1
push edx
push ecx
call fcn.005d588d
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp dword [esi + 0xe0], 0
je 0x46c390
mov ecx, esi
call fcn.0048c8a0
push dword [esi + 0x30]
mov eax, dword [esi + 0x14]
push dword [esi + 0x1c]
call eax
push esi
call fcn.005f56da
add esp, 0xc
jmp 0x46c3ab
mov edi, 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005d584c
mov esp, ebp
pop ebp
ret
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
call fcn.005f564e
int3