Function at 0x100c0600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10346fb2
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x1040706c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x74], ebx
mov esi, dword [ebp + 8]
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
mov dword [ebp - 0x88], esi
xor eax, eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], esp
push eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push 0x103d26c0
mov word [ecx], ax
call fcn.10002560
sub esp, 0x18
mov dword [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x80], esp
xor eax, eax
push 6
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.sfpakg
mov word [ecx], ax
call fcn.10002560
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov edx, eax
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 8
jb 0x100c06bb
mov edx, dword [edx]
sub esp, 0x18
mov ecx, edx
mov edi, esp
mov dword [ebp - 0x84], esp
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x70], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c06e1
sub ecx, dword [ebp - 0x70]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10002560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax]
mov edx, eax
mov byte [ebp - 4], 5
cmp dword [edx + 0x14], 8
jb 0x100c0716
mov edx, dword [edx]
sub esp, 0x18
mov ecx, edx
mov edi, esp
xor eax, eax
lea ebx, [ecx + 2]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c0733
sub ecx, ebx
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10002560
mov ebx, dword [ebp - 0x74]
push esi
mov byte [ebp - 4], 7
lea eax, [ebx + 4]
mov ecx, eax
mov dword [ebp - 0x70], eax
call fcn.100c1ec0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x78], 1
call fcn.100028d0
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.100028d0
cmp dword [esi + 0x10], 0
jne 0x100c095c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 8
push eax
call fcn.1019738f
mov ecx, dword [ebp - 0x1c]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x20]
add esp, 4
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x100c07ce
add edi, 0x18
cmp esi, edi
je 0x100c07e7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100c07dc
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, esi
push eax
call fcn.10002560
push 0xc
push str.MgrDownloads
mov ecx, esi
call fcn.100022e0
push 1
push 0x103d2860
mov ecx, esi
call fcn.100022e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100c080d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100c0856
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 9
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100c0829
mov eax, dword [esi]
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.10196d15
add esp, 8
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x100c0852
mov edx, dword [ecx]
lea eax, [ebp - 0x6c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov byte [ebp - 4], 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x84], esp
push esi
call fcn.10002050
sub esp, 0x18
mov byte [ebp - 4], 0xb
mov ecx, esp
mov dword [ebp - 0x80], esp
xor eax, eax
push 6
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.sfpakg
mov word [ecx], ax
call fcn.10002560
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x5c]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 4]
mov edi, eax
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x14], 8
jb 0x100c08af
mov edi, dword [edi]
sub esp, 0x18
mov edx, edi
mov ecx, esp
mov dword [ebp - 0x7c], esp
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
lea eax, [edx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100c08d2
sub edx, dword [ebp - 0x74]
sar edx, 1
push edx
push edi
call fcn.10002560
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x44]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax]
mov edi, eax
mov byte [ebp - 4], 0xf
cmp dword [edi + 0x14], 8
jb 0x100c0905
mov edi, dword [edi]
sub esp, 0x18
mov edx, edi
mov ecx, esp
xor eax, eax
lea ebx, [edx + 2]
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100c0922
sub edx, ebx
sar edx, 1
push edx
push edi
call fcn.10002560
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 0x11
call fcn.100c1fa0
lea ecx, [ebp - 0x44]
call fcn.100028d0
lea ecx, [ebp - 0x5c]
call fcn.100028d0
lea ecx, [ebp - 0x20]
call fcn.100029e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100f99ca
mov esp, ebp
pop ebp
ret 4