Function at 0x578b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
push edi
imul esi, esi, 0x218
push 0x48c5
call fcn.00049640
push 0x48cb
mov dword [ebp - 0x10], eax
call fcn.00049640
push 0x48c8
mov dword [ebp - 0x14], eax
call fcn.00049640
push 0x27
mov dword [ebp - 0x1c], eax
call fcn.00049640
push 3
mov ebx, eax
call fcn.00049640
mov ecx, eax
push 2
mov dword [ebp - 0xc], ecx
call fcn.00049640
mov edx, eax
push 0x48c2
mov dword [ebp - 0x2c], edx
call fcn.00049640
mov edi, eax
push 0x4982
mov dword [ebp - 0x18], edi
call fcn.00049640
push 0x4985
mov dword [ebp - 0x20], eax
call fcn.00049640
push 0x4988
mov dword [ebp - 0x24], eax
call fcn.00049640
push 0x498b
mov dword [ebp - 0x28], eax
call fcn.00049640
push 0x498e
mov dword [ebp - 0x34], eax
call fcn.00049640
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x57ccb
test edx, edx
je 0x57ccb
test edi, edi
je 0x57ccb
lea ecx, [esi + 0x21c]
cmp ecx, dword [ebp + 0xc]
jae 0x57ccb
cmp dword [ebp - 0x10], 0
je 0x57ccb
cmp dword [ebp - 0x14], 0
je 0x57ccb
cmp dword [ebp - 0x1c], 0
je 0x57ccb
test ebx, ebx
je 0x57ccb
cmp dword [ebp - 0x20], 0
je 0x57ccb
cmp dword [ebp - 0x24], 0
je 0x57ccb
cmp dword [ebp - 0x28], 0
je 0x57ccb
cmp dword [ebp - 0x34], 0
je 0x57ccb
test eax, eax
je 0x57ccb
push 0x2c
lea ecx, [ebp - 0x84]
push 0
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
call dword [sym.imp.ntoskrnl.exe_KeGetCurrentThread]
push 7
mov edi, eax
call fcn.00088910
mov dl, byte [edi + ebx]
push 0
mov byte [ebp - 0x30], al
push 0x2c
lea eax, [ebp - 0x84]
push eax
push 0
mov byte [ebp - 1], dl
mov byte [edi + ebx], 0
call dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov cl, byte [ebp - 1]
push edx
push 7
mov byte [edi + ebx], cl
call fcn.00088aa0
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
cmp ecx, eax
jbe 0x57a3b
mov ecx, eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x2c]
imul ecx
add edi, dword [ebp - 0xc]
push 6
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
and edi, 0xfffff000
call fcn.00088910
push 0x10
mov byte [ebp - 0x4c], al
call fcn.00088910
push 0x11
mov byte [ebp - 0x48], al
call fcn.00088910
push 0x20
mov byte [ebp - 0x44], al
call fcn.00088910
mov byte [ebp - 0x40], al
cmp edi, 0xffff0000
ja 0x57c9f
mov edx, dword [ebp + 8]
lea eax, [esi + 0x21c]
mov dword [ebp - 0x30], eax
lea eax, [esi + edx + 0x14]
mov dword [ebp - 0xc], eax
lea esp, [esp]
push edi
call dword [ebp - 0x18]
cmp al, 1
jne 0x57c8d
mov ecx, edi
call fcn.0008bc00
cmp al, 1
jne 0x57c8d
push edi
call dword [ebp - 0x14]
mov esi, eax
mov ebx, edx
test esi, esi
jne 0x57acf
test ebx, ebx
je 0x57c8d
cmp ebx, dword [ebp - 0x54]
jg 0x57c8d
jl 0x57ae3
cmp esi, dword [ebp - 0x58]
jae 0x57c8d
mov ecx, dword [ebp - 0x18]
push ebx
push esi
push ecx
call fcn.00064560
cmp al, 1
jne 0x57c8d
push ebx
push esi
call dword [ebp - 0x1c]
cmp edi, eax
jne 0x57c8d
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
push edx
push edi
call fcn.000577c0
test al, al
jne 0x57b1d
lea eax, [ebp - 0x10]
push eax
call fcn.00057830
cmp al, 1
jne 0x57b42
mov eax, dword [ebp - 0x10]
cmp eax, edi
jbe 0x57c8d
cmp eax, 0xffff0000
jb 0x57b3b
mov eax, 0xffff0000
mov dword [ebp - 0x10], eax
mov edi, eax
jmp 0x57c93
push 0
push 0
push 0
push 0x1000
push edi
call dword [ebp - 0x20]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x57c8d
push esi
call dword [ebp - 0x24]
push 0x10
push 0
push 0
push 1
push 0
push esi
call dword [ebp - 0x28]
test eax, eax
je 0x57c89
mov ecx, 0x5a4d
cmp cx, word [eax]
jne 0x57c81
mov ecx, dword [eax + 0x3c]
cmp ecx, 0xffc
jae 0x57c81
lea esi, [ecx + 0x18]
cmp esi, 0x1000
jae 0x57c81
cmp dword [ecx + eax], 0x4550
jne 0x57c81
movzx edx, word [ecx + eax + 0x14]
movzx ebx, word [ecx + eax + 6]
add esi, edx
mov dword [ebp - 8], esi
mov esi, 0x1000
cmp dx, si
jae 0x57c81
mov edx, dword [ebp - 8]
cmp edx, esi
jae 0x57c81
cmp ebx, 0x50
jae 0x57c81
mov esi, 1
cmp si, word [ecx + eax + 0x5c]
jne 0x57c81
lea esi, [ebx + ebx*4]
lea esi, [edx + esi*8]
cmp esi, 0x1000
jae 0x57c81
mov dword [ebp - 8], 0
test ebx, ebx
je 0x57c45
lea edx, [edx + eax + 0xc]
test dword [edx + 0x18], 0x8000000
je 0x57c30
mov ecx, dword [edx]
mov esi, dword [edx - 4]
add ecx, eax
add esi, ecx
cmp esi, ecx
ja 0x57c3d
mov ecx, dword [eax + 0x3c]
lea esp, [esp]
inc dword [ebp - 8]
add edx, 0x28
cmp dword [ebp - 8], ebx
jb 0x57c13
jmp 0x57c45
cmp dword [ebp - 8], ebx
jb 0x57c81
mov ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 0xc]
mov byte [edx - 0x10], 1
mov dword [edx - 4], 0
mov dword [edx], edi
mov ecx, dword [ecx + eax + 0x50]
mov dword [edx + 4], ecx
xor ecx, ecx
mov word [edx + 8], cx
mov ecx, dword [ebp - 0x30]
add edx, 0x218
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
inc dword [edx]
add ecx, 0x218
mov dword [ebp - 0x30], ecx
cmp ecx, dword [ebp + 0xc]
jae 0x57c9f
mov esi, dword [ebp - 0x38]
push esi
push eax
call dword [ebp - 0x34]
push esi
call dword [ebp - 0x3c]
add edi, 0x1000
cmp edi, 0xffff0000
jbe 0x57aa0
mov edx, dword [ebp - 0x40]
push edx
push 0x20
call fcn.00088aa0
mov eax, dword [ebp - 0x44]
push eax
push 0x11
call fcn.00088aa0
mov ecx, dword [ebp - 0x48]
push ecx
push 0x10
call fcn.00088aa0
mov edx, dword [ebp - 0x4c]
push edx
push 6
call fcn.00088aa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8