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

Disassembly:
sub esp, 0xd8
mov eax, dword [0x58f140]
xor eax, esp
mov dword [esp + 0xd4], eax
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0xf0]
push ebx
mov dword [esp + 0x60], eax
mov ebx, dword [ecx + 4]
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x64], eax
push ebp
mov eax, dword [ebx + 4]
mov ebp, dword [esp + 0xec]
push esi
mov esi, dword [esp + 0xe8]
mov edx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x10], eax
xor eax, eax
push edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x68], edx
lea edi, [eax + 1]
mov dword [esp + 0x10], eax
cmp dword [ebp], eax
jne 0x4cf493
cmp dword [ebp + 4], edi
mov dword [esp + 0x10], edi
cmovne edi, eax
cmp byte [ecx + 9], 0
je 0x4cf4ab
inc dword [ecx + 0xc]
cmp byte [ecx + 0xa], 0
jne 0x4cf4ab
push ecx
call fcn.0049d7c0
add esp, 4
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 0x4cf82a
shr ecx, 3
push 0
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x80], eax
call fcn.004e8780
mov esi, eax
add esp, 8
test esi, esi
je 0x4cf804
push dword [esp + 0x78]
push 0
push esi
call fcn.005326d0
mov dword [esp + 0x2c], esi
push dword [ebx + 0x24]
call fcn.004c01b0
add esp, 0x10
mov dword [esp + 0x60], eax
test eax, eax
jne 0x4cf5a1
mov dword [esp + 0x30], 7
mov dword [esp + 0x28], eax
cmp dword [esp + 0x2c], eax
jne 0x4cf82a
mov dword [esp + 0x2c], 1
jmp 0x4cf82a
mov eax, dword [0x58d60c]
xor edx, edx
div dword [ebx + 0x24]
lea esi, [eax + 1]
cmp esi, dword [esp + 0x24]
ja 0x4cf5ca
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 0x4cf5ff
mov dword [esp + 0x38], 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 + 0x20]
push 1
push eax
call fcn.0049ec20
add esp, 0x10
mov dword [esp + 0x38], 0
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xf8]
test edx, edx
jne 0x4cf67a
cmp byte [ebx + 0x11], 0
je 0x4cf655
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x4cf630
nop dword [eax]
mov eax, dword [ebp + edx*4]
cmp ecx, eax
cmovae eax, ecx
inc edx
mov ecx, eax
cmp edx, edi
jl 0x4cf620
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x34]
bswap eax
cmp ecx, eax
je 0x4cf676
push eax
push ecx
lea eax, [esp + 0x20]
push str.max_rootpage___u__disagrees_with_header___u_
push eax
call fcn.0049ea60
add esp, 0x10
jmp 0x4cf676
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x40]
bswap eax
test eax, eax
je 0x4cf67a
lea eax, [esp + 0x18]
push str.incremental_vacuum_enabled_with_a_max_rootpage_of_zero
push eax
call fcn.0049ea60
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 0x4cf6ea
cmp dword [esp + 0x28], 0
je 0x4cf6ea
mov eax, dword [ebp + esi*4]
test eax, eax
je 0x4cf6e1
cmp byte [ebx + 0x11], 0
je 0x4cf6bf
cmp eax, 1
jbe 0x4cf6bf
test edx, edx
jne 0x4cf6bf
push edx
push 1
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0049ee60
add esp, 0x10
mov eax, dword [ebp + esi*4]
lea ecx, [esp + 0x78]
push SysReAllocString
push 0xffffffffffffffff
push ecx
push eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push eax
call fcn.0049ef70
add esp, 0x14
mov edx, dword [esp + 0x10]
inc esi
cmp esi, edi
jl 0x4cf690
cmp dword [esp + 0x10], 0
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x24], ecx
jne 0x4cf82a
mov edi, 1
cmp dword [esp + 0x24], edi
jb 0x4cf82a
cmp dword [esp + 0x28], 0
je 0x4cf82a
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 0x4cf794
cmp edi, 2
jae 0x4cf747
xor ecx, ecx
jmp 0x4cf777
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 [0x58d60c]
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 0x4cf781
cmp byte [ebx + 0x11], 0
jne 0x4cf794
push edi
lea eax, [esp + 0x1c]
push str.Page__u:_never_used
push eax
call fcn.0049ea60
add esp, 0xc
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
test byte [eax + ebp], cl
je 0x4cf7f7
cmp edi, 2
jae 0x4cf7aa
xor ecx, ecx
jmp 0x4cf7da
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 [0x58d60c]
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 0x4cf7f7
cmp byte [ebx + 0x11], 0
je 0x4cf7f7
push edi
lea eax, [esp + 0x1c]
push str.Page__u:_pointer_map_referenced
push eax
call fcn.0049ea60
add esp, 0xc
inc edi
cmp edi, dword [esp + 0x24]
jbe 0x4cf715
jmp 0x4cf82a
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
push dword [esp + 0x60]
call fcn.004c0640
mov esi, dword [esp + 0x24]
add esp, 4
test esi, esi
je 0x4cf893
cmp dword [0x58d428], 0
je 0x4cf889
mov eax, dword [0x590a50]
test eax, eax
je 0x4cf85a
push eax
call dword [0x58d478]
add esp, 4
push esi
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push esi
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x4cf893
push eax
call dword [0x58d480]
jmp 0x4cf890
push esi
call dword [0x58d44c]
add esp, 4
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
pop ebx
test eax, eax
jne 0x4cf8e8
mov al, byte [esp + 0x4d]
test al, 4
je 0x4cf8cc
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4cf8c6
push ecx
push dword [esp + 0x3c]
call fcn.004d5a50
mov al, byte [esp + 0x55]
add esp, 8
and al, 0xfb
mov byte [esp + 0x4d], al
mov dword [esp + 0x40], 0
xor ecx, ecx
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
jmp 0x4cf91b
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4cf91b
mov eax, dword [esp + 0x48]
mov byte [eax + ecx], 0
cmp dword [esp + 0x44], 0
jbe 0x4cf917
test byte [esp + 0x4d], 4
jne 0x4cf917
lea eax, [esp + 0x38]
push eax
call fcn.00515c30
add esp, 4
mov ecx, eax
jmp 0x4cf91b
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
mov dword [eax], ecx
mov eax, dword [esp + 0x64]
cmp byte [eax + 9], 0
je 0x4cf93a
add dword [eax + 0xc], 0xffffffff
jne 0x4cf93a
push eax
call fcn.00516c80
add esp, 4
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0x20]
xor ecx, esp
call fcn.0052df19
add esp, 0xd8
ret