Function at 0x5a2bd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe8
mov eax, dword [0x6d5ec0]
xor eax, esp
mov dword [esp + 0xe4], eax
mov edx, dword [esp + 0xf0]
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0xf4]
push ebx
mov ebx, dword [esp + 0xf0]
push ebp
push esi
mov esi, dword [edx + 4]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x7c], eax
mov eax, dword [esi + 4]
push edi
mov edi, dword [esp + 0x108]
mov dword [esp + 0x84], edx
mov ebp, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
lea ebp, [eax + 1]
mov dword [esp + 0x10], eax
cmp dword [ecx], eax
jne 0x5a2c54
cmp dword [ecx + 4], ebp
mov dword [esp + 0x10], ebp
cmovne ebp, eax
cmp byte [edx + 9], 0
je 0x5a2c6c
inc dword [edx + 0xc]
cmp byte [edx + 0xa], 0
jne 0x5a2c6c
push edx
call fcn.0056d650
add esp, 4
push 0x58
lea eax, [esp + 0x20]
push 0
push eax
call fcn.006213c0
mov dword [esp + 0x74], ebx
add esp, 0xc
mov dword [esp + 0x1c], esi
mov eax, dword [esi]
mov dword [esp + 0x20], eax
mov ecx, dword [esi + 0x30]
mov eax, dword [esp + 0x110]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x90]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0x64
mov dword [esp + 0x58], 0x3b9aca00
mov dword [esp + 0x5c], 0
mov word [esp + 0x60], 0x100
test ecx, ecx
je 0x5a3031
shr ecx, 3
push 0
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x90], eax
call fcn.005bc3f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5a300b
push dword [esp + 0x88]
push 0
push ebx
call fcn.006213c0
mov dword [esp + 0x30], ebx
push dword [esi + 0x24]
call fcn.005933e0
add esp, 0x10
mov dword [esp + 0x64], eax
test eax, eax
jne 0x5a2d42
mov dword [esp + 0x34], 7
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x30], eax
jne 0x5a3031
mov dword [esp + 0x30], 1
jmp 0x5a3031
mov eax, dword [0x6d3e28]
xor edx, edx
div dword [esi + 0x24]
lea ebx, [eax + 1]
cmp ebx, dword [esp + 0x28]
ja 0x5a2d6b
mov ecx, dword [esp + 0x24]
mov edx, ebx
shr edx, 3
and ebx, 7
movzx eax, byte [edx + ecx]
bts eax, ebx
mov byte [edx + ecx], al
test ebp, ebp
je 0x5a2da0
mov dword [esp + 0x3c], str.Freelist:
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx + 0x24]
bswap eax
push eax
mov eax, dword [ecx + 0x20]
bswap eax
push eax
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0056ead0
add esp, 0x10
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x10c]
test edx, edx
jne 0x5a2e1a
cmp byte [esi + 0x11], 0
je 0x5a2df5
xor ecx, ecx
xor edx, edx
test ebp, ebp
jle 0x5a2dd0
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + edx*4]
cmp ecx, eax
cmovae eax, ecx
inc edx
mov ecx, eax
cmp edx, ebp
jl 0x5a2dc1
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
bswap eax
cmp ecx, eax
je 0x5a2e16
push eax
push ecx
lea eax, [esp + 0x24]
push str.max_rootpage___u__disagrees_with_header___u_
push eax
call fcn.0056e910
add esp, 0x10
jmp 0x5a2e16
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x40]
bswap eax
test eax, eax
je 0x5a2e1a
lea eax, [esp + 0x1c]
push str.incremental_vacuum_enabled_with_a_max_rootpage_of_zero
push eax
call fcn.0056e910
add esp, 8
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 4]
xor ebx, ebx
and dword [ecx + 0x20], 0xffdfffff
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x24], eax
test ebp, ebp
jle 0x5a2edf
cmp dword [esp + 0x2c], 0
je 0x5a2edf
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x6c], xmm0
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x5a2e9b
cmp byte [esi + 0x11], 0
je 0x5a2e73
cmp eax, 1
jbe 0x5a2e73
test edx, edx
jne 0x5a2e73
push edx
push 1
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0056ed10
add esp, 0x10
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x88]
push SysReAllocString
push 0xffffffffffffffff
push ecx
mov eax, dword [eax + ebx*4]
push eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x2c]
push eax
call fcn.0056ee20
add esp, 0x14
mov eax, 0x9000
test word [edi + 0x10], ax
je 0x5a2eb9
push dword [esp + 0x70]
push dword [esp + 0x70]
push edi
call fcn.005f01b0
add esp, 0xc
jmp 0x5a2ecf
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [edi], eax
mov eax, 4
mov dword [edi + 4], ecx
mov word [edi + 0x10], ax
mov edx, dword [esp + 0x10]
inc ebx
add edi, 0x28
cmp ebx, ebp
jl 0x5a2e34
cmp dword [esp + 0x10], 0
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x24], ecx
jne 0x5a3031
mov edi, 1
cmp dword [esp + 0x28], edi
jb 0x5a3031
nop word [eax + eax]
cmp dword [esp + 0x2c], 0
je 0x5a3031
mov eax, dword [esp + 0x24]
mov ebp, edi
mov ecx, edi
shr ebp, 3
and ecx, 7
mov ebx, 1
shl ebx, cl
test byte [eax + ebp], bl
jne 0x5a2f97
cmp edi, 2
jae 0x5a2f3e
xor ecx, ecx
jmp 0x5a2f7a
mov ecx, dword [esp + 0x14]
lea esi, [edi - 2]
mov eax, 0xcccccccd
mul dword [ecx + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [0x6d3e28]
sub esi, edx
xor edx, edx
div dword [ecx + 0x24]
xor ecx, ecx
dec eax
cmp esi, eax
sete cl
add esi, 2
add ecx, esi
mov esi, dword [esp + 0x14]
cmp ecx, edi
jne 0x5a2f84
cmp byte [esi + 0x11], 0
jne 0x5a2f97
push edi
lea eax, [esp + 0x20]
push str.Page__u:_never_used
push eax
call fcn.0056e910
add esp, 0xc
mov eax, dword [esp + 0x24]
test byte [eax + ebp], bl
je 0x5a2ffe
cmp edi, 2
jae 0x5a2fa9
xor ecx, ecx
jmp 0x5a2fdd
mov ebx, dword [esp + 0x14]
lea esi, [edi - 2]
mov eax, 0xcccccccd
mul dword [ebx + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x6d3e28]
xor ecx, ecx
sub esi, edx
xor edx, edx
div dword [ebx + 0x24]
dec eax
cmp esi, eax
sete cl
add ecx, 2
add ecx, esi
mov esi, dword [esp + 0x14]
cmp ecx, edi
jne 0x5a2ffe
cmp byte [esi + 0x11], 0
je 0x5a2ffe
push edi
lea eax, [esp + 0x20]
push str.Page__u:_pointer_map_referenced
push eax
call fcn.0056e910
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x28]
jbe 0x5a2f10
jmp 0x5a3031
mov eax, dword [esp + 0x30]
mov ecx, 1
test eax, eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], 7
cmove eax, ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
push dword [esp + 0x64]
call fcn.00593870
mov esi, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x5a309a
cmp dword [0x6d3c38], 0
je 0x5a3090
mov eax, dword [0x6ebdc0]
test eax, eax
je 0x5a3061
push eax
call dword [0x6d3c88]
add esp, 4
push esi
call dword [0x6d3c64]
sub dword [0x6ebd58], eax
dec dword [0x6ebd7c]
push esi
call dword [0x6d3c5c]
mov eax, dword [0x6ebdc0]
add esp, 8
test eax, eax
je 0x5a309a
push eax
call dword [0x6d3c90]
jmp 0x5a3097
push esi
call dword [0x6d3c5c]
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x30]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
pop ebx
test eax, eax
jne 0x5a30ef
mov al, byte [esp + 0x51]
test al, 4
je 0x5a30d3
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5a30cd
push ecx
push dword [esp + 0x40]
call fcn.005a9350
mov al, byte [esp + 0x59]
add esp, 8
and al, 0xfb
mov byte [esp + 0x51], al
mov dword [esp + 0x44], 0
xor ecx, ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x40], 0
jmp 0x5a3122
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5a3122
mov eax, dword [esp + 0x4c]
mov byte [eax + ecx], 0
cmp dword [esp + 0x48], 0
jbe 0x5a311e
test byte [esp + 0x51], 4
jne 0x5a311e
lea eax, [esp + 0x3c]
push eax
call fcn.005ea4c0
add esp, 4
mov ecx, eax
jmp 0x5a3122
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x70]
mov dword [eax], ecx
mov eax, dword [esp + 0x74]
cmp byte [eax + 9], 0
je 0x5a3141
add dword [eax + 0xc], 0xffffffff
jne 0x5a3141
push eax
call fcn.005eb510
add esp, 4
mov ecx, dword [esp + 0xe4]
mov eax, dword [esp + 0x24]
xor ecx, esp
call fcn.0061eb08
add esp, 0xe8
ret