Function at 0x1001b991
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10134e9c
call fcn.1007db34
sub esp, 0x738
push ebx
push esi
mov dword [ebp - 0x28], ecx
push edi
push 4
lea ecx, [ebp - 0x38]
call fcn.1005eb25
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x20]
mov edi, 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 + 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 0x10], ebx
call fcn.1005e85a
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, ebx
je 0x1001ba2e
push dword [ebp + 0x20]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x18], 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 - 0x20]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
jmp 0x1001ba6d
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x1001ba6d
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
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 0x1001ba6d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x14]
cmp eax, ebx
mov dword [ebp + 8], edx
je 0x1001bf8a
cmp byte [eax], bl
je 0x1001bf8a
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x13b]
mov byte [ebp - 0x13c], bl
cmp edx, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x1001bc1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001bc12
mov edx, dword [ebp + 0xc]
cmp byte [edx], bl
je 0x1001bc12
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x54a]
mov word [ebp - 0x54c], bx
rep stosd dword es:[edi], eax
push edx
lea ecx, [ebp + 8]
stosw word es:[edi], ax
call fcn.100943c0
mov eax, dword [eax]
mov edi, 0x104
lea ecx, [ebp - 0x54c]
push edi
push ecx
push eax
mov byte [ebp - 4], 1
call fcn.100745f7
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.10094cc0
cmp word [ebp - 0x54c], bx
je 0x1001bc12
push edi
lea eax, [ebp - 0x13c]
push ebx
push eax
call fcn.1007e1e0
push dword [ebp + 0xc]
call fcn.1007e450
push eax
lea eax, [ebp - 0x13c]
push dword [ebp + 0xc]
push eax
call fcn.1007e350
lea eax, [ebp - 0x13c]
push 0x10172e20
push eax
call fcn.1007e530
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [esi + 0x24]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x18], eax
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 0x1001bbc4
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 - 0x13c]
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 - 0x18]
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x24], eax
jmp 0x1001bc07
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x1001bc07
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x20]
lea eax, [ebp - 0x13c]
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 0x1001bc07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
mov edx, dword [esi + 0x14]
cmp edx, 0xffffffff
mov dword [ebp + 8], edx
jne 0x1001bc39
or esi, 0xffffffff
jmp 0x1001bf8c
push dword [ebp + 0xc]
call fcn.1007e450
inc eax
push eax
lea eax, [ebp - 0x13c]
push dword [ebp + 0xc]
push eax
call fcn.1007e350
mov edx, dword [ebp + 8]
add esp, 0x10
cmp dword [ebp + 0x10], ebx
jne 0x1001bf8a
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1001bf8a
mov ecx, dword [eax]
test cl, 0x10
jne 0x1001bf8a
test ch, 1
jne 0x1001bf8a
cmp dword [eax + 0x1c], ebx
ja 0x1001bf8a
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x342]
cmp byte [ebp - 0x13c], bl
mov word [ebp - 0x344], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x1001bd0e
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x742]
mov word [ebp - 0x744], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x13c]
lea ecx, [ebp + 0xc]
push eax
call fcn.100943c0
mov eax, dword [eax]
lea ecx, [ebp - 0x744]
push 0x1ff
push ecx
push eax
mov byte [ebp - 4], 2
call fcn.100745f7
add esp, 0xc
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.10094cc0
lea eax, [ebp - 0x344]
push 0x103
push eax
lea eax, [ebp - 0x744]
push eax
call fcn.10074b94
add esp, 0xc
test eax, eax
jne 0x1001bd0e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1005eb48
mov eax, dword [ebp + 8]
jmp 0x1001bf9a
lea eax, [ebp - 0x344]
push eax
call fcn.1007e283
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x1001bf85
mov eax, dword [ebp + 0x14]
lea edi, [eax + 0x2c]
push edi
call fcn.1007e450
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
add ecx, eax
cmp ecx, 0x104
jae 0x1001bf85
cmp word [ebp + eax*2 - 0x346], 0x5c
je 0x1001bd64
lea eax, [ebp - 0x344]
push 0x10160bc0
push eax
call fcn.1007e6a6
pop ecx
pop ecx
push edi
lea ecx, [ebp + 0xc]
call fcn.100943c0
push dword [eax]
lea eax, [ebp - 0x344]
push eax
call fcn.1007e6a6
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
call fcn.10094cc0
push 0x1019f4bc
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
call fcn.10094520
mov edi, dword [ebp - 0x28]
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
lea eax, [edi + 4]
mov dword [ebp - 0x14], ebx
push eax
call fcn.100a1760
cmp dword [edi + 0x1c], ebx
mov byte [ebp - 4], 4
mov dword [ebp + 0xc], ebx
jle 0x1001be17
mov dword [ebp + 0x10], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + eax + 0x20]
lea ecx, [ebp - 0x344]
push ecx
push eax
call fcn.1007eb9e
pop ecx
test eax, eax
pop ecx
je 0x1001bdea
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add dword [ebp + 0x10], 0x4c
cmp eax, dword [edi + 0x1c]
jl 0x1001bdbc
jmp 0x1001be17
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
imul eax, eax, 0x4c
mov dword [ebp + 0xc], eax
lea eax, [eax + ecx + 0x24]
lea ecx, [ebp - 0x24]
push eax
call fcn.10094e50
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
mov eax, dword [ecx + eax + 0x14]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.100a17c0
cmp dword [ebp - 0x10], ebx
je 0x1001bebb
mov edx, dword [ebp - 0x24]
cmp dword [edx - 8], ebx
je 0x1001bf7a
mov esi, dword [esi + 0x18]
push 0x4f
pop ecx
xor eax, eax
lea edi, [ebp - 0x480]
mov dword [ebp - 0x484], ebx
rep stosd dword es:[edi], eax
push edx
lea ecx, [ebp + 0xc]
call fcn.1008f1e0
push dword [ebp + 0x20]
mov eax, dword [eax]
lea ecx, [ebp - 0x484]
mov byte [ebp - 4], 5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push ecx
push ebx
push eax
call esi
lea ecx, [ebp + 0xc]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1008f940
cmp esi, 0xffffffff
je 0x1001bead
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x484]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x464]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x468]
mov dword [eax + 0x1c], ecx
jmp 0x1001bf7a
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x20], eax
jmp 0x1001bf7a
push 0xfffffffffffffffb
lea ecx, [ebp - 0x2c]
call fcn.1005eb25
push ebx
push 0x60
push 1
push 7
push 0x80
lea eax, [ebp - 0x344]
push 0x120089
push eax
mov byte [ebp - 4], 6
call fcn.10072edf
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
je 0x1001bf6e
push ebx
push ebx
push edi
call fcn.100600ff
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x1001bf67
lea ecx, [ebp + 0xc]
call fcn.100a6a40
push esi
push ebx
lea eax, [ebp + 0xc]
push ebx
push eax
push edi
mov byte [ebp - 4], 7
call fcn.10021efc
add esp, 0x14
test eax, eax
jne 0x1001bf5b
cmp esi, 3
jne 0x1001bf3f
lea ecx, [ebp + 0xc]
call fcn.100a7340
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
mov dword [ecx + 0x20], edx
mov eax, dword [eax + 0x1c]
mov dword [ecx + 0x1c], eax
jmp 0x1001bf5b
cmp esi, 4
jne 0x1001bf5b
lea ecx, [ebp + 0xc]
call fcn.100a7340
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 0x24]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x1c], eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 6
call fcn.100a6ba0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.1005eb48
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.10094cc0
mov esi, dword [ebp + 8]
jmp 0x1001bf8c
mov esi, edx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
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