Function at 0x30cf6b9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x30ee89c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x80], 0
push ebx
push edi
mov edi, dword [ebp + 8]
push 0xb
mov ebx, ecx
mov dword [ebp - 0x84], edi
call fcn.030ce603
test eax, eax
mov dword [ebx + 0x834], eax
je 0x30cf6fc
mov byte [ebx + 0xc94], 1
mov al, 1
jmp 0x30cfa9b
push 0xa
mov ecx, ebx
call fcn.030ce603
test eax, eax
mov dword [ebx + 0x838], eax
je 0x30cf72e
mov ecx, ebx
call fcn.030cf5c1
test al, al
je 0x30cf72e
push edi
mov ecx, ebx
mov byte [ebx + 0xc78], 1
call fcn.030cea94
jmp 0x30cfa9b
push 4
mov ecx, ebx
call fcn.030ce603
test eax, eax
mov dword [ebx + 0x82c], eax
jne 0x30cf77c
push 5
mov ecx, ebx
call fcn.030ce603
test eax, eax
mov dword [ebx + 0x830], eax
jne 0x30cf77c
push 0x20
push 0x300f80c
push edi
call fcn.030cb4be
add esp, 0xc
test eax, eax
mov dword [ebp - 0x80], eax
jne 0x30cf77c
push edi
push 4
mov ecx, ebx
call fcn.030ce626
xor al, al
jmp 0x30cfa9b
push esi
mov esi, dword [ebp - 0x80]
lea eax, [ebp - 0x6c]
push eax
push 0x40
push 0
push esi
mov ecx, ebx
call fcn.030ce5e1
test al, al
je 0x30cfa73
test esi, esi
je 0x30cf7c2
cmp word [ebp - 0x6c], 0x4944
jne 0x30cf7c2
push esi
call dword [sym.imp.msvcrt.dll_fclose]
mov eax, dword [ebp - 0x64]
pop ecx
push edi
mov ecx, ebx
mov dword [ebx + 0xc80], eax
call fcn.030cf3a9
jmp 0x30cfa9a
cmp word [ebp - 0x6c], 0x5a4d
jne 0x30cfa73
push edi
mov ecx, ebx
call fcn.030cea94
test al, al
jne 0x30cf7e6
push esi
call dword [sym.imp.msvcrt.dll_fclose]
jmp 0x30cfa97
cmp dword [ebp - 0x30], 0
jle 0x30cfa73
lea eax, [ebp - 0x1b8]
push eax
push 0xf8
push dword [ebp - 0x30]
mov ecx, ebx
push esi
call fcn.030ce5e1
test al, al
je 0x30cfa73
cmp dword [ebp - 0x1b8], 0x4550
jne 0x30cfa73
movzx eax, word [ebp - 0x1a0]
cmp eax, 0x10b
je 0x30cf862
cmp eax, 0x20b
jne 0x30cfa73
cmp dword [ebp - 0x134], 6
mov eax, dword [ebp - 0x168]
mov dword [ebx + 0xc7c], eax
jb 0x30cfa87
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0xfc]
jmp 0x30cf88a
cmp dword [ebp - 0x144], 6
mov eax, dword [ebp - 0x168]
mov dword [ebx + 0xc7c], eax
jb 0x30cfa87
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x10c]
xor ecx, ecx
cmp dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], eax
je 0x30cfa87
cmp eax, ecx
je 0x30cfa87
cmp dword [ebx + 0x82c], ecx
jne 0x30cf8b5
cmp dword [ebx + 0x830], ecx
je 0x30cf8b5
mov dword [ebp - 0x74], ecx
jmp 0x30cf921
movzx edi, word [ebp - 0x1b2]
movzx eax, word [ebp - 0x1a4]
mov ecx, dword [ebp - 0x30]
and dword [ebp - 0x74], 0
test edi, edi
lea esi, [eax + ecx + 0x18]
jbe 0x30cf90a
lea eax, [ebp - 0x2c]
push eax
push 0x28
push esi
push dword [ebp - 0x80]
mov ecx, ebx
call fcn.030ce5e1
test al, al
je 0x30cf90a
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x7c]
add esi, 0x28
cmp ecx, eax
ja 0x30cf902
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov ecx, dword [ebp - 0x78]
add ecx, eax
cmp edx, ecx
jae 0x30cf90a
inc dword [ebp - 0x74]
cmp dword [ebp - 0x74], edi
jb 0x30cf8d2
cmp dword [ebp - 0x74], edi
je 0x30cfa73
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x7c]
xor ecx, ecx
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x78]
push 0x1c
xor edx, edx
pop esi
div esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x78], ecx
cmp eax, ecx
mov dword [ebp - 0x88], eax
ja 0x30cf9f0
mov ecx, dword [ebp - 0x80]
xor edx, edx
cmp dword [ebp - 0x14], edx
mov dword [ebx + 0x86c], ecx
mov byte [ebp - 0x6d], 0
je 0x30cf97f
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc98], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc9c], eax
mov eax, dword [ebp - 8]
mov byte [ebp - 0x6d], 1
mov byte [ebx + 0xc94], 1
mov dword [ebx + 0xca0], eax
mov eax, dword [ebp - 0x1a2]
shr eax, 9
and al, 1
mov byte [ebx + 0xc78], al
je 0x30cf9d1
cmp dword [ebp - 0x98], edx
je 0x30cf9d1
push dword [ebp - 0x94]
mov eax, dword [ebp - 0x1b0]
push dword [ebp - 0x90]
mov dword [ebx + 0xc80], eax
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0xa0]
push ecx
push edx
mov ecx, ebx
mov byte [ebp - 0x6d], 1
mov dword [ebx + 0xc84], eax
call fcn.030cec20
cmp byte [ebp - 0x6d], 0
jne 0x30cf9e6
push dword [ebp - 0x84]
mov ecx, ebx
push 0x13
call fcn.030ce626
mov al, byte [ebp - 0x6d]
jmp 0x30cfa9a
xor ecx, ecx
push ecx
lea eax, [ebp - 0xc0]
push eax
push 0x1c
push dword [ebp - 0x7c]
mov ecx, ebx
push dword [ebp - 0x74]
push dword [ebp - 0x80]
call fcn.030ce546
test al, al
je 0x30cfa73
add dword [ebp - 0x7c], 0x1c
cmp dword [ebx + 0x82c], 0
jne 0x30cfa24
cmp dword [ebx + 0x830], 0
jne 0x30cfa28
add dword [ebp - 0x74], 0x1c
lea eax, [ebp - 0xc0]
push eax
push 1
mov ecx, ebx
call fcn.030ceb06
cmp dword [ebp - 0xb4], 2
jne 0x30cfa46
lea edi, [ebp - 0x20]
jmp 0x30cfa55
cmp dword [ebp - 0xb4], 4
jne 0x30cfa60
lea edi, [ebp - 0xa4]
push 7
pop ecx
lea esi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x78]
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x88]
jb 0x30cf9ee
jmp 0x30cf945
push dword [ebp - 0x84]
mov ecx, ebx
push 0x11
call fcn.030ce626
push dword [ebp - 0x80]
jmp 0x30cfa92
push edi
push 0x13
mov ecx, ebx
call fcn.030ce626
push esi
call fcn.030ce52f
pop ecx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.03050b89
leave
ret 4