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

Disassembly:
sub esp, 0xe8
mov eax, dword [0x6d6ec0]
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 0x5a34e4
cmp dword [ecx + 4], ebp
mov dword [esp + 0x10], ebp
cmovne ebp, eax
cmp byte [edx + 9], 0
je 0x5a34fc
inc dword [edx + 0xc]
cmp byte [edx + 0xa], 0
jne 0x5a34fc
push edx
call fcn.0056df20
add esp, 4
push 0x58
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00621d30
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 0x5a38c1
shr ecx, 3
push 0
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x90], eax
call fcn.005bcc80
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x5a389b
push dword [esp + 0x88]
push 0
push ebx
call fcn.00621d30
mov dword [esp + 0x30], ebx
push dword [esi + 0x24]
call fcn.00593cc0
add esp, 0x10
mov dword [esp + 0x64], eax
test eax, eax
jne 0x5a35d2
mov dword [esp + 0x34], 7
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x30], eax
jne 0x5a38c1
mov dword [esp + 0x30], 1
jmp 0x5a38c1
mov eax, dword [0x6d4e28]
xor edx, edx
div dword [esi + 0x24]
lea ebx, [eax + 1]
cmp ebx, dword [esp + 0x28]
ja 0x5a35fb
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 0x5a3630
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.0056f3a0
add esp, 0x10
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x10c]
test edx, edx
jne 0x5a36aa
cmp byte [esi + 0x11], 0
je 0x5a3685
xor ecx, ecx
xor edx, edx
test ebp, ebp
jle 0x5a3660
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 0x5a3651
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
bswap eax
cmp ecx, eax
je 0x5a36a6
push eax
push ecx
lea eax, [esp + 0x24]
push str.max_rootpage___u__disagrees_with_header___u_
push eax
call fcn.0056f1e0
add esp, 0x10
jmp 0x5a36a6
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x40]
bswap eax
test eax, eax
je 0x5a36aa
lea eax, [esp + 0x1c]
push str.incremental_vacuum_enabled_with_a_max_rootpage_of_zero
push eax
call fcn.0056f1e0
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 0x5a376f
cmp dword [esp + 0x2c], 0
je 0x5a376f
mov eax, dword [esp + 0x18]
xorps xmm0, xmm0
movlpd qword [esp + 0x6c], xmm0
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x5a372b
cmp byte [esi + 0x11], 0
je 0x5a3703
cmp eax, 1
jbe 0x5a3703
test edx, edx
jne 0x5a3703
push edx
push 1
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0056f5e0
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.0056f6f0
add esp, 0x14
mov eax, 0x9000
test word [edi + 0x10], ax
je 0x5a3749
push dword [esp + 0x70]
push dword [esp + 0x70]
push edi
call fcn.005f0a40
add esp, 0xc
jmp 0x5a375f
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 0x5a36c4
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 0x5a38c1
mov edi, 1
cmp dword [esp + 0x28], edi
jb 0x5a38c1
nop word [eax + eax]
cmp dword [esp + 0x2c], 0
je 0x5a38c1
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 0x5a3827
cmp edi, 2
jae 0x5a37ce
xor ecx, ecx
jmp 0x5a380a
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 [0x6d4e28]
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 0x5a3814
cmp byte [esi + 0x11], 0
jne 0x5a3827
push edi
lea eax, [esp + 0x20]
push str.Page__u:_never_used
push eax
call fcn.0056f1e0
add esp, 0xc
mov eax, dword [esp + 0x24]
test byte [eax + ebp], bl
je 0x5a388e
cmp edi, 2
jae 0x5a3839
xor ecx, ecx
jmp 0x5a386d
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 [0x6d4e28]
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 0x5a388e
cmp byte [esi + 0x11], 0
je 0x5a388e
push edi
lea eax, [esp + 0x20]
push str.Page__u:_pointer_map_referenced
push eax
call fcn.0056f1e0
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x28]
jbe 0x5a37a0
jmp 0x5a38c1
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.00594150
mov esi, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x5a392a
cmp dword [0x6d4c38], 0
je 0x5a3920
mov eax, dword [0x6ecdc0]
test eax, eax
je 0x5a38f1
push eax
call dword [0x6d4c88]
add esp, 4
push esi
call dword [0x6d4c64]
sub dword [0x6ecd58], eax
dec dword [0x6ecd7c]
push esi
call dword [0x6d4c5c]
mov eax, dword [0x6ecdc0]
add esp, 8
test eax, eax
je 0x5a392a
push eax
call dword [0x6d4c90]
jmp 0x5a3927
push esi
call dword [0x6d4c5c]
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 0x5a397f
mov al, byte [esp + 0x51]
test al, 4
je 0x5a3963
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5a395d
push ecx
push dword [esp + 0x40]
call fcn.005a9be0
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 0x5a39b2
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5a39b2
mov eax, dword [esp + 0x4c]
mov byte [eax + ecx], 0
cmp dword [esp + 0x48], 0
jbe 0x5a39ae
test byte [esp + 0x51], 4
jne 0x5a39ae
lea eax, [esp + 0x3c]
push eax
call fcn.005ead60
add esp, 4
mov ecx, eax
jmp 0x5a39b2
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 0x5a39d1
add dword [eax + 0xc], 0xffffffff
jne 0x5a39d1
push eax
call fcn.005ebdb0
add esp, 4
mov ecx, dword [esp + 0xe4]
mov eax, dword [esp + 0x24]
xor ecx, esp
call fcn.0061f478
add esp, 0xe8
ret