Function at 0x5a97d0
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 0x6f9438
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], 4
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], 6
push eax
lea ecx, [esi + 0x18]
call fcn.0051db30
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 7
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], 8
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], 9
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], 0xb
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], 0xc
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 ecx, dword [ebp + 0xc]
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0x30]
mov dword [esi + 0x7c], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x14]
sub ecx, dword [ebp + 8]
sar eax, 4
mov dword [esi + 0x84], eax
mov eax, dword [ebp + 0x24]
sub eax, dword [ebp + 0x20]
sar ecx, 5
mov dword [esi + 0x80], ecx
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
add esi, 0xb4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
xor edi, edi
mov byte [ebp - 4], 0x11
test ecx, ecx
jle 0x5a99be
xor ecx, ecx
mov dword [ebp + 0x2c], ecx
nop dword [eax]
cmp ecx, dword [esi + 8]
je 0x5a99a1
mov dword [ecx], 0
add dword [esi + 4], 4
jmp 0x5a99ad
lea eax, [ebp + 0x2c]
push eax
push ecx
mov ecx, esi
call fcn.004e4690
mov eax, dword [ebp + 0xc]
inc edi
sub eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
sar eax, 5
cmp edi, eax
jl 0x5a9990
mov edi, dword [ebp - 0x14]
mov esi, dword [edi + 0x84]
mov ecx, dword [edi + 0x80]
mov edx, dword [edi + 0x88]
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], 0x12
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], 0
test eax, eax
jle 0x5a9fd6
xor ecx, ecx
mov dword [ebp + 0x2c], ecx
mov eax, dword [edx + ecx]
and eax, 0xffffff8f
mov dword [ebp + 0x30], 0
mov dword [ebp - 0x24], 0
cmp eax, 5
jne 0x5a9a6b
cmp edi, dword [ebp + 0x38]
je 0x5a9a7a
cmp esi, dword [ebp + 0x44]
je 0x5a9a7a
mov edx, dword [edi]
add edi, 4
mov ecx, dword [esi]
add esi, 4
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
jmp 0x5a9a7d
mov edx, dword [ebp + 0x30]
cmp esi, dword [ebp + 0x44]
je 0x5a9a7d
mov ecx, dword [esi]
mov dword [ebp - 0x24], ecx
jmp 0x5a9a7d
mov edx, dword [ebp + 0x30]
push edx
push 0
push eax
lea ecx, [ebp - 0xd]
call fcn.005b2310
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
push dword [ebp - 0x24]
mov dword [ebp + 0x30], eax
mov ecx, dword [ecx + edx]
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 0x5a9acb
mov eax, dword [ebp + 0x30]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x14]
add dword [ecx + 0xa0], 4
jmp 0x5a9ade
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 0x5a9af7
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x5a9b01
lea edx, [ebp - 0x30]
push edx
push eax
call fcn.004c9760
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp + 0x30], edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], edx
mov eax, dword [ecx + 0x9c]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x48], edx
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 4]
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x5a9b63
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 0x5a9b41
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x13
mov ecx, dword [ecx + 0x10]
cmp ecx, dword [ebx + 0x14]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x30], ecx
je 0x5a9cf4
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 0x5a9ceb
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], 0x15
cmp eax, dword [ebp - 0x2c]
je 0x5a9cdb
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 0x5a9cc0
cmp eax, 0x5d1745d
ja 0x5aa115
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 - 0x24], 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], 0x17
cmp ebx, dword [ebp - 0x34]
je 0x5a9cb3
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], 0x18
push eax
lea ecx, [edi + 0x14]
call fcn.005a8d30
lea eax, [ebx + 0x20]
mov byte [ebp - 4], 0x19
push eax
lea ecx, [edi + 0x20]
call fcn.00535dd0
add edi, 0x2c
mov byte [ebp - 4], 0x17
add ebx, 0x2c
mov dword [ebp - 0x58], edi
cmp ebx, esi
jne 0x5a9c60
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x15
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 0x5a9be0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 0x13
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x14]
add dword [ecx + 0x10], 0xc
jmp 0x5a9d04
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 0x5a9d49
mov ecx, 4
mov dword [ebp - 0x18], ecx
mov eax, ecx
mov dword [ebp + 0x30], ecx
jmp 0x5a9d4b
xor eax, eax
test byte [ebp - 0x34], 0x60
je 0x5a9d5a
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 - 0x2c], esi
mov esi, dword [ebp - 0x1c]
jge 0x5a9e3b
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 0x5a9e03
mov esi, dword [ebp + 0x2c]
mov edi, dword [ebp - 0x34]
nop
lea eax, [edi*4]
mov dword [ebp - 0x34], eax
mov eax, dword [edx + esi + 4]
lea edx, [edi*4]
add eax, edx
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 8]
je 0x5a9db9
mov eax, dword [eax]
mov dword [edx], eax
add dword [ebx + 4], 4
jmp 0x5a9dc5
push eax
push edx
mov ecx, ebx
call fcn.0051f6b0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [edx + esi]
and eax, 0xffffff8f
cmp eax, 4
jne 0x5a9dd7
test edi, edi
je 0x5a9ded
mov eax, dword [edx + esi + 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 [edx + esi + 8]
inc edi
sub eax, dword [edx + esi + 4]
sar eax, 2
cmp edi, eax
jl 0x5a9d90
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 0x2c]
cmp dword [edx + eax + 0x10], 0xffffffff
jne 0x5a9e13
add ecx, 4
mov dword [ebp + 0x30], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x4c]
cmp eax, dword [edx + 0x50]
je 0x5a9e29
mov dword [eax], ecx
add dword [edx + 0x4c], 4
jmp 0x5a9faa
lea ecx, [ebp + 0x30]
push ecx
push eax
lea ecx, [edx + 0x48]
call fcn.004e4690
jmp 0x5a9faa
mov edx, dword [ebp - 0x2c]
shl edx, 4
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], edx
mov edx, dword [eax + 8]
sub edx, dword [eax + 4]
mov eax, dword [ebp - 0x2c]
sar edx, 2
sub edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x24], edx
mov dword [ebp + 0x30], eax
test edx, edx
jle 0x5a9ed4
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x2c]
nop word [eax + eax]
shl eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [edi + esi + 4]
add eax, dword [ebp - 0x34]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x5a9e8f
mov eax, dword [eax]
mov dword [edi], eax
add dword [ebx + 4], 4
jmp 0x5a9e9e
push eax
push edi
mov ecx, ebx
call fcn.0051f6b0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov eax, dword [edi + esi]
and eax, 0xffffff8f
cmp eax, 4
jne 0x5a9eb3
mov eax, dword [ebp + 0x30]
test eax, eax
je 0x5a9ec9
mov eax, dword [edi + esi + 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 0x5a9e70
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 0x5a9eed
mov dword [eax], ecx
add dword [esi + 0x4c], 4
jmp 0x5a9efd
lea ecx, [ebp + 0x30]
push ecx
push eax
lea ecx, [esi + 0x48]
call fcn.004e4690
mov edx, dword [ebp - 0x24]
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 [eax + ecx + 8]
sub eax, dword [esi + ecx + 4]
mov esi, dword [ebp - 0x1c]
sar eax, 2
cmp edx, eax
jge 0x5a9f87
mov edi, dword [ebp + 8]
xor esi, esi
nop dword [eax + eax]
mov eax, dword [edi + ecx + 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 0x5a9f57
mov dword [eax], edi
add dword [ebx + 4], 4
jmp 0x5a9f68
push dword [ebp + 0x30]
mov ecx, ebx
push eax
call fcn.0051f6b0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x2c]
mov edi, dword [ebp + 8]
inc edx
mov dword [ebp - 0x24], edx
mov eax, dword [edi + ecx + 8]
sub eax, dword [edi + ecx + 4]
sar eax, 2
cmp edx, eax
jl 0x5a9f30
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 0x5a9f9c
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], 0x12
call fcn.005ab160
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
mov ecx, dword [ebp + 0x2c]
inc dword [ebp - 0x28]
add ecx, 0x20
sar eax, 5
mov dword [ebp + 0x2c], ecx
cmp dword [ebp - 0x28], eax
jl 0x5a9a33
lea ecx, [ebp - 0xd]
call fcn.0047f3e0
lea ecx, [ebp + 8]
call fcn.0051e4d0
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x5aa032
mov ecx, dword [ebp + 0x1c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff0
cmp ecx, 0x1000
jb 0x5aa013
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5aa110
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 0x5aa07e
mov ecx, dword [ebp + 0x28]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x5aa05f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5aa110
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 0x5aa0c6
mov ecx, dword [ebp + 0x3c]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x5aa0a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5aa110
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 0x5aa0f9
mov ecx, dword [ebp + 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x5aa0ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5aa110
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 0x44
call fcn.005c44be
call fcn.00490cd0
int3