Function at 0x1001c517
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x10134f1c
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 - 0x18], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x24], 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 0x1001c5a8
mov ecx, dword [esi + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 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 + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
jmp 0x1001c5db
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x1001c5db
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
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 0x1001c5db
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 0x1001cacd
cmp byte [eax], bl
je 0x1001cacd
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 0x1001c770
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1001c768
mov edx, dword [ebp + 0xc]
cmp byte [edx], bl
je 0x1001c768
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 0x1001c768
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 eax, dword [esi + 0x20]
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
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 0x1001c726
mov ecx, dword [esi + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x24], ecx
lea ecx, [ebp - 0x13c]
push ecx
push esi
mov dword [esi + 0x20], eax
call eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
jmp 0x1001c75d
mov edi, dword [esi + 0x18]
cmp edi, ebx
je 0x1001c75d
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0x10]
lea eax, [ebp - 0x13c]
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 0x1001c75d
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 0x1001c78f
or esi, 0xffffffff
jmp 0x1001cacf
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
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1001cacd
mov ecx, dword [eax]
test cl, 0x10
jne 0x1001cacd
test ch, 1
jne 0x1001cacd
cmp dword [eax + 0x1c], ebx
ja 0x1001cacd
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 0x1001c85b
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 0x1001c85b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.1005eb48
mov eax, dword [ebp + 8]
jmp 0x1001cadd
lea eax, [ebp - 0x344]
push eax
call fcn.1007e283
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x1001cac8
mov eax, dword [ebp + 0x10]
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 0x1001cac8
cmp word [ebp + eax*2 - 0x346], 0x5c
je 0x1001c8b1
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 - 0x20]
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 - 0x18], ebx
push eax
call fcn.100a1760
cmp dword [edi + 0x1c], ebx
mov byte [ebp - 4], 4
mov dword [ebp + 0xc], ebx
jle 0x1001c964
mov dword [ebp - 0x14], ebx
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp - 0x14]
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 0x1001c937
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add dword [ebp - 0x14], 0x4c
cmp eax, dword [edi + 0x1c]
jl 0x1001c909
jmp 0x1001c964
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 - 0x20]
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 - 0x18], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.100a17c0
cmp dword [ebp - 0x10], ebx
je 0x1001c9fe
mov edx, dword [ebp - 0x20]
cmp dword [edx - 8], ebx
je 0x1001cabd
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
mov eax, dword [eax]
lea ecx, [ebp - 0x484]
push ecx
push eax
mov byte [ebp - 4], 5
call esi
lea ecx, [ebp + 0xc]
mov esi, eax
mov byte [ebp - 4], 3
call fcn.1008f940
cmp esi, 0xffffffff
je 0x1001c9f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x10]
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 0x1001cabd
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x20], eax
jmp 0x1001cabd
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 0x1001cab1
push ebx
push ebx
push edi
call fcn.100600ff
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x1001caaa
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 0x1001ca9e
cmp esi, 3
jne 0x1001ca82
lea ecx, [ebp + 0xc]
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 0x1001ca9e
cmp esi, 4
jne 0x1001ca9e
lea ecx, [ebp + 0xc]
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 + 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 - 0x20]
mov byte [ebp - 4], bl
call fcn.10094cc0
mov esi, dword [ebp + 8]
jmp 0x1001cacf
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 0xc