Function at 0x1001c523
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
cmp dword [0x104a655f], 0
jne 0x1001c79c
cmp dword [ebp + 8], 1
jne 0x1001c597
mov dword [0x104a655f], 1
cmp dword [0x104a6563], 0x12b504
je 0x1001c588
mov eax, 0
jmp 0x1001c7a6
mov eax, 1
jmp 0x1001c7a6
push 0
mov ebx, 0x210
call fcn.1020c2b0
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x1f8
call fcn.1020c310
add esp, 0x10
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x168
call fcn.102086d0
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001c5f3
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
mov ebx, 0x210
call fcn.1020c2b0
add esp, 4
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x8bc
call fcn.1020c350
add esp, 0x10
push reloc.WS2_32.dll_closesocket
push edx
push eax
push 1
mov ebx, 0x168
call fcn.102086d0
add esp, 0x10
mov dword [ebp - 0x24], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.1001c7de
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x1001c660
push ebx
call fcn.10207bb1
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001c674
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
push 1
push 4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1001c6ae
push 0x1e6
push 0x43e88fd
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0
push 0
push 0
push 4
push dword [ebp - 0x18]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x1001c6f1
push 0x1e6
push 0x43e88fd
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 1
mov ebx, 0x90c
call fcn.1020c390
add esp, 0x10
mov dword [ebp - 0x14], eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1001df31
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1001c735
push ebx
call fcn.10207bb1
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001c749
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1001c779
push 0x280
push 0x43e88fd
push 6
call fcn.10207bbd
add esp, 0xc
mov dword [0x104a655f], 1
mov dword [0x104a655b], 1
mov eax, 1
jmp 0x1001c7a6
mov eax, dword [0x104a655b]
jmp 0x1001c7a6
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1001c7b7
push ebx
call fcn.10207bb1
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1001c7c7
push ebx
call fcn.10207bb1
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001c7d7
push ebx
call fcn.10207bb1
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4