Function at 0x3024850
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x30ee89c]
xor eax, ebp
mov dword [ebp - 0x254], 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.03036b00
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.03036b00
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2a0], edx
mov eax, dword [ebp - 0x2a0]
mov ecx, dword [ebp - 0x2a0]
mov edx, dword [eax + 0x1008]
or edx, dword [ecx + 0x100c]
jne 0x3024900
push 0x30025a4
call dword [0x30f04dc]
add esp, 4
xor eax, eax
jmp 0x3024f57
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 0x302493a
mov eax, 1
jmp 0x3024f57
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x540], 5
jne 0x3024953
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x2040], 0x80000000
lea eax, [ebp - 0x29c]
push eax
push 0x40
lea ecx, [ebp - 0x298]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x100c]
push eax
mov ecx, dword [edx + 0x1008]
push ecx
call dword [0x30f04f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x302498c
cmp dword [ebp - 0x29c], 0x40
je 0x30249b2
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x100c]
push eax
mov ecx, dword [edx + 0x1008]
push ecx
push 0x3002584
call dword [0x30f04dc]
add esp, 0xc
xor eax, eax
jmp 0x3024f57
mov edx, dword [ebp + 0x10]
mov ax, word [ebp - 0x298]
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 0x3024a17
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.03036b00
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 0x3024a52
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.03036b00
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x12c]
mov dword [eax + 0x225c], edx
movzx eax, word [ebp - 0x298]
cmp eax, 0x5a4d
jne 0x3024e0c
lea ecx, [ebp - 0x29c]
push ecx
push 0xf8
lea edx, [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x25c]
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 [0x30f04f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3024abe
cmp dword [ebp - 0x29c], 0xf8
je 0x3024aed
mov eax, dword [ebp - 0x25c]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
push ecx
push eax
push 0x3002560
call dword [0x30f04dc]
add esp, 0xc
xor eax, eax
jmp 0x3024f57
movzx edx, word [ebp - 0x244]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x2014], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x240]
mov dword [ecx + 0x2030], edx
cmp dword [ebp - 0x248], 0x4550
je 0x3024b7c
lea eax, [ebp - 0x230]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
movzx edx, word [ecx]
cmp edx, 0x107
jne 0x3024b62
lea eax, [ebp - 0x244]
mov dword [0x30f03b8], 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 - 0x24c], 0
jmp 0x3024b77
push 0x3002544
call dword [0x30f04dc]
add esp, 4
xor eax, eax
jmp 0x3024f57
jmp 0x3024cbc
movzx ecx, word [ebp - 0x230]
push ecx
call fcn.0303e120
test eax, eax
je 0x3024c40
lea edx, [ebp - 0x29c]
push edx
push 0x108
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 0x25c]
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 [0x30f04f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3024bd9
cmp dword [ebp - 0x29c], 0x108
je 0x3024c08
mov eax, dword [ebp - 0x25c]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
push ecx
push eax
push 0x3002560
call dword [0x30f04dc]
add esp, 0xc
xor eax, eax
jmp 0x3024f57
lea edx, [ebp - 0x14c]
mov dword [0x30f03b8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xf8]
mov dword [eax + 0x2034], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x100]
mov dword [edx + 0x2038], eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x250], ecx
jmp 0x3024c76
lea edx, [ebp - 0x244]
mov dword [0x30f03b8], edx
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x1f8]
mov dword [ecx + 0x2038], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x1f0]
mov dword [eax + 0x2034], ecx
mov edx, dword [ebp - 0x250]
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 - 0x250]
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 [0x30f03b8]
movzx ecx, word [eax + 0x12]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x203c], ecx
mov eax, dword [0x30f03b8]
movzx ecx, word [eax + 2]
mov dword [0x30f0394], ecx
mov edx, dword [0x30f0394]
imul edx, edx, 0x28
push edx
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [0x30f03b0], eax
cmp dword [0x30f03b0], 0
jne 0x3024d13
push 0x3002514
call dword [0x30f04dc]
add esp, 4
xor eax, eax
jmp 0x3024f57
mov eax, dword [ebp - 0x25c]
cdq
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 0x1008]
mov ecx, dword [ecx + 0x100c]
adc ecx, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edx, dword [0x30f03b8]
movzx eax, word [edx]
push eax
call fcn.0303e120
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
neg ecx
sbb ecx, ecx
and ecx, 0x10
add ecx, 0xf8
xor edx, edx
add ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
adc esi, edx
mov eax, dword [0x30f03b8]
movzx eax, word [eax + 0x10]
cdq
add ecx, eax
adc esi, edx
mov edx, dword [ebp - 0x3c]
neg edx
sbb edx, edx
and edx, 0x10
add edx, 0xe0
xor eax, eax
sub ecx, edx
sbb esi, eax
mov dword [0x30f0398], ecx
mov dword [0x30f039c], esi
lea ecx, [ebp - 0x29c]
push ecx
mov edx, dword [0x30f0394]
imul edx, edx, 0x28
push edx
mov eax, dword [0x30f03b0]
push eax
mov ecx, dword [0x30f039c]
push ecx
mov edx, dword [0x30f0398]
push edx
call dword [0x30f04f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3024dd1
push 0x30024f8
call dword [0x30f04dc]
add esp, 4
jmp 0x3024e07
mov eax, dword [0x30f0394]
imul eax, eax, 0x28
cmp dword [ebp - 0x29c], eax
je 0x3024e07
push 0x30024c0
call dword [0x30f04dc]
add esp, 4
mov eax, dword [ebp - 0x29c]
xor edx, edx
mov ecx, 0x28
div ecx
movzx edx, ax
mov dword [0x30f0394], edx
jmp 0x3024f05
movzx eax, word [ebp - 0x298]
cmp eax, 0x4944
jne 0x3024ef3
lea ecx, [ebp - 0x29c]
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 [0x30f04f0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x3024e54
cmp dword [ebp - 0x29c], 0x30
je 0x3024e7a
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x100c]
push ecx
mov edx, dword [eax + 0x1008]
push edx
push 0x3002498
call dword [0x30f04dc]
add esp, 0xc
xor eax, eax
jmp 0x3024f57
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 0x3024ef1
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 0x3024f05
push 0x3002488
call dword [0x30f04dc]
add esp, 4
xor eax, eax
jmp 0x3024f57
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 0x3024f52
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.0301b430
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 0x254]
xor ecx, ebp
call fcn.03050b89
mov esp, ebp
pop ebp
ret 0xc