Function at 0x10046fb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056446
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
mov eax, dword [0x1006dd60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.1000d230
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100468b0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.1000d230
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.10046660
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.1000d230
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.100466f0
add esp, 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], 0xfa
mov ecx, dword [ebp + 8]
call fcn.1000f890
cmp eax, 0xfa
jb 0x10047198
lea ecx, [ebp - 0x18]
call fcn.1000f890
mov esi, eax
lea ecx, [ebp - 0x14]
call fcn.1000f890
add esi, eax
mov eax, 0xfa
sub eax, esi
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x100470f0
call fcn.1004dc20
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp + 8]
call fcn.1000d230
push eax
push str.File_name_is_too_long:__1
lea ecx, [ebp - 0x30]
push ecx
call fcn.100460d0
add esp, 0xc
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x54]
call fcn.1000d230
push eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.1000fd80
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.10046b30
add esp, 8
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x24]
call fcn.1000f560
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.1000fd80
jmp 0x10047132
lea ecx, [ebp - 0x24]
call fcn.1000f890
cmp eax, dword [ebp - 0x28]
jl 0x10047132
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x24]
call fcn.10011880
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x24]
call fcn.1000f560
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.1000fd80
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.10005110
add esp, 0xc
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 6
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10005110
add esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x74]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000f560
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.1000fd80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.1000fd80
mov ecx, dword [ebp + 8]
call fcn.1000d230
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100471d7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.1000fd80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.1000fd80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000fd80
jmp 0x100472e2
push 0x5f
lea ecx, [ebp - 0x24]
call fcn.100149d0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x10047275
lea ecx, [ebp - 0x24]
call fcn.1000f890
sub eax, dword [ebp - 0x20]
sub eax, 1
push eax
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x24]
call fcn.10014aa0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.1000d230
push eax
call fcn.100309f4
add esp, 4
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10046b30
add esp, 8
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x78]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.10014b30
add esp, 8
mov byte [ebp - 0x41], al
lea ecx, [ebp - 0x48]
call fcn.1000fd80
movzx eax, byte [ebp - 0x41]
test eax, eax
je 0x10047269
lea ecx, [ebp - 0x24]
call fcn.1000f890
sub eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
call fcn.10004c60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.1000fd80
mov dword [ebp - 0x1c], 2
mov ecx, dword [ebp + 8]
call fcn.1000d230
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100472bb
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push str._s_s__d_s
mov eax, dword [ebp + 8]
push eax
call fcn.1000f370
add esp, 0x18
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
jmp 0x1004727c
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.1000fd80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.1000fd80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.1000fd80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret