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

Disassembly:
sub esp, 0xe0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xf0]
push ebx
mov ebx, dword [edx + 4]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xf8]
push ebp
mov ebp, dword [esp + 0xec]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 4]
push esi
cmp dword [ebp], 0
mov esi, ecx
push edi
mov ecx, dword [eax + 0x20]
mov edi, 1
mov eax, dword [eax + 0x24]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
jne 0x1004b24e
xor eax, eax
mov dword [esp + 0x10], edi
cmp dword [ebp + 4], edi
cmovne edi, eax
cmp byte [edx + 9], 0
je 0x1004b264
inc dword [edx + 0xc]
cmp byte [edx + 0xa], 0
jne 0x1004b264
mov ecx, edx
call fcn.1003e950
xor eax, eax
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
mov word [esp + 0x62], ax
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x18], ebx
mov eax, dword [ebx]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x30]
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], 0x64
mov dword [esp + 0x54], 0x3b9aca00
mov dword [esp + 0x58], 0
mov word [esp + 0x5c], 0x100
test ecx, ecx
je 0x1004b5d8
shr ecx, 3
push 0
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x80], eax
call fcn.100267c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1004b5b2
push dword [esp + 0x78]
push 0
push esi
call fcn.10138870
add esp, 0xc
mov dword [esp + 0x20], esi
mov ecx, dword [ebx + 0x24]
call fcn.10033810
mov dword [esp + 0x60], eax
test eax, eax
jne 0x1004b35a
mov dword [esp + 0x30], 7
mov dword [esp + 0x28], eax
cmp dword [esp + 0x2c], eax
jne 0x1004b5d8
mov dword [esp + 0x2c], 1
jmp 0x1004b5d8
mov eax, dword [0x1017986c]
xor edx, edx
div dword [ebx + 0x24]
lea esi, [eax + 1]
cmp esi, dword [esp + 0x24]
ja 0x1004b383
mov ecx, dword [esp + 0x20]
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 0x1004b3ba
mov dword [esp + 0x38], str.Freelist:
mov edx, 1
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx + 0x24]
bswap eax
push eax
mov eax, dword [ecx + 0x20]
lea ecx, [esp + 0x1c]
bswap eax
push eax
call fcn.1004a830
add esp, 8
mov dword [esp + 0x38], 0
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0xf8]
jne 0x1004b42c
cmp byte [ebx + 0x11], 0
je 0x1004b40b
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x1004b3e6
mov eax, dword [ebp + edx*4]
cmp ecx, eax
cmovae eax, ecx
inc edx
mov ecx, eax
cmp edx, edi
jl 0x1004b3d6
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
bswap eax
cmp ecx, eax
je 0x1004b42c
push eax
push ecx
lea eax, [esp + 0x20]
push str.max_rootpage___u__disagrees_with_header___u_
push eax
call fcn.1004a690
add esp, 0x10
jmp 0x1004b42c
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x40]
bswap eax
test eax, eax
je 0x1004b42c
lea eax, [esp + 0x18]
push str.incremental_vacuum_enabled_with_a_max_rootpage_of_zero
push eax
call fcn.1004a690
add esp, 8
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 0x1004b498
cmp dword [esp + 0x28], 0
je 0x1004b498
mov edx, dword [ebp + esi*4]
test edx, edx
je 0x1004b493
cmp byte [ebx + 0x11], 0
je 0x1004b473
cmp edx, 1
jbe 0x1004b473
cmp dword [esp + 0x10], 0
jne 0x1004b473
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.1004a790
add esp, 8
mov edx, dword [ebp + esi*4]
lea eax, [esp + 0x78]
push 0x7fffffff
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], edx
call fcn.1004aa60
add esp, 0xc
inc esi
cmp esi, edi
jl 0x1004b442
cmp dword [esp + 0x10], 0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x24], ecx
jne 0x1004b5d8
mov edi, 1
cmp dword [esp + 0x24], edi
jb 0x1004b5d8
cmp dword [esp + 0x28], 0
je 0x1004b5d8
mov eax, dword [esp + 0x20]
mov ebp, edi
mov ecx, edi
shr ebp, 3
and ecx, 7
mov edx, 1
shl edx, cl
mov dword [esp + 0x14], edx
test byte [eax + ebp], dl
jne 0x1004b542
cmp edi, 2
jae 0x1004b4f5
xor ecx, ecx
jmp 0x1004b525
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 [0x1017986c]
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 0x1004b52f
cmp byte [ebx + 0x11], 0
jne 0x1004b542
push edi
lea eax, [esp + 0x1c]
push str.Page__u:_never_used
push eax
call fcn.1004a690
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
test byte [eax + ebp], cl
je 0x1004b5a5
cmp edi, 2
jae 0x1004b558
xor ecx, ecx
jmp 0x1004b588
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 [0x1017986c]
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 0x1004b5a5
cmp byte [ebx + 0x11], 0
je 0x1004b5a5
push edi
lea eax, [esp + 0x1c]
push str.Page__u:_pointer_map_referenced
push eax
call fcn.1004a690
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x24]
jbe 0x1004b4c3
jmp 0x1004b5d8
mov eax, dword [esp + 0x2c]
mov ecx, 1
test eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], 7
cmove eax, ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x60]
call fcn.10033920
mov esi, dword [esp + 0x20]
test esi, esi
je 0x1004b641
cmp dword [0x10177b48], 0
je 0x1004b637
mov eax, dword [0x1017ad00]
test eax, eax
je 0x1004b605
push eax
call dword [0x10177b98]
add esp, 4
push esi
call dword [0x10177b74]
sub dword [0x1017ab88], eax
add esp, 4
dec dword [0x1017abac]
push esi
call dword [0x10177b6c]
mov eax, dword [0x1017ad00]
add esp, 4
test eax, eax
je 0x1004b641
push eax
call dword [0x10177ba0]
jmp 0x1004b63e
push esi
call dword [0x10177b6c]
add esp, 4
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
test eax, eax
jne 0x1004b68e
mov al, byte [esp + 0x5d]
test al, 4
je 0x1004b672
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x1004b66c
mov ecx, dword [esp + 0x48]
call fcn.10026a90
mov al, byte [esp + 0x5d]
and al, 0xfb
mov byte [esp + 0x5d], al
mov dword [esp + 0x50], 0
xor ecx, ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x4c], 0
jmp 0x1004b6bd
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x1004b6bd
mov eax, dword [esp + 0x58]
mov byte [eax + ecx], 0
cmp dword [esp + 0x54], 0
jbe 0x1004b6b9
test byte [esp + 0x5d], 4
jne 0x1004b6b9
lea ecx, [esp + 0x48]
call fcn.10029090
mov ecx, eax
jmp 0x1004b6bd
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x74]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
cmp byte [ecx + 9], 0
je 0x1004b6d8
add dword [ecx + 0xc], 0xffffffff
jne 0x1004b6d8
call fcn.1003e930
mov ecx, dword [esp + 0xec]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10136e2d
add esp, 0xe0
ret