Function at 0x1004a8c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10108f38
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0xa0], ebx
xor eax, eax
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x9c]
mov dword [ebp - 0xa4], reloc.WS2_32.dll_accept
call fcn.1001c2f0
mov dword [ebp - 0xac], eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.1001c350
push str.360se6
push eax
lea ecx, [ebp - 0x48]
push ecx
mov byte [ebp - 4], 2
call fcn.100102a0
add esp, 0xc
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 3
cmp dword [0x1013ba54], ebx
jne 0x1004a986
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x1004a97b
mov esi, eax
call fcn.10011610
jmp 0x1004a97d
xor eax, eax
mov byte [ebp - 4], 3
mov dword [0x1013ba54], eax
mov ecx, dword [ebp - 0xa8]
push ebx
lea edx, [ebp - 0xa4]
push edx
mov edx, dword [ebp - 0xac]
lea esi, [ebp - 0x2c]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.10009ca0
cmp dword [ebp - 0x18], 8
jb 0x1004a9c1
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x34], 8
mov esi, 7
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
jb 0x1004a9e4
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
cmp dword [ebp - 0x6c], 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
jb 0x1004aa02
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
jb 0x1004aa29
mov eax, dword [ebp - 0x9c]
push eax
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x54], ebx
jne 0x1004ab93
lea esi, [ebp - 0x9c]
mov dword [ebp - 0xa8], reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001c2f0
mov dword [ebp - 0xac], eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.1001c350
push str.360se6
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 7
call fcn.100102a0
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 8
cmp dword [0x1013ba54], ebx
jne 0x1004aab0
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 9
cmp eax, ebx
je 0x1004aaa5
mov esi, eax
call fcn.10011610
jmp 0x1004aaa7
xor eax, eax
mov byte [ebp - 4], 8
mov dword [0x1013ba54], eax
mov ecx, dword [ebp - 0xa4]
push ebx
lea edx, [ebp - 0xa8]
push edx
mov edx, dword [ebp - 0xac]
lea esi, [ebp - 0x80]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0xa
call fcn.10009ca0
mov esi, 8
cmp dword [ebp - 0x6c], esi
jb 0x1004aaef
mov eax, dword [ebp - 0x80]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], 7
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
cmp dword [ebp - 0x18], esi
jb 0x1004ab10
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x1004ab31
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x88], esi
jb 0x1004ab5b
mov eax, dword [ebp - 0x9c]
push eax
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x54], ebx
jne 0x1004ab8e
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov word [edi], cx
push 0x101134e8
mov ecx, edi
call fcn.1000abb0
cmp dword [ebp - 0x50], esi
jb 0x1004ac8c
mov edx, dword [ebp - 0x64]
push edx
jmp 0x1004ac84
mov esi, 7
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x1004ab9f
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x1004abdd
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x64]
xor eax, eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.1000b050
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xa0], 2
jmp 0x1004ac0b
push ebx
xor edx, edx
push 0x101134e8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.1000abb0
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 0xa0], 4
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], cx
push eax
mov ecx, edi
call fcn.10009ca0
mov eax, dword [ebp - 0xa0]
or eax, 1
test al, 4
je 0x1004ac58
and eax, 0xfffffffb
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0xa0], eax
jb 0x1004ac4c
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
mov eax, dword [ebp - 0xa0]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
test al, 2
je 0x1004ac7a
cmp dword [ebp - 0x18], 8
jb 0x1004ac6e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], 8
jb 0x1004ac8c
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10065453
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret