Function at 0x46d650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646c80
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6e1c7c]
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 0x46d986
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d986
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 0x46d6b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.0044e410
push 0
lea edx, [ebp - 0x58]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0044d8e0
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46d71e
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d714
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9a8
push edx
push ecx
call fcn.0060223e
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 0x46d745
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x78]
call fcn.0044e410
push 0
lea edx, [ebp - 0x78]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.0044d8e0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x46d7b0
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46d7a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9ad
push edx
push ecx
call fcn.0060223e
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov edx, 0x6ef740
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 0x46d7d6
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x4b7180
cmovae ecx, dword [ebp - 0x40]
mov dword [ebp - 0x5c], 0x4b7220
mov dword [ebp - 0x58], 0x4b72a0
mov dword [ebp - 0x54], 0x4b7320
mov dword [ebp - 0x50], 0x4b73b0
mov dword [ebp - 0x4c], 0x4b7460
mov dword [ebp - 0x48], 0x4b74a0
mov dword [ebp - 0x44], 0
call fcn.004b80c0
mov esi, eax
test esi, esi
jne 0x46d8be
mov edx, dword [ebp - 0x14]
lea edi, [eax + 2]
cmp edx, 0x10
jb 0x46d86f
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d865
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9b2
push edx
push ecx
call fcn.0060223e
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 0x46d98b
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d8af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9b7
push edx
push ecx
call fcn.0060223e
add esp, 8
jmp 0x46d98b
sub esp, 8
mov ecx, esi
call fcn.0046d580
mov byte [ebp - 4], 2
add esp, 8
mov edx, dword [ebp - 0x14]
mov edi, eax
cmp edx, 0x10
jb 0x46d905
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d8fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9bc
push edx
push ecx
call fcn.0060223e
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 0x46d94e
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46d944
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46d9c1
push edx
push ecx
call fcn.0060223e
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp dword [esi + 0xe0], 0
je 0x46d970
mov ecx, esi
call fcn.004b9120
push dword [esi + 0x30]
mov eax, dword [esi + 0x14]
push dword [esi + 0x1c]
call eax
push esi
call fcn.0062208a
add esp, 0xc
jmp 0x46d98b
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.006021fd
mov esp, ebp
pop ebp
ret
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
call fcn.00621ffe
int3