Function at 0x4431f4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x49dd48]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, 0x3000
mov dword [ebp - 0x58], ebx
push esi
inc eax
push eax
call fcn.00478d6e
mov dword [ebp - 0x54], eax
test eax, eax
je 0x443633
push edi
push esi
push 0
push eax
call sub.ntoskrnl.exe_memset
imul eax, dword [ebx], 0x218
add esp, 0xc
push 0x4b08
mov dword [ebp - 0x34], eax
add eax, 0x21c
mov dword [ebp - 0x50], eax
call fcn.004355f2
mov ebx, eax
push 0x4b0e
mov dword [ebp - 0x48], ebx
call fcn.004355f2
push 0x4b0b
mov dword [ebp - 0x60], eax
call fcn.004355f2
push 0x27
mov dword [ebp - 0x64], eax
call fcn.004355f2
push 3
mov edi, eax
call fcn.004355f2
push 2
mov dword [ebp - 0x40], eax
call fcn.004355f2
mov esi, eax
push 0x4b05
mov dword [ebp - 0x38], esi
call fcn.004355f2
cmp dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
je 0x44362a
test esi, esi
je 0x44362a
test eax, eax
je 0x44362a
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + 0xc]
jae 0x44362a
test ebx, ebx
je 0x44362a
cmp dword [ebp - 0x60], 0
je 0x44362a
cmp dword [ebp - 0x64], 0
je 0x44362a
cmp edi, 0xffffffff
je 0x44362a
push 0x2c
lea eax, [ebp - 0x30]
push 0
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
call dword [sym.imp.ntoskrnl.exe_KeGetCurrentThread]
push 7
mov esi, eax
call fcn.00477546
mov bl, byte [esi + edi]
xor ecx, ecx
push ecx
mov byte [ebp - 0x4c], al
lea eax, [ebp - 0x30]
push 0x2c
push eax
push ecx
mov byte [esi + edi], cl
call dword [ebp - 0x48]
push dword [ebp - 0x4c]
mov byte [esi + edi], bl
push 7
call fcn.0047769a
push 0x914
call fcn.004355f2
cmp eax, 0x55f0
jae 0x44334f
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x1c]
jbe 0x443348
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x28]
imul ecx
jmp 0x443355
mov eax, dword [ebp - 0x28]
imul dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x38]
add ebx, dword [ebp - 0x40]
and ebx, 0xfffff000
mov dword [ebp - 0x68], edx
push 6
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x38], ebx
call fcn.00477546
push 0x10
mov byte [ebp - 0x7c], al
call fcn.00477546
push 0x11
mov byte [ebp - 0x74], al
call fcn.00477546
push 0x20
mov byte [ebp - 0x70], al
call fcn.00477546
mov byte [ebp - 0x78], al
cmp ebx, 0xffff0000
ja 0x443602
mov eax, dword [ebp - 0x34]
add eax, 0x14
mov dword [ebp - 0x80], 0x1000
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov esi, dword [ebp - 0x44]
push ebx
call esi
xor ecx, ecx
inc ecx
cmp al, cl
jne 0x4435ec
push 0
push ebx
call fcn.00478b72
cmp al, 1
jne 0x4435ec
push ebx
call dword [ebp - 0x60]
mov edi, eax
mov esi, edx
test edi, edi
jne 0x4433e6
test esi, esi
je 0x4435ec
cmp esi, dword [ebp - 0x68]
jg 0x4435ec
jl 0x4433fa
cmp edi, dword [ebp - 0x5c]
jae 0x4435ec
push esi
push edi
push dword [ebp - 0x44]
call fcn.00479478
cmp al, 1
jne 0x4435ec
push esi
push edi
push ebx
push dword [ebp - 0x64]
call fcn.00478b44
cmp al, 1
jne 0x4435ec
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x58]
push ebx
call fcn.00443cea
test al, al
jne 0x44343d
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.00443c8c
cmp al, 1
jne 0x443464
mov eax, dword [ebp - 0x40]
cmp eax, ebx
jbe 0x4435ec
mov ebx, 0xffff0000
cmp eax, ebx
jb 0x44345a
mov eax, ebx
mov dword [ebp - 0x40], eax
mov ebx, eax
mov dword [ebp - 0x38], eax
jmp 0x4435f6
mov esi, dword [ebp - 0x44]
push ebx
call esi
cmp al, 1
jne 0x4435ec
lea eax, [ebx + 0xfff]
push eax
call esi
cmp al, 1
jne 0x4435ec
mov edi, dword [ebp - 0x54]
mov eax, 0x1000
push eax
push ebx
push edi
call sub.ntoskrnl.exe_memcpy
mov eax, 0x5a4d
add esp, 0xc
cmp ax, word [edi]
jne 0x4435ec
mov esi, dword [edi + 0x3c]
mov dword [ebp - 0x6c], esi
cmp esi, 0xffc
jae 0x4435ec
lea edx, [esi + 0x18]
mov eax, 0x1000
cmp edx, eax
jae 0x4435ec
cmp dword [esi + edi], 0x4550
jne 0x4435ec
movzx ecx, word [esi + edi + 0x14]
movzx eax, word [esi + edi + 6]
add edx, ecx
mov dword [ebp - 0x34], eax
cmp cx, word [ebp - 0x80]
jae 0x4435ec
mov ecx, 0x1000
cmp edx, ecx
jae 0x4435ec
cmp eax, 0x50
jae 0x4435ec
xor ecx, ecx
inc ecx
cmp cx, word [esi + edi + 0x5c]
jne 0x4435ec
imul eax, eax, 0x28
mov ecx, 0x1000
add eax, edx
cmp eax, ecx
jae 0x4435ec
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x34], eax
jbe 0x4435b4
mov esi, dword [ebp - 0x34]
add edx, 0xc
mov ebx, dword [ebp - 0x44]
add edx, edi
mov dword [ebp - 0x4c], edx
test dword [edx + 0x18], 0x8000000
je 0x443596
mov esi, dword [edx]
mov ecx, dword [edx - 4]
add esi, edi
add ecx, esi
mov dword [ebp - 0x84], ecx
cmp ecx, esi
jbe 0x4435a9
mov eax, dword [sym.imp.ntoskrnl.exe_MmSystemRangeStart]
mov eax, dword [eax]
cmp esi, eax
jb 0x4435a6
cmp ecx, eax
jb 0x4435a6
cmp esi, ecx
jae 0x443590
mov edi, ecx
push esi
call ebx
test al, al
je 0x443581
mov eax, 0x1000
add esi, eax
cmp esi, edi
jb 0x44356f
mov eax, dword [ebp - 0x3c]
cmp esi, edi
mov edi, dword [ebp - 0x54]
jb 0x4435a9
mov edx, dword [ebp - 0x4c]
jmp 0x443593
mov eax, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x34]
inc eax
add edx, 0x28
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], edx
cmp eax, esi
jb 0x44353e
jmp 0x4435a9
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x34]
jb 0x4435ec
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x48]
xor eax, eax
inc eax
and dword [ecx - 4], 0
mov byte [ecx - 0x10], al
mov dword [ecx], ebx
mov eax, dword [esi + edi + 0x50]
mov edi, 0x218
mov dword [ecx + 4], eax
xor eax, eax
mov word [ecx + 8], ax
add ecx, edi
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x50]
add ecx, edi
inc dword [eax]
mov dword [ebp - 0x50], ecx
cmp ecx, dword [ebp + 0xc]
jae 0x443602
mov edx, 0x1000
add ebx, edx
mov dword [ebp - 0x38], ebx
cmp ebx, 0xffff0000
jbe 0x4433b1
push dword [ebp - 0x78]
push 0x20
call fcn.0047769a
push dword [ebp - 0x70]
push 0x11
call fcn.0047769a
push dword [ebp - 0x74]
push 0x10
call fcn.0047769a
push dword [ebp - 0x7c]
push 6
call fcn.0047769a
push dword [ebp - 0x54]
call fcn.00478d8c
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00489f30
mov esp, ebp
pop ebp
ret 8