Function at 0x1003cc90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010aa7d
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xd8], ebx
mov eax, 7
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ebx
xor edx, edx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
push 1
lea eax, [ebp - 0x80]
push eax
sub esp, 0x1c
mov byte [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0xe0], esp
call fcn.1004cdf0
sub esp, 0x1c
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0xdc], esp
call fcn.1001c350
mov ecx, reloc.WS2_32.dll_accept
mov byte [ebp - 4], 1
call fcn.100149a0
add esp, 0x40
cmp dword [ebp - 0x70], ebx
je 0x1003ceab
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xe4], reloc.WS2_32.dll_accept
call fcn.1001c2f0
mov edi, eax
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.1001c350
push 0x1012329c
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov byte [ebp - 4], 4
call fcn.100102a0
add esp, 0xc
lea edx, [ebp - 0x80]
push edx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 5
call fcn.100103f0
add esp, 0xc
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 6
cmp dword [0x1013ba54], ebx
jne 0x1003cdcc
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x1003cdc1
mov esi, eax
call fcn.10011610
jmp 0x1003cdc3
xor eax, eax
mov byte [ebp - 4], 6
mov dword [0x1013ba54], eax
push 1
lea ecx, [ebp - 0xe4]
push ecx
mov ecx, dword [ebp - 0xdc]
mov edx, edi
lea esi, [ebp - 0x64]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.10009ca0
mov edi, 8
cmp dword [ebp - 0x50], edi
jb 0x1003ce08
mov edx, dword [ebp - 0x64]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x34], edi
jb 0x1003ce2a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xa4], edi
jb 0x1003ce4d
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x88], edi
jb 0x1003ce79
mov edx, dword [ebp - 0x9c]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0xc0], edi
jb 0x1003ceb0
mov ecx, dword [ebp - 0xd4]
push ecx
call fcn.10065453
add esp, 4
jmp 0x1003ceb0
mov edi, 8
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
jne 0x1003d07f
push 1
lea edx, [ebp - 0x80]
push edx
sub esp, 0x1c
mov esi, esp
mov dword [ebp - 0xe0], esp
call fcn.1004cdf0
sub esp, 0x1c
mov byte [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0xdc], esp
call fcn.1001c350
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 1
call fcn.100149a0
add esp, 0x40
cmp dword [ebp - 0x70], ebx
je 0x1003d074
lea esi, [ebp - 0xd4]
mov dword [ebp - 0xdc], reloc.OLEAUT32.dll_SysReAllocString
call fcn.1001c2f0
mov dword [ebp - 0xe4], eax
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.1001c350
push 0x1012329c
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0xb
call fcn.100102a0
add esp, 0xc
lea ecx, [ebp - 0x80]
push ecx
push eax
lea edx, [ebp - 0xb8]
push edx
mov byte [ebp - 4], 0xc
call fcn.100103f0
add esp, 0xc
mov dword [ebp - 0xe0], eax
mov byte [ebp - 4], 0xd
cmp dword [0x1013ba54], ebx
jne 0x1003cf95
push 0x138
call fcn.100656b5
add esp, 4
mov dword [ebp - 0xec], eax
mov byte [ebp - 4], 0xe
cmp eax, ebx
je 0x1003cf8a
mov esi, eax
call fcn.10011610
jmp 0x1003cf8c
xor eax, eax
mov byte [ebp - 4], 0xd
mov dword [0x1013ba54], eax
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xe0]
push 1
lea eax, [ebp - 0xdc]
push eax
lea esi, [ebp - 0x9c]
call fcn.10011fc0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xf
call fcn.10009ca0
cmp dword [ebp - 0x88], edi
jb 0x1003cfd9
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov esi, 7
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
cmp dword [ebp - 0xa4], edi
jb 0x1003d00a
mov eax, dword [ebp - 0xb8]
push eax
call fcn.10065453
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
cmp dword [ebp - 0x50], edi
jb 0x1003d030
mov edx, dword [ebp - 0x64]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x34], edi
jb 0x1003d04d
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0xc0], edi
jb 0x1003d074
mov eax, dword [ebp - 0xd4]
push eax
call fcn.10065453
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1003d171
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x1003d090
push str.invalid_string_position
call fcn.10080f9c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x1003d09b
lea eax, [ebp - 0x2c]
movzx eax, word [eax + ecx*2]
mov ecx, 0x5c
cmp cx, ax
je 0x1003d0b3
mov edx, 0x2f
cmp dx, ax
jne 0x1003d0bf
push eax
lea esi, [ebp - 0x2c]
call fcn.1000bd60
add esp, 4
lea edi, [ebp - 0x9c]
call fcn.1003c880
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x8c], ebx
je 0x1003d0f3
push 1
push 0x1012329c
lea ecx, [ebp - 0x2c]
call fcn.10009ff0
push 0xffffffffffffffff
push ebx
mov eax, edi
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000a320
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x88], esi
jb 0x1003d113
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.10065453
add esp, 4
cmp dword [ebp - 0x1c], ebx
je 0x1003d1c6
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x1003d127
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x1003d1c6
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov edi, 7
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
call fcn.1000b050
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x64]
mov dword [ebp - 0xd8], 2
jmp 0x1003d1fd
mov esi, dword [ebp - 0xe8]
push ebx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x101134e8
mov ecx, esi
mov word [esi], dx
call fcn.1000abb0
cmp dword [ebp - 0x6c], edi
jb 0x1003d1a4
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], edi
jb 0x1003d2a2
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x1003d29a
push ebx
xor edx, edx
push 0x101134e8
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.1000abb0
mov dword [ebp - 4], 0x12
lea eax, [ebp - 0x48]
mov dword [ebp - 0xd8], 4
mov edi, 7
mov esi, dword [ebp - 0xe8]
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], cx
push eax
mov ecx, esi
call fcn.10009ca0
mov eax, dword [ebp - 0xd8]
or eax, 1
test al, 4
je 0x1003d250
and eax, 0xfffffffb
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0xd8], eax
jb 0x1003d244
mov edx, dword [ebp - 0x48]
push edx
call fcn.10065453
mov eax, dword [ebp - 0xd8]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
test al, 2
je 0x1003d272
cmp dword [ebp - 0x50], 8
jb 0x1003d266
mov edx, dword [ebp - 0x64]
push edx
call fcn.10065453
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x6c], 8
jb 0x1003d284
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.10065453
add esp, 4
xor edx, edx
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
jb 0x1003d2a2
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret