Function at 0x1001bfab
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10134ed0
call fcn.1007db34
sub esp, 0x838
push ebx
push esi
mov dword [ebp - 0x2c], ecx
push edi
push 4
lea ecx, [ebp - 0x34]
call fcn.1005eb25
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov edi, dword [esi + 0x1c]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x24]
lea eax, [ebp - 0x10]
mov ebx, dword [esi + 0x20]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
call fcn.1005e85a
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x1001c16d
mov ecx, dword [esi + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0xc]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
push esi
mov dword [esi + 0x24], ecx
call eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x20], ebx
mov dword [esi + 0xc], eax
mov ebx, dword [ebp + 0xc]
mov edx, dword [esi + 0x14]
test ebx, ebx
mov dword [ebp + 0xc], edx
je 0x1001c4f6
cmp word [ebx], 0
je 0x1001c4f6
and word [ebp - 0x23c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x23a]
rep stosd dword es:[edi], eax
cmp edx, 0xffffffff
stosw word es:[edi], ax
jne 0x1001c1f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001c1f0
cmp word [ebx], 0
je 0x1001c1f0
and word [ebp - 0x64c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x64a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x64c]
push 0x104
push eax
push ebx
call fcn.100745f7
add esp, 0xc
cmp word [ebp - 0x64c], 0
je 0x1001c1f0
push 0x208
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.1007e1e0
push ebx
call fcn.1007e283
push eax
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.1007e246
lea eax, [ebp - 0x23c]
push 0x101735a0
push eax
call fcn.1007e6a6
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
xor ebx, ebx
push eax
push edi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.1005e85a
mov eax, dword [ebp + 0xc]
add esp, 0x34
cmp eax, ebx
je 0x1001c1ae
mov ecx, dword [ebp + 8]
push dword [ebp + 0x10]
mov ebx, dword [esi + 0xc]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
lea ecx, [ebp - 0x23c]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x24], eax
xor ebx, ebx
jmp 0x1001c1e5
mov edi, dword [esi + 0x18]
test edi, edi
je 0x1001c038
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push ebx
call edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [esi + 0xa], 0x80
mov dword [esi + 0x10], eax
je 0x1001c03b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
jmp 0x1001c03b
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x1001c1e5
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
lea eax, [ebp - 0x23c]
push eax
call edi
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [esi + 0xa], 0x80
mov dword [esi + 0x10], eax
je 0x1001c1e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x14]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x1001c212
or esi, 0xffffffff
jmp 0x1001c4f8
push ebx
call fcn.1007e283
inc eax
push eax
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.1007e246
add esp, 0x10
xor ebx, ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x1001c221
mov esi, dword [ebp + 0xc]
jmp 0x1001c4f8
mov ecx, dword [eax]
test cl, 0x10
jne 0x1001c219
test ch, 1
jne 0x1001c219
cmp dword [eax + 0x1c], ebx
ja 0x1001c219
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x442]
cmp word [ebp - 0x23c], bx
mov word [ebp - 0x444], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x1001c2b6
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x842]
mov word [ebp - 0x844], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x844]
push 0x1ff
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.100745f7
lea eax, [ebp - 0x444]
push 0x103
push eax
lea eax, [ebp - 0x844]
push eax
call fcn.10074b94
add esp, 0x18
test eax, eax
jne 0x1001c2b6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1005eb48
mov eax, dword [ebp + 0xc]
jmp 0x1001c506
lea eax, [ebp - 0x444]
push eax
call fcn.1007e283
cmp eax, ebx
pop ecx
mov dword [ebp + 8], eax
je 0x1001c219
mov eax, dword [ebp + 0x10]
lea edi, [eax + 0x2c]
push edi
call fcn.1007e283
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
add ecx, eax
cmp ecx, 0x104
jae 0x1001c219
cmp word [ebp + eax*2 - 0x446], 0x5c
je 0x1001c30c
lea eax, [ebp - 0x444]
push 0x10160bc0
push eax
call fcn.1007e6a6
pop ecx
pop ecx
lea eax, [ebp - 0x444]
push edi
push eax
call fcn.1007e6a6
pop ecx
mov dword [ebp - 0x10], ebx
pop ecx
push 0x1019f4bc
lea ecx, [ebp - 0x1c]
call fcn.10094520
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x2c]
push 1
lea ecx, [ebp - 0x28]
lea eax, [ebx + 4]
mov byte [ebp - 4], 1
push eax
call fcn.100a1760
xor edi, edi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x1c], edi
mov dword [ebp + 8], edi
jle 0x1001c3ab
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax + 0x20]
lea ecx, [ebp - 0x444]
push ecx
push eax
call fcn.1007eb9e
pop ecx
test eax, eax
pop ecx
je 0x1001c382
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add dword [ebp - 0x14], 0x4c
cmp eax, dword [ebx + 0x1c]
jl 0x1001c354
jmp 0x1001c3ab
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
imul edi, edi, 0x4c
lea ecx, [ebp - 0x1c]
lea eax, [eax + edi + 0x24]
push eax
call fcn.10094e50
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + edi + 0x14]
xor edi, edi
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100a17c0
cmp dword [ebp - 0x10], edi
je 0x1001c426
mov edx, dword [ebp - 0x1c]
cmp dword [edx - 8], edi
je 0x1001c4e5
mov esi, dword [esi + 0x18]
mov dword [ebp - 0x694], edi
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x690]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x694]
push eax
push edx
call esi
cmp eax, 0xffffffff
je 0x1001c418
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x694]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x674]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x678]
mov dword [eax + 0x1c], ecx
jmp 0x1001c4e5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x20], eax
jmp 0x1001c4e5
push 0xfffffffffffffffb
lea ecx, [ebp - 0x24]
call fcn.1005eb25
push edi
push 0x60
push 1
push 7
push 0x80
lea eax, [ebp - 0x444]
push 0x120089
push eax
mov byte [ebp - 4], 3
call fcn.10072edf
mov ebx, eax
add esp, 0x1c
cmp ebx, 0xffffffff
je 0x1001c4d9
push edi
push edi
push ebx
call fcn.100600ff
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x1001c4d2
lea ecx, [ebp + 8]
call fcn.100a6a40
push esi
push edi
lea eax, [ebp + 8]
push edi
push eax
push ebx
mov byte [ebp - 4], 4
call fcn.10021efc
add esp, 0x14
test eax, eax
jne 0x1001c4c6
cmp esi, 3
jne 0x1001c4aa
lea ecx, [ebp + 8]
call fcn.100a7340
mov ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x20], edx
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x1c], eax
jmp 0x1001c4c6
cmp esi, 4
jne 0x1001c4c6
lea ecx, [ebp + 8]
call fcn.100a7340
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x24]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x1c], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.100a6ba0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.1005eb48
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.10094cc0
jmp 0x1001c219
mov esi, edx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1005eb48
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc