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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov edi, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x14], edx
cmp edi, 2
jb 0x446327
mov eax, 0xcccccccd
lea ebp, [edi - 2]
mul dword [ecx + 0x28]
mov eax, ebp
mov esi, edx
xor edx, edx
shr esi, 2
inc esi
div esi
mov eax, dword [0x51d800]
sub ebp, edx
xor edx, edx
lea esi, [ebp + 1]
div dword [ecx + 0x24]
xor edx, edx
cmp esi, eax
sete dl
lea eax, [edx + ebp + 2]
mov ebx, dword [esp + 0x40]
cmp eax, edi
je 0x44633e
mov eax, dword [0x51d800]
xor edx, edx
div dword [ecx + 0x24]
inc eax
cmp eax, edi
jne 0x4463b1
xor ebp, ebp
test ebx, ebx
jne 0x446421
mov eax, dword [0x51d800]
xor edx, edx
mov dword [esp + 4], ecx
add edi, 0xfffffffd
div dword [ecx + 0x24]
mov ecx, eax
lea ebp, [eax + 1]
jmp 0x446365
cmp esi, eax
jne 0x4463a2
dec edi
lea esi, [edi + 2]
cmp esi, ebp
je 0x446364
xor eax, eax
cmp esi, 2
jb 0x446360
mov edx, dword [esp + 4]
mov eax, 0xcccccccd
mul dword [edx + 0x28]
mov eax, edi
mov ebx, edx
xor edx, edx
shr ebx, 2
inc ebx
div ebx
mov eax, edi
xor ebx, ebx
sub eax, edx
neg edx
lea edx, [edi + edx + 1]
cmp edx, ecx
sete bl
lea eax, [ebx + eax + 2]
jmp 0x446360
mov eax, dword [esp + 4]
xor ebp, ebp
mov byte [eax + 0x13], 1
mov dword [eax + 0x30], esi
jmp 0x446421
mov byte [esp + 3], 0xff
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + 0x38]
mov eax, dword [eax + 0x24]
bswap eax
test eax, eax
je 0x44641c
lea eax, [esp + 0x1c]
lea esi, [esp + 3]
mov dword [esp + 4], ecx
mov edx, edi
push eax
push esi
call fcn.00446e90
add esp, 8
mov ebp, eax
test eax, eax
jne 0x446421
mov al, byte [esp + 3]
cmp al, 2
je 0x44642b
cmp al, 1
jne 0x44643c
push 0x50d803
push 0x10a13
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0041f100
add esp, 0x14
mov ebp, 0xb
jmp 0x446421
mov ebp, 0x65
mov eax, ebp
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x44655c
mov ecx, dword [esp + 4]
jmp 0x44633e
mov esi, dword [esp + 4]
mov byte [esp + 0xb], al
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
mov edx, edi
mov ecx, esi
push 0
push eax
call fcn.00444c70
add esp, 8
mov ebp, eax
test eax, eax
jne 0x446421
xor ecx, ecx
test ebx, ebx
cmove ecx, dword [esp + 0x14]
sete al
add al, al
movzx eax, al
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], 0xffffffff
mov ecx, esi
lea edx, [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
call fcn.00447000
add esp, 0xc
test eax, eax
jne 0x44658f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x44650d
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x4464c9
call fcn.00442220
jmp 0x44650d
mov esi, dword [ecx + 0x14]
dec dword [esi + 0x78]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [esi + 0x88], ecx
mov ebp, dword [ecx + 0x18]
mov ebx, dword [esi + 0x98]
mov esi, dword [esi + 0x3c]
dec ebp
mov eax, ebp
mul ebx
sar ebx, 0x1f
imul ebx, ebp
add edx, ebx
mov ebx, dword [esi]
push dword [ecx + 4]
push edx
push eax
push esi
mov esi, dword [esp + 0x14]
call dword [ebx + 0x48]
mov ebx, dword [esp + 0x50]
add esp, 0x10
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x44651f
cmp eax, dword [esp + 0x14]
ja 0x446486
mov ebp, ebx
mov ebx, dword [esp + 0xc]
mov ecx, esi
movzx esi, byte [esp + 0xb]
mov edx, ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
call fcn.00447df0
add esp, 0x10
mov ebp, eax
test ebx, ebx
je 0x44654b
mov ecx, dword [ebx + 0x48]
call fcn.004421c0
mov ebx, dword [esp + 0x40]
test ebp, ebp
jne 0x446421
jmp 0x446433
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
lea edx, [esp + 0xc]
push 1
push edi
push eax
call fcn.00447000
add esp, 0xc
test eax, eax
je 0x4465b0
mov ebp, eax
jmp 0x446421
mov ebp, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x446421
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
jne 0x4465c9
call fcn.00442220
jmp 0x446421
mov eax, dword [esp + 0xc]
test eax, eax
je 0x446433
mov ecx, dword [eax + 0x48]
call fcn.004421c0
jmp 0x446433
mov edi, dword [ecx + 0x14]
dec dword [edi + 0x78]
mov eax, dword [edi + 0x88]
mov dword [ecx + 0x10], eax
mov dword [edi + 0x88], ecx
mov esi, dword [ecx + 0x18]
mov ebx, dword [edi + 0x98]
dec esi
mov eax, esi
mul ebx
sar ebx, 0x1f
imul ebx, esi
mov esi, dword [edi + 0x3c]
add edx, ebx
mov edi, dword [esi]
push dword [ecx + 4]
push edx
push eax
push esi
call dword [edi + 0x48]
add esp, 0x10
jmp 0x446421