Function at 0x45aa40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x1e28
call fcn.0051bb00
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x1e24], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x1000
mov ebx, edx
lea edx, [esp + 0x3c]
push edx
push 0
push 0
mov ecx, esi
mov dword [esp + 0x30], esi
call eax
test eax, eax
jl 0x45ae33
mov eax, dword [esp + 0x10]
cmp eax, 0x61
jb 0x45ae33
mov ecx, 0x5a4d
cmp word [esp + 0x30], cx
jne 0x45ae33
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x28], ecx
test cl, 3
jne 0x45aae8
lea ebp, [esp + ecx + 0x30]
cmp ecx, 0xef8
jbe 0x45ab13
cmp eax, 0x1000
jb 0x45aaf2
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x3c]
push eax
push 0
push ecx
mov ecx, esi
call edx
test eax, eax
jge 0x45ab0b
mov eax, 0xc000007b
jmp 0x45ae38
cmp ecx, eax
jae 0x45aae8
sub eax, ecx
push eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
push ebp
push eax
call fcn.005087f0
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ebp, [esp + 0x30]
cmp eax, 0x1000
jae 0x45ab31
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x34]
push 0
push edx
call fcn.0051c1b0
add esp, 0xc
cmp dword [ebp], 0x4550
jne 0x45aae8
movzx eax, word [ebp + 4]
movzx ecx, word [ebp + 0x16]
mov word [ebx + 0x114], ax
movzx eax, ax
mov word [ebx + 0x116], cx
cmp eax, 0x14c
je 0x45aba4
cmp eax, 0x8664
jne 0x45aae8
mov eax, 0x20b
cmp word [ebp + 0x18], ax
jne 0x45aae8
mov edx, dword [ebp + 0x34]
mov ecx, 0x42
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x30]
mov esi, dword [ebp + 0x54]
mov dword [ebx + 0x10c], edx
mov edx, dword [ebp + 0x38]
mov byte [ebx + 0x11a], 1
mov dword [ebx + 0x108], ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edx
jmp 0x45abe8
mov ecx, 0x10b
cmp word [ebp + 0x18], cx
jne 0x45aae8
mov edx, dword [ebp + 0x34]
mov ecx, 0x3e
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x54]
mov dword [ebx + 0x108], edx
mov edx, dword [ebp + 0x38]
mov byte [ebx + 0x11a], 0
mov dword [ebx + 0x10c], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov esi, ecx
test byte [esp + 0x1e3c], 1
mov edi, dword [ebp + 0x50]
mov ax, word [ebp + 0x5c]
mov ecx, dword [ebp + 0x3c]
mov dword [ebx + 0x110], edi
mov word [ebx + 0x118], ax
je 0x45ae2f
movzx eax, word [ebp + 0x16]
test al, 2
je 0x45aae8
lea eax, [edi - 1]
cmp eax, 0x77000000
jae 0x45aae8
test esi, esi
jne 0x45ac39
cmp edx, 0x1000
jae 0x45aae8
jmp 0x45ac41
cmp esi, edi
ja 0x45aae8
movzx eax, word [ebx + 0x108]
xor esi, esi
or eax, esi
jne 0x45aae8
test edx, edx
je 0x45aae8
lea eax, [edx - 1]
mov dword [esp + 0x24], eax
test edx, eax
jne 0x45aae8
lea eax, [ecx - 1]
test ecx, eax
jne 0x45aae8
cmp ecx, edx
ja 0x45aae8
cmp ecx, 0x200
jae 0x45ac8c
cmp ecx, edx
jne 0x45aae8
test byte [esp + 0x1e3c], 2
je 0x45ae2f
movzx ecx, word [ebp + 6]
mov dword [esp + 0x14], ecx
cmp ecx, 0xc0
ja 0x45aae8
test ecx, ecx
je 0x45ae2f
movzx eax, word [ebp + 0x14]
lea esi, [ecx + ecx*4]
add esi, esi
add eax, 0x18
add esi, esi
add esi, esi
add ebp, eax
lea edx, [esi + ebp]
lea ebx, [esp + 0x1030]
cmp edx, ebx
jbe 0x45ad23
cmp dword [esp + 0x10], 0x1000
jb 0x45aae8
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x38]
add eax, ecx
push 0
push eax
mov ecx, ebx
call edx
test eax, eax
jl 0x45aae8
cmp dword [esp + 0x10], esi
jb 0x45aae8
mov ecx, dword [esp + 0x14]
lea ebp, [esp + 0x30]
jmp 0x45ad27
mov ebx, dword [esp + 0x18]
test byte [esp + 0x1e3c], 4
mov dword [esp + 0x18], 0xffffffff
je 0x45ad65
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call edx
test eax, eax
jl 0x45aae8
mov ecx, dword [esp + 0x2c]
xor eax, eax
or eax, ecx
mov ecx, dword [esp + 0x14]
jne 0x45ad65
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x20], 0x1000
jb 0x45ae06
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x24]
add edi, 0xfff
lea eax, [esi + ecx]
not ebx
and edi, 0xfffff000
and eax, ebx
lea ecx, [ebp + 0x14]
mov ebp, dword [ecx - 4]
test ebp, ebp
je 0x45adbe
mov edx, dword [ecx]
lea esi, [edx + ebp]
cmp esi, edx
jb 0x45aae8
cmp dword [esp + 0x14], 1
jne 0x45adba
cmp esi, dword [esp + 0x18]
ja 0x45aae8
mov esi, dword [esp + 0x24]
cmp eax, dword [ecx - 8]
jne 0x45aae8
mov edx, dword [ecx - 0xc]
test edx, edx
jne 0x45add0
mov edx, ebp
add edx, eax
cmp edx, eax
jbe 0x45aae8
cmp edx, edi
ja 0x45aae8
lea eax, [edx + esi]
and eax, ebx
add ecx, 0x28
sub dword [esp + 0x14], 1
jne 0x45ad95
cmp eax, edi
ja 0x45aae8
sub edi, eax
cmp edi, esi
jbe 0x45ae2f
mov eax, 0xc000007b
jmp 0x45ae38
lea eax, [ebp + 0xc]
lea esp, [esp]
mov edx, dword [eax]
cmp edx, dword [eax + 8]
jne 0x45aae8
mov edx, dword [eax - 4]
cmp edx, dword [eax + 4]
ja 0x45aae8
add eax, 0x28
sub ecx, 1
jne 0x45ae10
xor eax, eax
jmp 0x45ae38
mov eax, 0xc000012f
mov ecx, dword [esp + 0x1e34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005078c8
add esp, 0x1e28
ret 4