Function at 0x3027e90
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x30f8968]
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.0303cab0
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.0303cab0
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 0x3027f40
push 0x30023f4
call dword [0x30fa864]
add esp, 4
xor eax, eax
jmp 0x3028563
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 0x3027f7a
mov eax, 1
jmp 0x3028563
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x540], 5
jne 0x3027f93
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 [0x30fa878]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3027fcc
cmp dword [ebp - 0x294], 0x40
je 0x3027ff2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x100c]
push eax
mov ecx, dword [edx + 0x1008]
push ecx
push 0x30023d4
call dword [0x30fa864]
add esp, 0xc
xor eax, eax
jmp 0x3028563
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 0x3028057
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.0303cab0
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 0x3028092
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.0303cab0
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 0x3028418
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 [0x30fa878]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x30280fe
cmp dword [ebp - 0x294], 0xf8
je 0x302812d
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 0x30023b0
call dword [0x30fa864]
add esp, 0xc
xor eax, eax
jmp 0x3028563
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 0x30281bc
lea eax, [ebp - 0x228]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx]
cmp edx, 0x107
jne 0x30281a2
lea eax, [ebp - 0x23c]
mov dword [0x30fa740], 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 0x30281b7
push 0x3002394
call dword [0x30fa864]
add esp, 4
xor eax, eax
jmp 0x3028563
jmp 0x30282fc
movzx ecx, word [ebp - 0x228]
push ecx
call fcn.03044b70
test eax, eax
je 0x3028280
lea edx, [ebp - 0x294]
push edx
push pe_nt_image_headers32
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 [0x30fa878]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3028219
cmp dword [ebp - 0x294], 0x108
je 0x3028248
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 0x30023b0
call dword [0x30fa864]
add esp, 0xc
xor eax, eax
jmp 0x3028563
lea edx, [ebp - 0x144]
mov dword [0x30fa740], 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 0x30282b6
lea edx, [ebp - 0x23c]
mov dword [0x30fa740], 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 [0x30fa740]
movzx ecx, word [eax + 0x12]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x203c], ecx
mov eax, dword [0x30fa740]
movzx ecx, word [eax + 2]
mov dword [0x30fa71c], ecx
mov edx, dword [0x30fa71c]
imul edx, edx, 0x28
push edx
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [0x30fa738], eax
cmp dword [0x30fa738], 0
jne 0x3028353
push 0x3002864
call dword [0x30fa864]
add esp, 4
xor eax, eax
jmp 0x3028563
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 [0x30fa740]
movzx eax, word [edx + 0x10]
cdq
add ecx, eax
adc esi, edx
mov dword [0x30fa720], ecx
mov dword [0x30fa724], esi
lea eax, [ebp - 0x294]
push eax
mov ecx, dword [0x30fa71c]
imul ecx, ecx, 0x28
push ecx
mov edx, dword [0x30fa738]
push edx
mov eax, dword [0x30fa724]
push eax
mov ecx, dword [0x30fa720]
push ecx
call dword [0x30fa878]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x30283dc
push 0x3002848
call dword [0x30fa864]
add esp, 4
jmp 0x3028413
mov edx, dword [0x30fa71c]
imul edx, edx, 0x28
cmp dword [ebp - 0x294], edx
je 0x3028413
push 0x3002810
call dword [0x30fa864]
add esp, 4
mov eax, dword [ebp - 0x294]
xor edx, edx
mov ecx, 0x28
div ecx
movzx edx, ax
mov dword [0x30fa71c], edx
jmp 0x3028511
movzx eax, word [ebp - 0x290]
cmp eax, 0x4944
jne 0x30284ff
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 [0x30fa878]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3028460
cmp dword [ebp - 0x294], 0x30
je 0x3028486
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x100c]
push ecx
mov edx, dword [eax + 0x1008]
push edx
push 0x300236c
call dword [0x30fa864]
add esp, 0xc
xor eax, eax
jmp 0x3028563
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 0x30284fd
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 0x3028511
push 0x300235c
call dword [0x30fa864]
add esp, 4
xor eax, eax
jmp 0x3028563
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 0x302855e
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.0301d0a0
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 0x24c]
xor ecx, ebp
call fcn.0306b4ac
mov esp, ebp
pop ebp
ret 0xc