Function at 0x3026a90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x30ed8a8]
xor eax, ebp
mov dword [ebp - 0x24c], eax
push esi
push edi
push 0x25b0
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x1002
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
add edx, 0x1e
push edx
call fcn.0303a630
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
mov dword [eax + 0x1008], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0x100c], ecx
push 0x1002
mov edx, dword [ebp + 0x10]
add edx, 0x1010
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x120]
push ecx
call fcn.0303a630
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x298]
mov edx, dword [eax + 0x1008]
or edx, dword [ecx + 0x100c]
jne 0x3026b40
push 0x3002434
call dword [0x30ef88c]
add esp, 4
xor eax, eax
jmp 0x3027163
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x540]
mov dword [eax + 0x202c], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x4790]
mov dword [eax + 0x2040], edx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x540], 8
jne 0x3026b7a
mov eax, 1
jmp 0x3027163
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x540], 5
jne 0x3026b93
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x2040], 0x80000000
lea eax, [ebp - 0x294]
push eax
push 0x40
lea ecx, [ebp - 0x290]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x100c]
push eax
mov ecx, dword [edx + 0x1008]
push ecx
call dword [0x30ef8a0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3026bcc
cmp dword [ebp - 0x294], 0x40
je 0x3026bf2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x100c]
push eax
mov ecx, dword [edx + 0x1008]
push ecx
push 0x3002414
call dword [0x30ef88c]
add esp, 0xc
xor eax, eax
jmp 0x3027163
mov edx, dword [ebp + 0x10]
mov ax, word [ebp - 0x290]
mov word [edx + 0x2018], ax
mov ecx, dword [ebp + 0xc]
xor edx, edx
cmp dword [ecx + 0x598], 0
setne dl
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x2044], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x134]
mov dword [ecx + 0x2150], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x128], 0
je 0x3026c57
push 0x105
mov edx, dword [ebp + 0x10]
add edx, 0x2048
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x128]
push ecx
call fcn.0303a630
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x130]
mov dword [edx + 0x2260], ecx
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x124], 0
je 0x3026c92
push 0x105
mov eax, dword [ebp + 0x10]
add eax, 0x2154
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x124]
push edx
call fcn.0303a630
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x12c]
mov dword [eax + 0x225c], edx
movzx eax, word [ebp - 0x290]
cmp eax, 0x5a4d
jne 0x3027018
lea ecx, [ebp - 0x294]
push ecx
push 0xf8
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x254]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
push ecx
push eax
call dword [0x30ef8a0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3026cfe
cmp dword [ebp - 0x294], 0xf8
je 0x3026d2d
mov eax, dword [ebp - 0x254]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
push ecx
push eax
push 0x30023f0
call dword [0x30ef88c]
add esp, 0xc
xor eax, eax
jmp 0x3027163
movzx edx, word [ebp - 0x23c]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x2014], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x238]
mov dword [ecx + 0x2030], edx
cmp dword [ebp - 0x240], 0x4550
je 0x3026dbc
lea eax, [ebp - 0x228]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx]
cmp edx, 0x107
jne 0x3026da2
lea eax, [ebp - 0x23c]
mov dword [0x30ef768], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
mov dword [ecx + 0x2038], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x2034], 0
mov dword [ebp - 0x244], 0
jmp 0x3026db7
push 0x30023d4
call dword [0x30ef88c]
add esp, 4
xor eax, eax
jmp 0x3027163
jmp 0x3026efc
movzx ecx, word [ebp - 0x228]
push ecx
call fcn.03042380
test eax, eax
je 0x3026e80
lea edx, [ebp - 0x294]
push edx
push 0x108
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 0x254]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
push ecx
push eax
call dword [0x30ef8a0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3026e19
cmp dword [ebp - 0x294], 0x108
je 0x3026e48
mov eax, dword [ebp - 0x254]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
push ecx
push eax
push 0x30023f0
call dword [0x30ef88c]
add esp, 0xc
xor eax, eax
jmp 0x3027163
lea edx, [ebp - 0x144]
mov dword [0x30ef768], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xf0]
mov dword [eax + 0x2034], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xf8]
mov dword [edx + 0x2038], eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0x248], ecx
jmp 0x3026eb6
lea edx, [ebp - 0x23c]
mov dword [0x30ef768], edx
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1f0]
mov dword [ecx + 0x2038], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1e8]
mov dword [eax + 0x2034], ecx
mov edx, dword [ebp - 0x248]
mov eax, dword [edx + 0x30]
xor ecx, ecx
mov edx, dword [ebp + 0x10]
add eax, dword [edx + 0x1008]
mov edx, dword [edx + 0x100c]
adc edx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x2020], eax
mov dword [ecx + 0x2024], edx
mov edx, dword [ebp - 0x248]
mov eax, dword [edx + 0x34]
xor edx, edx
mov ecx, 0x1c
div ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x2028], eax
mov eax, dword [0x30ef768]
movzx ecx, word [eax + 0x12]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x203c], ecx
mov eax, dword [0x30ef768]
movzx ecx, word [eax + 2]
mov dword [0x30ef744], ecx
mov edx, dword [0x30ef744]
imul edx, edx, 0x28
push edx
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [0x30ef760], eax
cmp dword [0x30ef760], 0
jne 0x3026f53
push 0x3002744
call dword [0x30ef88c]
add esp, 4
xor eax, eax
jmp 0x3027163
mov eax, dword [ebp - 0x254]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x40]
add ecx, 0x18
mov esi, dword [ebp - 0x3c]
adc esi, 0
mov edx, dword [0x30ef768]
movzx eax, word [edx + 0x10]
cdq
add ecx, eax
adc esi, edx
mov dword [0x30ef748], ecx
mov dword [0x30ef74c], esi
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [0x30ef744]
imul ecx, ecx, 0x28
push ecx
mov edx, dword [0x30ef760]
push edx
mov eax, dword [0x30ef74c]
push eax
mov ecx, dword [0x30ef748]
push ecx
call dword [0x30ef8a0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3026fdc
push 0x3002728
call dword [0x30ef88c]
add esp, 4
jmp 0x3027013
mov edx, dword [0x30ef744]
imul edx, edx, 0x28
cmp dword [ebp - 0x294], edx
je 0x3027013
push 0x30026f0
call dword [0x30ef88c]
add esp, 4
mov eax, dword [ebp - 0x294]
xor edx, edx
mov ecx, 0x28
div ecx
movzx edx, ax
mov dword [0x30ef744], edx
jmp 0x3027111
movzx eax, word [ebp - 0x290]
cmp eax, 0x4944
jne 0x30270ff
lea ecx, [ebp - 0x294]
push ecx
push 0x30
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x100c]
push ecx
mov edx, dword [eax + 0x1008]
push edx
call dword [0x30ef8a0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3027060
cmp dword [ebp - 0x294], 0x30
je 0x3027086
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x100c]
push ecx
mov edx, dword [eax + 0x1008]
push edx
push 0x30023ac
call dword [0x30ef88c]
add esp, 0xc
xor eax, eax
jmp 0x3027163
movzx eax, word [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x2014], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x2030], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x2034], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x2038], ecx
movzx edx, word [ebp - 0x2e]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x203c], edx
cmp dword [ebp - 0x14], 0
je 0x30270fd
mov eax, dword [ebp - 0x14]
xor edx, edx
mov ecx, 0x1c
div ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x2028], eax
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x18]
lea edx, [eax + ecx + 0x30]
xor eax, eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x2020], edx
mov dword [ecx + 0x2024], eax
jmp 0x3027111
push 0x300239c
call dword [0x30ef88c]
add esp, 4
xor eax, eax
jmp 0x3027163
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x534]
mov dword [edx + 0x2264], ecx
mov esi, dword [ebp + 0xc]
add esi, 0x4914
mov edi, dword [ebp + 0x10]
add edi, 0x2268
mov ecx, 0xc9
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x4794], 0
je 0x302715e
mov eax, dword [ebp + 0x10]
add eax, 0x258c
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0301c510
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 0x24c]
xor ecx, ebp
call fcn.030554d2
mov esp, ebp
pop ebp
ret 0xc