Function at 0x100336f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035aa0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x10032eac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x10033737
xor eax, eax
jmp 0x1003398c
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x4550
je 0x10033755
xor eax, eax
jmp 0x1003398c
push 4
push 0x2000
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x34]
push eax
call dword [0x10035fb8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10033792
push 4
push 0x2000
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x50]
push edx
push 0
call dword [0x10035fb8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1003379f
xor eax, eax
jmp 0x1003398c
push 0x14
push 0
call dword [fcn.10035fb4]
push eax
call dword [0x10035fc0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x100337ff
mov dword [ebp - 0x2c], 0x3f
push 0x10035ee8
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x1003381f
mov dword [ebp - 4], 0xffffffff
jmp 0x1003382f
push 4
push 0x1000
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [0x10035fb8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 0x1c]
add edx, dword [eax + 0x54]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x34], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10033c40
add esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x28], ecx
je 0x100338b2
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.10033f70
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10034050
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.10033df0
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp dword [ecx + 0x28], 0
je 0x10033979
mov dword [ebp - 4], 2
mov edx, 1
test edx, edx
je 0x100338fe
mov dword [ebp - 0x30], 0x1f
push 0x10035ee8
lea eax, [ebp - 0x30]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x10033914
mov dword [ebp - 4], 0xffffffff
jmp 0x10033924
mov dword [ebp - 4], 4
mov ecx, 1
test ecx, ecx
je 0x10033949
mov dword [ebp - 0x34], 0x1f
push 0x10035ee8
lea edx, [ebp - 0x34]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x1003395f
mov dword [ebp - 4], 0xffffffff
jmp 0x1003396f
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 1
mov eax, dword [ebp - 0x14]
jmp 0x1003398c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret