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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x571134]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xf4]
mov ecx, dword [esp + 0xe4]
push ebx
push ebp
mov ebp, dword [esp + 0xe8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x70], eax
mov ebx, dword [ebp + 4]
push esi
mov esi, dword [esp + 0xe8]
push edi
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x10], eax
lea edi, [eax + 1]
cmp dword [ecx], eax
jne 0x496bb6
cmp dword [ecx + 4], edi
mov dword [esp + 0x10], edi
cmovne edi, eax
cmp byte [ebp + 9], 0
je 0x496bce
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x496bce
push ebp
call fcn.00462350
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
mov word [esp + 0x66], ax
movlpd qword [esp + 0x30], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x48], 0
mov dword [esp + 0x62], 0
mov dword [esp + 0x68], esi
mov dword [esp + 0x1c], ebx
mov eax, dword [ebx]
mov dword [esp + 0x20], eax
mov ecx, dword [ebx + 0x30]
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x80]
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 0x496f59
shr ecx, 3
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.004b17f0
mov esi, eax
add esp, 8
test esi, esi
je 0x496f2f
push ebp
push 0
push esi
call fcn.004fd610
mov dword [esp + 0x30], esi
push dword [ebx + 0x24]
call fcn.004878e0
add esp, 0x10
mov dword [esp + 0x64], eax
test eax, eax
jne 0x496cbe
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x34], 7
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x30], eax
jne 0x496f59
mov dword [esp + 0x30], 1
jmp 0x496f59
mov eax, dword [0x56f2e8]
xor edx, edx
div dword [ebx + 0x24]
lea esi, [eax + 1]
cmp esi, dword [esp + 0x28]
ja 0x496ce7
mov ecx, dword [esp + 0x24]
mov edx, esi
shr edx, 3
and esi, 7
movzx eax, byte [edx + ecx]
bts eax, esi
mov byte [edx + ecx], al
test edi, edi
je 0x496d1c
mov dword [esp + 0x3c], str.Freelist:
mov eax, dword [ebx + 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.00463800
add esp, 0x10
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xf8]
test edx, edx
jne 0x496d99
cmp byte [ebx + 0x11], 0
je 0x496d74
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x496d4f
mov esi, dword [esp + 0x6c]
nop dword [eax]
mov eax, dword [esi + edx*4]
cmp ecx, eax
cmovae eax, ecx
inc edx
mov ecx, eax
cmp edx, edi
jl 0x496d40
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
bswap eax
cmp ecx, eax
je 0x496d95
push eax
push ecx
lea eax, [esp + 0x24]
push str.max_rootpage___u__disagrees_with_header___u_
push eax
call fcn.00463640
add esp, 0x10
jmp 0x496d95
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x40]
bswap eax
test eax, eax
je 0x496d99
lea eax, [esp + 0x1c]
push str.incremental_vacuum_enabled_with_a_max_rootpage_of_zero
push eax
call fcn.00463640
add esp, 8
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
xor esi, esi
and dword [ecx + 0x20], 0xffdfffff
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x24], eax
test edi, edi
jle 0x496e0f
mov ebp, dword [esp + 0x6c]
cmp dword [esp + 0x2c], 0
je 0x496e0f
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x496e06
cmp byte [ebx + 0x11], 0
mov ecx, eax
je 0x496de8
cmp eax, 1
jbe 0x496de8
test edx, edx
jne 0x496de8
push edx
push 1
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00463a40
mov ecx, dword [ebp + esi*4]
add esp, 0x10
push 0x7fffffff
push 0xffffffffffffffff
lea eax, [esp + 0x74]
mov dword [esp + 0x48], ecx
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.00463b50
add esp, 0x14
mov edx, dword [esp + 0x10]
inc esi
cmp esi, edi
jl 0x496db3
cmp dword [esp + 0x10], 0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x24], ecx
jne 0x496f55
mov edi, 1
cmp dword [esp + 0x28], edi
jb 0x496f55
nop word [eax + eax]
cmp dword [esp + 0x2c], 0
je 0x496f55
mov eax, dword [esp + 0x24]
mov ebp, edi
mov ecx, edi
shr ebp, 3
and ecx, 7
mov edx, 1
shl edx, cl
mov dword [esp + 0x18], edx
test byte [eax + ebp], dl
jne 0x496ebf
cmp edi, 2
jae 0x496e72
xor ecx, ecx
jmp 0x496ea2
mov eax, 0xcccccccd
lea esi, [edi - 2]
mul dword [ebx + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x56f2e8]
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
cmp ecx, edi
jne 0x496eac
cmp byte [ebx + 0x11], 0
jne 0x496ebf
push edi
lea eax, [esp + 0x20]
push str.Page__u:_never_used
push eax
call fcn.00463640
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
test byte [eax + ebp], cl
je 0x496f22
cmp edi, 2
jae 0x496ed5
xor ecx, ecx
jmp 0x496f05
mov eax, 0xcccccccd
lea esi, [edi - 2]
mul dword [ebx + 0x28]
mov eax, esi
mov ecx, edx
xor edx, edx
shr ecx, 2
inc ecx
div ecx
mov eax, dword [0x56f2e8]
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
cmp ecx, edi
jne 0x496f22
cmp byte [ebx + 0x11], 0
je 0x496f22
push edi
lea eax, [esp + 0x20]
push str.Page__u:_pointer_map_referenced
push eax
call fcn.00463640
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x28]
jbe 0x496e40
jmp 0x496f55
mov eax, dword [esp + 0x30]
mov ecx, 1
test eax, eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], 7
cmove eax, ecx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], eax
mov ebp, dword [esp + 0x14]
push dword [esp + 0x64]
call fcn.00487da0
mov esi, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x496fc2
cmp dword [0x56f0f8], 0
je 0x496fb8
mov eax, dword [0x574ff8]
test eax, eax
je 0x496f89
push eax
call dword [0x56f148]
add esp, 4
push esi
call dword [0x56f124]
sub dword [0x574f98], eax
dec dword [0x574fbc]
push esi
call dword [0x56f11c]
mov eax, dword [0x574ff8]
add esp, 8
test eax, eax
je 0x496fc2
push eax
call dword [0x56f150]
jmp 0x496fbf
push esi
call dword [0x56f11c]
add esp, 4
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
test eax, eax
jne 0x4970b9
test byte [esp + 0x61], 4
je 0x49709d
mov esi, dword [esp + 0x50]
test esi, esi
je 0x497098
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x497043
cmp esi, dword [ecx + 0x164]
jae 0x49702e
cmp esi, dword [ecx + 0x15c]
jb 0x497016
mov eax, dword [ecx + 0x158]
mov dword [esi], eax
mov dword [ecx + 0x158], esi
jmp 0x497098
cmp esi, dword [ecx + 0x160]
jb 0x49702e
mov eax, dword [ecx + 0x150]
mov dword [esi], eax
mov dword [ecx + 0x150], esi
jmp 0x497098
cmp dword [ecx + 0x210], 0
je 0x497043
push esi
push ecx
call fcn.0047fe10
add esp, 8
jmp 0x497098
cmp dword [0x56f0f8], 0
je 0x49708e
mov eax, dword [0x574ff8]
test eax, eax
je 0x49705f
push eax
call dword [0x56f148]
add esp, 4
push esi
call dword [0x56f124]
sub dword [0x574f98], eax
dec dword [0x574fbc]
push esi
call dword [0x56f11c]
mov eax, dword [0x574ff8]
add esp, 8
test eax, eax
je 0x497098
push eax
call dword [0x56f150]
jmp 0x497095
push esi
call dword [0x56f11c]
add esp, 4
and byte [esp + 0x61], 0xfb
mov dword [esp + 0x54], 0
xor ecx, ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x50], 0
jmp 0x4970ec
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4970ec
mov eax, dword [esp + 0x5c]
mov byte [eax + ecx], 0
cmp dword [esp + 0x58], 0
jbe 0x4970e8
test byte [esp + 0x61], 4
jne 0x4970e8
lea eax, [esp + 0x4c]
push eax
call fcn.004df2a0
add esp, 4
mov ecx, eax
jmp 0x4970ec
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
mov dword [eax], ecx
cmp byte [ebp + 9], 0
je 0x497107
add dword [ebp + 0xc], 0xffffffff
jne 0x497107
push ebp
call fcn.004e0290
add esp, 4
mov ecx, dword [esp + 0xe4]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fb4f7
add esp, 0xd8
ret