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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x5340e4]
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 0x480bb6
cmp dword [ecx + 4], edi
mov dword [esp + 0x10], edi
cmovne edi, eax
cmp byte [ebp + 9], 0
je 0x480bce
inc dword [ebp + 0xc]
cmp byte [ebp + 0xa], 0
jne 0x480bce
push ebp
call fcn.0044c370
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 0x480f59
shr ecx, 3
push 0
lea ebp, [ecx + 1]
push ebp
call fcn.0049b7f0
mov esi, eax
add esp, 8
test esi, esi
je 0x480f2f
push ebp
push 0
push esi
call fcn.004e7970
mov dword [esp + 0x30], esi
push dword [ebx + 0x24]
call fcn.004718e0
add esp, 0x10
mov dword [esp + 0x64], eax
test eax, eax
jne 0x480cbe
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x34], 7
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x30], eax
jne 0x480f59
mov dword [esp + 0x30], 1
jmp 0x480f59
mov eax, dword [0x5322e0]
xor edx, edx
div dword [ebx + 0x24]
lea esi, [eax + 1]
cmp esi, dword [esp + 0x28]
ja 0x480ce7
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 0x480d1c
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.0044d820
add esp, 0x10
mov dword [esp + 0x3c], 0
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xf8]
test edx, edx
jne 0x480d99
cmp byte [ebx + 0x11], 0
je 0x480d74
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x480d4f
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 0x480d40
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
bswap eax
cmp ecx, eax
je 0x480d95
push eax
push ecx
lea eax, [esp + 0x24]
push str.max_rootpage___u__disagrees_with_header___u_
push eax
call fcn.0044d660
add esp, 0x10
jmp 0x480d95
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x40]
bswap eax
test eax, eax
je 0x480d99
lea eax, [esp + 0x1c]
push str.incremental_vacuum_enabled_with_a_max_rootpage_of_zero
push eax
call fcn.0044d660
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 0x480e0f
mov ebp, dword [esp + 0x6c]
cmp dword [esp + 0x2c], 0
je 0x480e0f
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x480e06
cmp byte [ebx + 0x11], 0
mov ecx, eax
je 0x480de8
cmp eax, 1
jbe 0x480de8
test edx, edx
jne 0x480de8
push edx
push 1
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0044da60
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.0044db70
add esp, 0x14
mov edx, dword [esp + 0x10]
inc esi
cmp esi, edi
jl 0x480db3
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 0x480f55
mov edi, 1
cmp dword [esp + 0x28], edi
jb 0x480f55
nop word [eax + eax]
cmp dword [esp + 0x2c], 0
je 0x480f55
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 0x480ebf
cmp edi, 2
jae 0x480e72
xor ecx, ecx
jmp 0x480ea2
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 [0x5322e0]
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 0x480eac
cmp byte [ebx + 0x11], 0
jne 0x480ebf
push edi
lea eax, [esp + 0x20]
push str.Page__u:_never_used
push eax
call fcn.0044d660
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
test byte [eax + ebp], cl
je 0x480f22
cmp edi, 2
jae 0x480ed5
xor ecx, ecx
jmp 0x480f05
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 [0x5322e0]
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 0x480f22
cmp byte [ebx + 0x11], 0
je 0x480f22
push edi
lea eax, [esp + 0x20]
push str.Page__u:_pointer_map_referenced
push eax
call fcn.0044d660
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x28]
jbe 0x480e40
jmp 0x480f55
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.00471da0
mov esi, dword [esp + 0x28]
add esp, 4
test esi, esi
je 0x480fc2
cmp dword [0x5320f0], 0
je 0x480fb8
mov eax, dword [0x536de8]
test eax, eax
je 0x480f89
push eax
call dword [0x532140]
add esp, 4
push esi
call dword [0x53211c]
sub dword [0x536d88], eax
dec dword [0x536dac]
push esi
call dword [0x532114]
mov eax, dword [0x536de8]
add esp, 8
test eax, eax
je 0x480fc2
push eax
call dword [0x532148]
jmp 0x480fbf
push esi
call dword [0x532114]
add esp, 4
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
test eax, eax
jne 0x4810b9
test byte [esp + 0x61], 4
je 0x48109d
mov esi, dword [esp + 0x50]
test esi, esi
je 0x481098
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x481043
cmp esi, dword [ecx + 0x164]
jae 0x48102e
cmp esi, dword [ecx + 0x15c]
jb 0x481016
mov eax, dword [ecx + 0x158]
mov dword [esi], eax
mov dword [ecx + 0x158], esi
jmp 0x481098
cmp esi, dword [ecx + 0x160]
jb 0x48102e
mov eax, dword [ecx + 0x150]
mov dword [esi], eax
mov dword [ecx + 0x150], esi
jmp 0x481098
cmp dword [ecx + 0x210], 0
je 0x481043
push esi
push ecx
call fcn.00469e10
add esp, 8
jmp 0x481098
cmp dword [0x5320f0], 0
je 0x48108e
mov eax, dword [0x536de8]
test eax, eax
je 0x48105f
push eax
call dword [0x532140]
add esp, 4
push esi
call dword [0x53211c]
sub dword [0x536d88], eax
dec dword [0x536dac]
push esi
call dword [0x532114]
mov eax, dword [0x536de8]
add esp, 8
test eax, eax
je 0x481098
push eax
call dword [0x532148]
jmp 0x481095
push esi
call dword [0x532114]
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 0x4810ec
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4810ec
mov eax, dword [esp + 0x5c]
mov byte [eax + ecx], 0
cmp dword [esp + 0x58], 0
jbe 0x4810e8
test byte [esp + 0x61], 4
jne 0x4810e8
lea eax, [esp + 0x4c]
push eax
call fcn.004c92a0
add esp, 4
mov ecx, eax
jmp 0x4810ec
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x7c]
mov dword [eax], ecx
cmp byte [ebp + 9], 0
je 0x481107
add dword [ebp + 0xc], 0xffffffff
jne 0x481107
push ebp
call fcn.004ca290
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.004e56df
add esp, 0xd8
ret