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

Disassembly:
sub esp, 0x54
mov edx, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push edi
xor edi, edi
mov ebp, dword [ebx + 0x14]
mov eax, dword [ebx + 0x1c]
push edi
lea ecx, [esp + 0x2c]
and edx, 0xfffffffd
push edi
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x80], edx
call fcn.00417900
add esp, 0xc
cmp eax, edi
jne 0x41fce6
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x28]
push esi
push edx
push edi
push 0x10
push eax
push edi
push ebx
call fcn.00422b20
mov esi, eax
add esp, 0x18
cmp esi, edi
jne 0x41fc59
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x34]
push eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x78]
or ecx, 0xffffffff
mov dword [esp + 0x38], edi
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x3c], ecx
mov ecx, 6
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
mov eax, dword [esp + 0x3c]
push eax
call dword [eax + 0x11c]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41fc59
cmp dword [esp + 0x50], 4
je 0x41f967
test byte [esp + 0x78], 0x40
jne 0x41f95d
push str.Subdatabase_entry_of_invalid_size
push ebp
call fcn.0041c9b0
add esp, 8
mov esi, 0xffff86fc
jmp 0x41fc59
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
mov dword [esp + 0x68], ecx
call fcn.004252c0
test eax, eax
jne 0x41f99a
mov dl, byte [esp + 0x6b]
mov al, byte [esp + 0x68]
mov cl, byte [esp + 0x69]
mov byte [esp + 0x68], dl
mov dl, byte [esp + 0x6a]
mov byte [esp + 0x6a], cl
mov byte [esp + 0x69], dl
mov byte [esp + 0x6b], al
lea eax, [esp + 0x28]
lea ecx, [esp + 0x68]
push eax
mov eax, dword [esp + 0x18]
push 0
push ecx
push eax
call dword [eax + 0x40]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fc59
mov eax, dword [ebx]
lea edx, [esp + 0x20]
push edx
push eax
push ebp
call fcn.00450030
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41fc59
mov edi, dword [esp + 0x28]
xor ecx, ecx
mov cl, byte [edi + 0x19]
mov eax, ecx
sub eax, 8
je 0x41fb26
dec eax
je 0x41fa12
test byte [esp + 0x78], 0x40
jne 0x41fa08
push ecx
mov ecx, dword [esp + 0x6c]
push ecx
push str.Page__lu:_database_metapage_of_bad_type__lu
push ebp
call fcn.0041c9b0
add esp, 0x10
mov esi, 0xffff86fc
jmp 0x41fc59
mov al, byte [edi + 0x30]
add edi, 0x30
test al, 2
je 0x41fa23
xor esi, esi
jmp 0x41fc59
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
push ebx
call fcn.00420ad0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x41fc59
push eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push esi
push eax
call dword [eax + 0x108]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fc59
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.00450230
mov esi, eax
add esp, 8
test esi, esi
jne 0x41fb13
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push 0
push ecx
push eax
call dword [eax + 0x40]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fc59
mov eax, dword [edi]
mov edx, dword [esp + 0x78]
and eax, 1
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
push 1
mov cx, word [eax + 0x14]
push ecx
push edx
push eax
push esi
push ebx
call fcn.004523e0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x41fc59
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [eax + 0x50]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41fc59
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x18], eax
call fcn.00450230
mov esi, eax
add esp, 8
test esi, esi
je 0x41fa85
cmp esi, 0xffff86f1
jne 0x41fc59
xor esi, esi
jmp 0x41fc59
mov eax, dword [ebx + 0xf4]
mov ebp, edi
test eax, eax
mov dword [esp + 0x70], eax
jne 0x41fb5e
test byte [esp + 0x78], 0x40
jne 0x41fbad
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x30]
push eax
push str.Page__lu:_DB__h_internal_field_is_NULL
push ecx
call fcn.0041c9b0
add esp, 0xc
mov esi, 0xffff86fc
jmp 0x41fc59
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x41fb7a
mov ecx, dword [edi + 0x10]
cmp ecx, 5
mov ecx, fcn.00458e50
jb 0x41fb77
mov ecx, fcn.00458f10
mov dword [eax + 0xc], ecx
push 0xc
push str.__sniglet
push ebx
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x5c]
add esp, 0xc
cmp ecx, eax
je 0x41fbb7
test byte [esp + 0x78], 0x40
jne 0x41fbad
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x30]
push edx
push str.Page__lu:_incorrect_hash_function_for_database
push eax
call fcn.0041c9b0
add esp, 0xc
mov esi, 0xffff86fc
jmp 0x41fc59
xor edi, edi
lea eax, [edi + 1]
push eax
mov dword [esp + 0x78], eax
call fcn.00458cf0
mov ecx, dword [ebp + eax*4 + 0x60]
add esp, 4
add ecx, edi
mov dword [esp + 0x18], ecx
je 0x41fc4a
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [eax + 0x40]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fc59
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x78]
mov edx, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
xor edx, edx
push ecx
push edi
mov dx, word [eax + 0x14]
push ebp
push edx
push ebx
call fcn.004551d0
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x41fc59
mov eax, dword [esp + 0x10]
push esi
push eax
mov ecx, dword [eax + 0x10]
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [eax + 0x50]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41fc59
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x41fbd5
mov edi, dword [esp + 0x74]
mov eax, dword [ebp + 0x48]
cmp edi, eax
jbe 0x41fbb9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41fc75
push eax
call dword [eax + 0xbc]
add esp, 4
test eax, eax
je 0x41fc75
test esi, esi
jne 0x41fc75
mov esi, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41fc93
push 0
push eax
call dword [eax + 0x104]
add esp, 8
test eax, eax
je 0x41fc93
test esi, esi
jne 0x41fc93
mov esi, eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41fcb1
mov edi, dword [esp + 0x14]
push 0
push eax
push edi
call dword [edi + 0x50]
add esp, 0xc
test eax, eax
je 0x41fcb5
mov esi, eax
jmp 0x41fcb5
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41fccd
push 0
push eax
push edi
call dword [edi + 0x50]
add esp, 0xc
test eax, eax
je 0x41fccd
mov esi, eax
mov eax, dword [esp + 0x2c]
push 0
push eax
call dword [eax + 0x104]
add esp, 8
test eax, eax
je 0x41fce3
mov esi, eax
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x54
ret