Function at 0x1001b3da
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10134e50
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 - 0x1c], ecx
call fcn.1005e85a
mov eax, dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x1001b5b9
push dword [ebp + 0x20]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x14]
push dword [ebp + 0x1c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x20], eax
push dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
mov eax, dword [ebp - 0x1c]
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 0x1001b970
cmp word [ebx], 0
je 0x1001b970
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 0x1001b65c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001b654
cmp word [ebx], 0
je 0x1001b654
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 0x1001b654
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 ebx, dword [esi + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
xor edi, edi
push eax
push ebx
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x10], edi
call fcn.1005e85a
mov eax, dword [ebp + 0xc]
add esp, 0x34
cmp eax, edi
je 0x1001b606
push dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
mov edi, dword [esi + 0xc]
mov dword [esi + 0x1c], ecx
push dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x24], ecx
lea ecx, [ebp - 0x23c]
push dword [ebp + 0x18]
mov dword [esi + 0x20], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov dword [esi + 0xc], edi
jmp 0x1001b649
mov edi, dword [esi + 0x18]
test edi, edi
je 0x1001b473
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x20]
mov ebx, dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
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 0x1001b476
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
jmp 0x1001b476
mov edi, dword [esi + 0x18]
test edi, edi
je 0x1001b649
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x20]
lea eax, [ebp - 0x23c]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
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 0x1001b649
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 0x1001b674
or esi, 0xffffffff
jmp 0x1001b972
push ebx
call fcn.1007e283
inc eax
push eax
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.1007e246
add esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x1001b96b
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x1001b96b
mov eax, dword [ebx]
test al, 0x10
jne 0x1001b96b
test ah, 1
jne 0x1001b96b
cmp dword [ebx + 0x1c], 0
ja 0x1001b96b
and word [ebp - 0x444], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x442]
cmp word [ebp - 0x23c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x1001b72d
and word [ebp - 0x844], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x842]
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 0x1001b72d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.1005eb48
mov eax, dword [ebp + 0xc]
jmp 0x1001b980
lea eax, [ebp - 0x444]
push eax
call fcn.1007e283
test eax, eax
pop ecx
mov dword [ebp + 0x10], eax
je 0x1001b96b
lea edi, [ebx + 0x2c]
push edi
call fcn.1007e283
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0x10]
add ecx, eax
cmp ecx, 0x104
jae 0x1001b96b
cmp word [ebp + eax*2 - 0x446], 0x5c
je 0x1001b780
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
and dword [ebp - 0x10], 0
pop ecx
pop ecx
push 0x1019f4bc
lea ecx, [ebp - 0x18]
call fcn.10094520
mov edi, dword [ebp - 0x2c]
and dword [ebp - 0x14], 0
push 1
lea ecx, [ebp - 0x28]
lea eax, [edi + 4]
mov byte [ebp - 4], 1
push eax
call fcn.100a1760
xor eax, eax
mov byte [ebp - 4], 2
cmp dword [edi + 0x1c], eax
mov dword [ebp + 0x10], eax
jle 0x1001b822
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 8]
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 0x1001b7f8
inc dword [ebp + 0x10]
add dword [ebp + 8], 0x4c
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0x1c]
jl 0x1001b7ca
jmp 0x1001b822
mov ebx, dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
imul ebx, ebx, 0x4c
lea ecx, [ebp - 0x18]
lea eax, [ebx + eax + 0x24]
push eax
call fcn.10094e50
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x10], 1
mov eax, dword [ebx + eax + 0x14]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100a17c0
xor edi, edi
cmp dword [ebp - 0x10], edi
je 0x1001b8a4
mov edx, dword [ebp - 0x18]
cmp dword [edx - 8], edi
je 0x1001b95f
push dword [ebp + 0x20]
mov dword [ebp - 0x694], edi
mov esi, dword [esi + 0x18]
mov ecx, 0x93
push dword [ebp + 0x1c]
xor eax, eax
lea edi, [ebp - 0x690]
push dword [ebp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x694]
push eax
push 0
push edx
call esi
cmp eax, 0xffffffff
je 0x1001b899
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x694]
mov dword [ebx], eax
mov eax, dword [ebp - 0x674]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x678]
mov dword [ebx + 0x1c], eax
jmp 0x1001b95f
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x20], eax
jmp 0x1001b95f
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
add esp, 0x1c
cmp eax, 0xffffffff
mov dword [ebp + 0x10], eax
je 0x1001b953
push edi
push edi
push eax
call fcn.100600ff
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x1001b94a
lea ecx, [ebp + 0x14]
call fcn.100a6a40
push esi
push edi
lea eax, [ebp + 0x14]
push edi
push eax
mov byte [ebp - 4], 4
push dword [ebp + 0x10]
call fcn.10021efc
add esp, 0x14
test eax, eax
jne 0x1001b93e
cmp esi, 3
jne 0x1001b925
lea ecx, [ebp + 0x14]
call fcn.100a7340
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x20], ecx
mov eax, dword [eax + 0x1c]
jmp 0x1001b93b
cmp esi, 4
jne 0x1001b93e
lea ecx, [ebp + 0x14]
call fcn.100a7340
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x20], ecx
mov dword [ebx + 0x1c], eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.100a6ba0
push dword [ebp + 0x10]
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 - 0x18]
call fcn.10094cc0
mov esi, dword [ebp + 0xc]
jmp 0x1001b972
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 0x1c