Function at 0x10006766
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012730
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 0xc]
push edx
call dword [0x100130d8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x12c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x12c], 0xffffffff
jne 0x100067e2
mov dword [ebp - 0x2c], 0x100
push 0x10013978
lea eax, [ebp - 0x2c]
push eax
call fcn.1000ce4a
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 8]
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call dword [0x1001303c]
mov dword [esi + 0x3c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x3c], 0
jne 0x1000681e
mov dword [ebp - 0x30], 0x101
push 0x10013978
lea eax, [ebp - 0x30]
push eax
call fcn.1000ce4a
push 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x12c]
push ecx
call fcn.1000c27f
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18c]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call fcn.1000c2de
push 0xf8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x190]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x12c]
push ecx
call fcn.1000c27f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18c]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18c]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x100068b5
mov dword [ebp - 0x34], 0x102
push 0x10013978
lea edx, [ebp - 0x34]
push edx
call fcn.1000ce4a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
cmp dword [ecx], 0x4550
je 0x100068db
mov dword [ebp - 0x38], 0x103
push 0x10013978
lea edx, [ebp - 0x38]
push edx
call fcn.1000ce4a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x190]
xor edx, edx
mov dx, word [ecx + 6]
mov eax, dword [ebp + 8]
mov dword [eax + 0x130], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x130], 5
jbe 0x10006914
mov dword [ebp - 0x3c], 0x10b
push 0x10013978
lea edx, [ebp - 0x3c]
push edx
call fcn.1000ce4a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x190]
xor edx, edx
mov dx, word [eax + 0x14]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x130]
imul eax, eax, 0x28
lea edx, [eax + edx + 0x138]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0
jmp 0x1000695d
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx + 0x130]
jae 0x10006afd
push 0
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call fcn.1000c2de
push 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x194]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
call fcn.1000c27f
mov byte [ebp - 0x14], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x194]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x194]
mov ecx, dword [eax + 0x14]
mov edx, dword [edx + 0x10]
lea eax, [ecx + edx - 1]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
call fcn.1000c2de
movsx eax, byte [ebp - 0x14]
test eax, eax
jne 0x10006a20
push 1
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x12c]
push eax
call fcn.1000c27f
push 1
push 0xfffffffffffffffe
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x12c]
push edx
call fcn.1000c2de
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x18], eax
jmp 0x100069e5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x194]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x14]
mov dword [edx + ecx*4 + 0x28], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x194]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax + 0x14]
add ecx, 3
mov eax, dword [ebp - 0x1c]
mov dword [edx + eax*4 + 0xc], ecx
cmp dword [ebp - 0x1c], 0
jne 0x10006a8e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 4]
jbe 0x10006a8c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x28]
mov dword [edx + 4], eax
jmp 0x10006ad6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4 + 0x28]
sub eax, dword [ecx + edi*4 + 0x24]
cmp eax, dword [edx + 4]
jbe 0x10006ad6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4 + 0x28]
sub eax, dword [ecx + edi*4 + 0x24]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edx + eax*4 + 0xc]
cmp ecx, dword [ebp - 0x24]
jbe 0x10006af8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + ecx*4 + 0xc]
mov dword [ebp - 0x24], edx
jmp 0x10006954
mov eax, dword [ebp - 0x24]
push eax
call fcn.1000c855
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [edx + 0x124], eax
cmp dword [ebp - 0x40], 0
jne 0x10006b39
mov dword [ebp - 0x44], 0x20a
push 0x10013978
lea ecx, [ebp - 0x44]
push ecx
call fcn.1000ce4a
jmp 0x10006b4c
mov dword [ebp - 4], 0xffffffff
mov eax, 9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8