Function at 0x5a8e20
Capabilities:
Access peb ldr_data
Check os version
Get kernel32 base address
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6f9310
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, dword [0x7ce4e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0xff0
mov dword [ebp - 4], 5
call fcn.0058d8a0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea eax, [ebp + 8]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x18]
call fcn.0051db30
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x24]
call fcn.0051da70
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0xe]
sub eax, dword [ebp + 8]
push ecx
sar eax, 5
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 9
call fcn.004eb150
mov eax, dword [ebp + 0x24]
lea ecx, [ebp - 0xe]
sub eax, dword [ebp + 0x20]
push ecx
sar eax, 2
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 0xa
call fcn.004eb150
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0xe]
sub eax, dword [ebp + 0x14]
push ecx
sar eax, 4
lea ecx, [esi + 0x54]
push eax
mov byte [ebp - 4], 0xc
call fcn.004eb150
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0xe]
sub eax, dword [ebp + 0x14]
lea ecx, [esi + 0x60]
sar eax, 4
push edx
push eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x3c], ecx
call fcn.004eb150
lea ebx, [esi + 0x6c]
mov dword [ebx], 0
mov dword [ebp - 0x38], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
sar eax, 5
mov dword [esi + 0x80], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x14]
sar eax, 4
mov dword [esi + 0x84], eax
mov eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x20]
sar eax, 2
mov dword [esi + 0x88], eax
mov byte [esi + 0x90], 1
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov edi, dword [ebp + 0x50]
add esi, 0xb4
sub edi, dword [ebp + 0x4c]
sar edi, 2
mov byte [ebp - 4], 0x11
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
test edi, edi
je 0x5a9023
cmp edi, 0x3fffffff
ja 0x5a97bc
push edi
mov ecx, esi
call fcn.004cdf10
mov dword [esi], eax
mov dword [esi + 4], eax
lea eax, [eax + edi*4]
mov dword [esi + 8], eax
mov edi, dword [esi]
mov esi, dword [ebp + 0x50]
mov eax, dword [ebp + 0x4c]
sub esi, eax
push esi
push eax
push edi
call fcn.005c0660
add esp, 0xc
sar esi, 2
lea eax, [edi + esi*4]
mov edi, dword [ebp - 0x14]
mov dword [edi + 0xb8], eax
jmp 0x5a9026
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 0x84]
mov ecx, dword [edi + 0x80]
mov edx, dword [edi + 0x88]
mov byte [ebp - 4], 0x12
lea eax, [esi + 2]
add eax, ecx
add eax, edx
lea eax, [eax + eax*2]
shl eax, 2
mov dword [edi + 0x8c], eax
lea eax, [ecx + edx]
lea eax, [eax + ecx*4]
lea eax, [eax + esi*4]
lea eax, [eax*4 + 0xc]
lea ecx, [ebp - 0xd]
mov dword [edi + 0x94], eax
call fcn.00482d60
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
mov edi, dword [ebp + 0x34]
mov esi, dword [ebp + 0x40]
sar eax, 5
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x24], 0
test eax, eax
jle 0x5a9636
xor ecx, ecx
mov dword [ebp + 0x2c], ecx
nop dword [eax]
mov ecx, dword [ecx + edx]
xor eax, eax
and ecx, 0xffffff8f
mov dword [ebp + 0x30], eax
mov dword [ebp - 0x28], eax
cmp ecx, 5
jne 0x5a90d2
cmp edi, dword [ebp + 0x38]
je 0x5a90df
cmp esi, dword [ebp + 0x44]
je 0x5a90df
mov eax, dword [edi]
add edi, 4
mov dword [ebp + 0x30], eax
mov eax, dword [esi]
add esi, 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
jmp 0x5a90d9
cmp esi, dword [ebp + 0x44]
je 0x5a90df
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x4c]
push dword [eax + edx*4]
push ecx
lea ecx, [ebp - 0xd]
call fcn.005b2310
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
push dword [ebp - 0x28]
mov dword [ebp + 0x30], eax
mov ecx, dword [edx + ecx]
and ecx, 0xffffff8f
push ecx
lea ecx, [ebp - 0xd]
call fcn.005b2160
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov ecx, dword [eax + 0xa0]
cmp ecx, dword [eax + 0xa4]
je 0x5a9134
mov eax, dword [ebp + 0x30]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
add dword [ecx + 0xa0], 4
jmp 0x5a9147
lea edx, [ebp + 0x30]
push edx
push ecx
lea ecx, [eax + 0x9c]
call fcn.004c9760
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
add ecx, 0xa8
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x5a9160
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x5a916a
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.004c9760
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x9c]
lea ecx, [edx*4]
xor edx, edx
mov dword [ebp + 0x30], edx
mov dword [ebp - 0x50], edx
mov eax, dword [eax + ecx]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x48], edx
mov ecx, dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x5a91d3
push ecx
lea ecx, [ebp - 0x50]
call fcn.005ab050
mov edx, dword [ebp - 0x50]
mov eax, edx
mov ecx, dword [ebp - 0x34]
mov dword [ebp + 0x30], edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
add eax, 0xc
sub ecx, 1
jne 0x5a91b1
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x14
mov ecx, dword [ecx + 0x10]
cmp ecx, dword [ebx + 0x14]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
je 0x5a9364
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov ecx, eax
sub ecx, edx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5a935b
mov ecx, dword [ebp - 0x30]
push eax
call fcn.005ab050
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [eax]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x30]
mov byte [ebp - 4], 0x16
cmp eax, dword [ebp - 0x2c]
je 0x5a934b
nop word [eax + eax]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x34], eax
je 0x5a9330
cmp eax, 0x5d1745d
ja 0x5a97c6
push eax
mov ecx, ebx
call fcn.005ab1e0
imul ecx, dword [ebp - 0x34], 0x2c
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x44], ebx
add ecx, eax
mov dword [ebx + 8], ecx
mov edx, dword [ebp + 0x30]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov ecx, dword [edx + 4]
mov ebx, dword [edx]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x54], ecx
mov byte [ebp - 4], 0x18
cmp ebx, dword [ebp - 0x34]
je 0x5a9323
mov esi, dword [ebp - 0x34]
mov edi, eax
nop
mov eax, dword [ebx]
lea ecx, [edi + 8]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
lea eax, [ebx + 8]
push eax
mov dword [ebp - 0x34], edi
call fcn.004d29b0
lea eax, [ebx + 0x14]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [edi + 0x14]
call fcn.005a8d30
lea eax, [ebx + 0x20]
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [edi + 0x20]
call fcn.00535dd0
add edi, 0x2c
mov byte [ebp - 4], 0x18
add ebx, 0x2c
mov dword [ebp - 0x58], edi
cmp ebx, esi
jne 0x5a92d0
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x16
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x30]
add ebx, 0xc
add eax, 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp + 0x30], eax
cmp eax, dword [ebp - 0x2c]
jne 0x5a9250
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 0x14
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
add dword [ecx + 0x10], 0xc
jmp 0x5a9374
lea eax, [ebp - 0x50]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx + 0xc]
call fcn.005a8a80
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 8]
add ecx, edx
mov dword [ebp - 0x30], ecx
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x14]
sar eax, 2
add eax, eax
add dword [ecx + 0x94], eax
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x30], ecx
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
shr eax, 4
test al, 1
je 0x5a93b9
mov ecx, 4
mov dword [ebp - 0x18], ecx
mov eax, ecx
mov dword [ebp + 0x30], ecx
jmp 0x5a93bb
xor eax, eax
test byte [ebp - 0x34], 0x60
je 0x5a93ca
lea ecx, [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x30], ecx
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x10]
test esi, esi
mov dword [ebp - 0x34], esi
mov esi, dword [ebp - 0x1c]
jge 0x5a94ab
mov edi, dword [ebp - 0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 0x34], 0
sub eax, dword [edi + 4]
mov edi, dword [ebp - 0x20]
sar eax, 2
test eax, eax
jle 0x5a9473
mov esi, dword [ebp + 0x2c]
mov edi, dword [ebp - 0x34]
nop
lea eax, [edi*4]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + edx + 4]
lea edx, [edi*4]
add eax, edx
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 8]
je 0x5a9429
mov eax, dword [eax]
mov dword [edx], eax
add dword [ebx + 4], 4
jmp 0x5a9435
push eax
push edx
mov ecx, ebx
call fcn.0051f6b0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [esi + edx]
and eax, 0xffffff8f
cmp eax, 4
jne 0x5a9447
test edi, edi
je 0x5a945d
mov eax, dword [esi + edx + 4]
add eax, dword [ebp - 0x34]
mov eax, dword [eax]
add ecx, dword [eax*4 + 0x7108b8]
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x30], ecx
mov eax, dword [esi + edx + 8]
inc edi
sub eax, dword [esi + edx + 4]
sar eax, 2
cmp edi, eax
jl 0x5a9400
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x2c]
cmp dword [eax + edx + 0x10], 0xffffffff
jne 0x5a9483
add ecx, 4
mov dword [ebp + 0x30], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x4c]
cmp eax, dword [edx + 0x50]
je 0x5a9499
mov dword [eax], ecx
add dword [edx + 0x4c], 4
jmp 0x5a960a
lea ecx, [ebp + 0x30]
push ecx
push eax
lea ecx, [edx + 0x48]
call fcn.004e4690
jmp 0x5a960a
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
mov eax, dword [ebp - 0x34]
shl eax, 4
add eax, dword [ebp + 0x14]
sar edx, 2
sub edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x28], edx
mov dword [ebp + 0x30], eax
test edx, edx
jle 0x5a9535
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x2c]
shl eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [esi + edi + 4]
add eax, dword [ebp - 0x34]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x5a94f0
mov eax, dword [eax]
mov dword [edi], eax
add dword [ebx + 4], 4
jmp 0x5a94ff
push eax
push edi
mov ecx, ebx
call fcn.0051f6b0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
mov eax, dword [esi + edi]
and eax, 0xffffff8f
cmp eax, 4
jne 0x5a9514
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x5a952a
mov eax, dword [esi + edi + 4]
add eax, dword [ebp - 0x34]
mov eax, dword [eax]
add ecx, dword [eax*4 + 0x7108b8]
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x18], ecx
inc eax
mov dword [ebp + 0x30], eax
cmp eax, edx
jl 0x5a94d1
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp + 0x30], ecx
mov eax, dword [esi + 0x4c]
cmp eax, dword [esi + 0x50]
je 0x5a954e
mov dword [eax], ecx
add dword [esi + 0x4c], 4
jmp 0x5a955e
lea ecx, [ebp + 0x30]
push ecx
push eax
lea ecx, [esi + 0x48]
call fcn.004e4690
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x30], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ecx + eax + 8]
sub eax, dword [ecx + esi + 4]
mov esi, dword [ebp - 0x1c]
sar eax, 2
cmp edx, eax
jge 0x5a95e7
mov edi, dword [ebp + 8]
xor esi, esi
nop dword [eax]
mov eax, dword [ecx + edi + 4]
mov edi, dword [eax + edx*4]
lea eax, [eax + edx*4]
add esi, dword [edi*4 + 0x7108b8]
mov dword [ebp + 0x30], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x34], esi
cmp eax, dword [ebx + 8]
je 0x5a95b7
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x5a95c8
push dword [ebp + 0x30]
mov ecx, ebx
push eax
call fcn.0051f6b0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp + 0x2c]
mov edi, dword [ebp + 8]
inc edx
mov dword [ebp - 0x28], edx
mov eax, dword [ecx + edi + 8]
sub eax, dword [ecx + edi + 4]
sar eax, 2
cmp edx, eax
jl 0x5a9590
mov edi, dword [ebp - 0x20]
mov dword [ebp + 0x30], esi
mov esi, dword [ebp - 0x1c]
add ecx, dword [ebp + 8]
mov eax, dword [ecx]
shr eax, 6
test al, 1
jne 0x5a95fc
mov eax, dword [ebp - 0x34]
add eax, 4
mov dword [ebp + 0x30], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ebp + 0x30]
mov eax, dword [eax]
mov dword [eax + ecx*4], edx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x13
call fcn.005ab160
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
mov ecx, dword [ebp + 0x2c]
inc dword [ebp - 0x24]
add ecx, 0x20
sar eax, 5
mov dword [ebp + 0x2c], ecx
cmp dword [ebp - 0x24], eax
jl 0x5a90a0
lea ecx, [ebp - 0xd]
call fcn.0047f3e0
lea ecx, [ebp + 8]
call fcn.0051e4d0
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x5a9692
mov ecx, dword [ebp + 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x5a9673
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a97c1
push ecx
push edx
call fcn.005be247
add esp, 8
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x5a96de
mov ecx, dword [ebp + 0x28]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x5a96bf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a97c1
push ecx
push edx
call fcn.005be247
add esp, 8
mov dword [ebp + 0x20], 0
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov edx, dword [ebp + 0x34]
test edx, edx
je 0x5a972a
mov ecx, dword [ebp + 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x5a970b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a97c1
push ecx
push edx
call fcn.005be247
add esp, 8
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov edx, dword [ebp + 0x40]
test edx, edx
je 0x5a9772
mov ecx, dword [ebp + 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x5a9753
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a97c1
push ecx
push edx
call fcn.005be247
add esp, 8
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
mov edx, dword [ebp + 0x4c]
test edx, edx
je 0x5a97a5
mov ecx, dword [ebp + 0x54]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x5a979b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5a97c1
push ecx
push edx
call fcn.005be247
add esp, 8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x50
call fcn.00490cd0
call fcn.005c44be
call fcn.00490cd0
int3