Function at 0x10031230
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x1006a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 0
lea eax, [ebp - 0x370]
push eax
mov ecx, dword [ebp - 0x314]
mov ecx, dword [ecx + 0xc]
call fcn.10001f10
mov edx, dword [ebp - 0x314]
mov dword [edx + 0x10], 0x208
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0x28]
push eax
call fcn.1004a730
add esp, 0xc
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx + 0x10]
and edx, 0x80000007
jns 0x100312b3
dec edx
or edx, 0xfffffff8
inc edx
test edx, edx
jne 0x100312c3
mov dword [ebp - 0x31c], 0
jmp 0x100312cd
mov dword [ebp - 0x31c], 8
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 0x10]
and ecx, 0x80000007
jns 0x100312e3
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0x10]
sub eax, ecx
add eax, dword [ebp - 0x31c]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0x10]
add eax, 1
push eax
push 1
call fcn.1004b58e
add esp, 8
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x314]
mov dword [edx + 0x14], 0x244
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0x2c]
push eax
call fcn.1004a730
add esp, 0xc
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx + 0x14]
and edx, 0x80000007
jns 0x1003135e
dec edx
or edx, 0xfffffff8
inc edx
test edx, edx
jne 0x1003136e
mov dword [ebp - 0x320], 0
jmp 0x10031378
mov dword [ebp - 0x320], 8
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 0x14]
and ecx, 0x80000007
jns 0x1003138e
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0x14]
sub eax, ecx
add eax, dword [ebp - 0x320]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x314]
mov eax, dword [edx + 0x14]
add eax, 1
push eax
push 1
call fcn.1004b58e
add esp, 8
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 0x1c], eax
push 0x10065ad8
lea ecx, [ebp - 0x340]
call fcn.10031be0
mov edx, dword [eax]
mov dword [ebp - 0x33c], edx
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], eax
push 3
mov ecx, dword [ebp - 0x33c]
push ecx
lea ecx, [ebp - 0x108]
call fcn.10030360
mov edx, dword [ebp - 0x108]
push edx
lea ecx, [ebp - 0x338]
call fcn.1002fa80
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x324], eax
lea ecx, [ebp - 0x104]
cmp dword [ebp - 0x324], ecx
je 0x1003143b
mov edx, dword [ebp - 0x324]
push edx
call fcn.1004dfdf
add esp, 4
lea ecx, [ebp - 0x340]
call fcn.1002ea70
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x344], eax
mov ecx, dword [ebp - 0x344]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
je 0x10031497
push 4
push 0
push 0
push 0xf001f
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x314]
mov dword [ecx], eax
jmp 0x100314a1
push 0xb
call fcn.1004dad7
add esp, 4
push 0x10065ae8
lea ecx, [ebp - 0x34c]
call fcn.10031c70
mov edx, dword [eax]
mov dword [ebp - 0x348], edx
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], eax
push 3
mov ecx, dword [ebp - 0x348]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.10030360
mov edx, dword [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x334]
call fcn.1002fa80
mov eax, dword [ebp - 0x20c]
mov dword [ebp - 0x328], eax
lea ecx, [ebp - 0x208]
cmp dword [ebp - 0x328], ecx
je 0x10031514
mov edx, dword [ebp - 0x328]
push edx
call fcn.1004dfdf
add esp, 4
lea ecx, [ebp - 0x34c]
call fcn.1002ea70
mov eax, dword [ebp - 0x334]
mov dword [ebp - 0x350], eax
mov ecx, dword [ebp - 0x350]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
je 0x10031571
push 4
push 0
push 0
push 0xf001f
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 4], eax
jmp 0x1003157b
push 0xb
call fcn.1004dad7
add esp, 4
push str.STO_W_41__.._
lea ecx, [ebp - 0x358]
call fcn.10031d00
mov edx, dword [eax]
mov dword [ebp - 0x354], edx
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x310], eax
push 3
mov ecx, dword [ebp - 0x354]
push ecx
lea ecx, [ebp - 0x310]
call fcn.10030360
mov edx, dword [ebp - 0x310]
push edx
lea ecx, [ebp - 0x330]
call fcn.1002fa80
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x32c], eax
lea ecx, [ebp - 0x30c]
cmp dword [ebp - 0x32c], ecx
je 0x100315ee
mov edx, dword [ebp - 0x32c]
push edx
call fcn.1004dfdf
add esp, 4
lea ecx, [ebp - 0x358]
call fcn.1002ea70
mov eax, dword [ebp - 0x330]
mov dword [ebp - 0x35c], eax
mov ecx, dword [ebp - 0x35c]
push ecx
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
je 0x1003164b
push 4
push 0
push 0
push 0xf001f
mov edx, dword [ebp - 0x318]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0x314]
mov dword [ecx + 8], eax
jmp 0x10031655
push 0xb
call fcn.1004dad7
add esp, 4
mov edx, dword [ebp - 0x314]
mov byte [edx + 0x24], 1
mov eax, dword [ebp - 0x330]
sub eax, 0x10
mov dword [ebp - 0x360], eax
mov ecx, dword [ebp - 0x360]
call fcn.10003260
mov ecx, dword [ebp - 0x334]
sub ecx, 0x10
mov dword [ebp - 0x364], ecx
mov ecx, dword [ebp - 0x364]
call fcn.10003260
mov edx, dword [ebp - 0x338]
sub edx, 0x10
mov dword [ebp - 0x368], edx
mov ecx, dword [ebp - 0x368]
call fcn.10003260
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100491d6
mov esp, ebp
pop ebp
ret