Function at 0x30d24cf
Capabilities:
Parse pe header

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1b8
mov eax, dword [0x30ed8a8]
xor eax, ebp
mov dword [ebp + 0x70], eax
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0x7c]
push 0xb
mov ebx, ecx
mov dword [ebp - 0x10], esi
call fcn.030d1432
test eax, eax
mov dword [ebx + 0x834], eax
je 0x30d2511
mov byte [ebx + 0xc94], 1
mov al, 1
jmp 0x30d2872
push 0xa
mov ecx, ebx
call fcn.030d1432
test eax, eax
mov dword [ebx + 0x838], eax
je 0x30d2543
mov ecx, ebx
call fcn.030d23c6
test al, al
je 0x30d2543
push esi
mov ecx, ebx
mov byte [ebx + 0xc78], 1
call fcn.030d18f6
jmp 0x30d2872
push 4
mov ecx, ebx
call fcn.030d1432
test eax, eax
mov dword [ebx + 0x82c], eax
jne 0x30d2591
push 5
mov ecx, ebx
call fcn.030d1432
test eax, eax
mov dword [ebx + 0x830], eax
jne 0x30d2591
push 0x20
push 0x300ffac
push esi
call fcn.030cda89
add esp, 0xc
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x30d2591
push esi
push 4
mov ecx, ebx
call fcn.030d1452
xor al, al
jmp 0x30d2872
push edi
mov edi, dword [ebp - 0xc]
lea eax, [ebp + 8]
push eax
push 0x40
push 0
push edi
mov ecx, ebx
call fcn.030d1410
test al, al
je 0x30d25de
test edi, edi
je 0x30d25f2
cmp word [ebp + 8], 0x4944
jne 0x30d25f2
push edi
call fcn.030d1362
mov eax, dword [ebp + 0x10]
pop ecx
push esi
mov ecx, ebx
mov dword [ebx + 0xc80], eax
call fcn.030d21c0
test al, al
jne 0x30d2871
cmp dword [ebx], 0xb
jne 0x30d2871
push dword [ebp - 0x10]
mov ecx, ebx
push 0x11
call fcn.030d1452
push dword [ebp - 0xc]
jmp 0x30d2869
cmp word [ebp + 8], 0x5a4d
jne 0x30d25de
push esi
mov ecx, ebx
call fcn.030d18f6
test al, al
je 0x30d2868
cmp dword [ebp + 0x44], 0
jle 0x30d25de
lea eax, [ebp - 0x144]
push eax
push 0xf8
push dword [ebp + 0x44]
mov ecx, ebx
push edi
call fcn.030d1410
test al, al
je 0x30d25de
cmp dword [ebp - 0x144], 0x4550
jne 0x30d25de
movzx eax, word [ebp - 0x12c]
cmp eax, 0x10b
je 0x30d2676
cmp eax, 0x20b
jne 0x30d25de
cmp dword [ebp - 0xc0], 6
mov eax, dword [ebp - 0xf4]
mov dword [ebx + 0xc7c], eax
jb 0x30d285e
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x88]
jmp 0x30d269e
cmp dword [ebp - 0xd0], 6
mov eax, dword [ebp - 0xf4]
mov dword [ebx + 0xc7c], eax
jb 0x30d285e
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x98]
xor ecx, ecx
cmp dword [ebp - 8], ecx
mov dword [ebp - 4], eax
je 0x30d285e
cmp eax, ecx
je 0x30d285e
cmp dword [ebx + 0x82c], ecx
jne 0x30d26c9
cmp dword [ebx + 0x830], ecx
je 0x30d26c9
mov dword [ebp], ecx
jmp 0x30d2735
movzx edi, word [ebp - 0x13e]
movzx eax, word [ebp - 0x130]
mov ecx, dword [ebp + 0x44]
and dword [ebp], 0
test edi, edi
lea esi, [eax + ecx + 0x18]
jbe 0x30d271e
lea eax, [ebp + 0x48]
push eax
push 0x28
push esi
push dword [ebp - 0xc]
mov ecx, ebx
call fcn.030d1410
test al, al
je 0x30d271e
mov ecx, dword [ebp + 0x54]
mov eax, dword [ebp - 8]
add esi, 0x28
cmp ecx, eax
ja 0x30d2716
mov edx, dword [ebp + 0x58]
add edx, ecx
mov ecx, dword [ebp - 4]
add ecx, eax
cmp edx, ecx
jae 0x30d271e
inc dword [ebp]
cmp dword [ebp], edi
jb 0x30d26e6
cmp dword [ebp], edi
je 0x30d25de
mov eax, dword [ebp + 0x5c]
sub eax, dword [ebp + 0x54]
add eax, dword [ebp - 8]
xor ecx, ecx
mov dword [ebp], eax
mov eax, dword [ebp - 4]
push 0x1c
xor edx, edx
pop esi
div esi
mov dword [ebp + 0x60], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], ecx
cmp eax, ecx
mov dword [ebp - 0x14], eax
ja 0x30d27ec
mov ecx, dword [ebp - 0xc]
xor edx, edx
cmp dword [ebp + 0x60], edx
mov dword [ebx + 0x86c], ecx
mov byte [ebp + 7], 0
je 0x30d278d
mov eax, dword [ebp + 0x64]
mov dword [ebx + 0xc98], eax
mov eax, dword [ebp + 0x68]
mov dword [ebx + 0xc9c], eax
mov eax, dword [ebp + 0x6c]
mov byte [ebp + 7], 1
mov byte [ebx + 0xc94], 1
mov dword [ebx + 0xca0], eax
mov eax, dword [ebp - 0x12e]
shr eax, 9
and al, 1
mov byte [ebx + 0xc78], al
je 0x30d27d0
cmp dword [ebp - 0x24], edx
je 0x30d27d0
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x13c]
push dword [ebp - 0x1c]
mov dword [ebx + 0xc80], eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
push ecx
push edx
mov ecx, ebx
mov byte [ebp + 7], 1
mov dword [ebx + 0xc84], eax
call fcn.030d1b3a
cmp byte [ebp + 7], 0
jne 0x30d27e2
push dword [ebp - 0x10]
mov ecx, ebx
push 0x13
call fcn.030d1452
mov al, byte [ebp + 7]
jmp 0x30d2871
xor ecx, ecx
push ecx
lea eax, [ebp - 0x4c]
push eax
push 0x1c
push dword [ebp - 8]
mov ecx, ebx
push dword [ebp]
push dword [ebp - 0xc]
call fcn.030d1375
test al, al
je 0x30d25de
add dword [ebp - 8], 0x1c
cmp dword [ebx + 0x82c], 0
jne 0x30d2821
cmp dword [ebx + 0x830], 0
jne 0x30d2825
add dword [ebp], 0x1c
lea eax, [ebp - 0x4c]
push eax
push 1
mov ecx, ebx
call fcn.030d196d
cmp dword [ebp - 0x40], 2
jne 0x30d283d
lea edi, [ebp + 0x54]
jmp 0x30d2846
cmp dword [ebp - 0x40], 4
jne 0x30d284e
lea edi, [ebp - 0x30]
push 7
pop ecx
lea esi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jb 0x30d27ea
jmp 0x30d2753
push esi
push 0x13
mov ecx, ebx
call fcn.030d1452
push edi
call fcn.030d1362
pop ecx
xor al, al
pop edi
mov ecx, dword [ebp + 0x70]
pop esi
xor ecx, ebp
pop ebx
call fcn.030554d2
add ebp, 0x74
leave
ret 4