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

Disassembly:
sub esp, 0x50
mov edx, dword [esp + 0x5c]
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
lea ecx, [esp + 0x2c]
xor edi, edi
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
push edi
push 0x10
push edx
and al, 0xfd
push edi
push ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x8c], eax
call fcn.00456320
mov esi, eax
add esp, 0x18
cmp esi, edi
jne 0x41938d
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x30]
mov edx, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x70]
or ecx, 0xffffffff
mov dword [esp + 0x30], edi
push eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x4c]
mov dword [esp + 0x38], ecx
mov ecx, 6
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push edx
call fcn.0041bd50
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41938d
cmp dword [esp + 0x4c], 4
je 0x41908f
test byte [esp + 0x74], 0x40
jne 0x419085
push str.Subdatabase_entry_of_invalid_size
push ebx
call fcn.00415f80
add esp, 8
mov esi, 0xffff8704
jmp 0x41938d
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
call fcn.00423420
test eax, eax
jne 0x4190c2
mov dl, byte [esp + 0x67]
mov al, byte [esp + 0x64]
mov cl, byte [esp + 0x65]
mov byte [esp + 0x64], dl
mov dl, byte [esp + 0x66]
mov byte [esp + 0x66], cl
mov byte [esp + 0x65], dl
mov byte [esp + 0x67], al
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
push 0
push ecx
push edx
call fcn.00453820
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41938d
mov ecx, dword [ebp]
lea eax, [esp + 0x1c]
push eax
push ecx
push ebx
call fcn.00458360
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41938d
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov cl, byte [edx + 0x19]
mov eax, ecx
sub eax, 8
je 0x419256
dec eax
je 0x41913d
test byte [esp + 0x74], 0x40
jne 0x419133
mov edx, dword [esp + 0x64]
push ecx
push edx
push str.Page__lu:_database_metapage_of_bad_type__lu
push ebx
call fcn.00415f80
add esp, 0x10
mov esi, 0xffff8704
jmp 0x41938d
mov al, byte [edx + 0x30]
lea ebx, [edx + 0x30]
test al, 2
je 0x41914e
xor esi, esi
jmp 0x41938d
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
push eax
push edi
push ecx
push edx
push ebp
call fcn.0041a4a0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41938d
mov ecx, dword [ebp + 0x18]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push esi
push esi
push esi
push ecx
push esi
push edx
call fcn.00461c60
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x41938d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.00458510
mov esi, eax
add esp, 8
test esi, esi
jne 0x419243
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push 0
push eax
push ecx
call fcn.00453820
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41938d
mov edx, dword [ebx]
mov eax, dword [esp + 0x10]
and edx, 1
xor ecx, ecx
mov cx, word [eax + 0x14]
push edi
push edx
mov edx, dword [esp + 0x28]
push 1
push ecx
push edx
push eax
push esi
push ebp
call fcn.0045b510
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x41938d
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.00453170
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41938d
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.00458510
mov esi, eax
add esp, 8
test esi, esi
je 0x4191b5
cmp esi, 0xffff86f3
jne 0x41938d
xor esi, esi
jmp 0x41938d
mov eax, dword [ebp + 0x108]
mov ebx, edx
test eax, eax
mov dword [esp + 0x70], eax
jne 0x41928e
test byte [esp + 0x74], 0x40
jne 0x4192dd
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x28]
push ecx
push str.Page__lu:_DB__h_internal_field_is_NULL
push edx
call fcn.00415f80
add esp, 0xc
mov esi, 0xffff8704
jmp 0x41938d
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4192aa
mov ecx, dword [edx + 0x10]
cmp ecx, 5
mov ecx, fcn.00462da0
jb 0x4192a7
mov ecx, fcn.00462e60
mov dword [eax + 0xc], ecx
push 0xc
push str.__sniglet
push ebp
call dword [eax + 0xc]
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
cmp ecx, eax
je 0x4192e7
test byte [esp + 0x74], 0x40
jne 0x4192dd
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x28]
push eax
push str.Page__lu:_incorrect_hash_function_for_database
push ecx
call fcn.00415f80
add esp, 0xc
mov esi, 0xffff8704
jmp 0x41938d
xor edi, edi
lea eax, [edi + 1]
push eax
mov dword [esp + 0x6c], eax
call fcn.00462d80
mov edx, dword [ebx + eax*4 + 0x60]
add esp, 4
add edx, edi
mov dword [esp + 0x6c], edx
je 0x41937e
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x70]
push 0
push ecx
push edx
call fcn.00453820
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41938d
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x6c]
push ecx
push edx
mov edx, dword [esp + 0x18]
xor ecx, ecx
push eax
push edi
mov cx, word [edx + 0x14]
push ebx
push ecx
push ebp
call fcn.0045e410
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x41938d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push eax
mov ecx, dword [eax + 0x10]
push edx
mov dword [esp + 0x78], ecx
call fcn.00453170
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41938d
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x419305
mov edi, dword [esp + 0x68]
mov eax, dword [ebx + 0x48]
cmp edi, eax
jbe 0x4192e9
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4193a8
push eax
call fcn.0045f1b0
add esp, 4
test eax, eax
je 0x4193a8
test esi, esi
jne 0x4193a8
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4193c7
push 0
push 0
push eax
call fcn.00456e10
add esp, 0xc
test eax, eax
je 0x4193c7
test esi, esi
jne 0x4193c7
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4193e5
push 0
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00453170
add esp, 0xc
test eax, eax
je 0x4193e5
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419403
mov ecx, dword [esp + 0x14]
push 0
push eax
push ecx
call fcn.00453170
add esp, 0xc
test eax, eax
je 0x419403
mov esi, eax
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
call fcn.00456e10
add esp, 0xc
test eax, eax
jne 0x41941a
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret