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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 0x10]
cmp byte [ecx], 0
jne 0x463ec5
movzx edx, byte [ebx + 1]
test dl, 2
jne 0x4640fc
mov ecx, ebx
call fcn.00468f20
cmp eax, 0x10
je 0x46418c
test eax, eax
jne 0x464194
mov dword [esp + 0x34], edi
lea esi, [ebx + 0x74]
mov ecx, 1
sub ecx, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], esi
mov ebx, dword [esi]
movzx eax, word [ebx + 0x18]
mov dword [esp + 0x14], eax
dec eax
mov dword [esp + 0x10], eax
sar eax, cl
mov ecx, dword [ebx + 0x44]
mov dword [esp + 0x38], ecx
movzx edx, byte [ebx + 2]
movzx esi, word [ebx + 0x1a]
mov ecx, dword [ebx + 0x40]
mov dword [esp], 0
mov byte [esp + 0xb], dl
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
movzx edi, byte [ecx + eax*2]
shl edi, 8
mov dword [esp + 4], eax
movzx ecx, byte [ecx + eax*2 + 1]
or ecx, edi
and ecx, esi
mov eax, dword [esp + 0x38]
add ecx, eax
test dl, dl
je 0x463f71
nop dword [eax]
cmp byte [ecx], 0
jns 0x463f70
inc ecx
cmp ecx, dword [ebx + 0x3c]
jb 0x463f60
jmp 0x4640d4
inc ecx
lea edx, [esp + 0x18]
call fcn.0044db50
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x34]
cmp edi, esi
mov edx, ecx
mov eax, dword [ebp + 8]
sbb edx, eax
jge 0x463fb0
mov ecx, dword [esp + 4]
lea esi, [ecx + 1]
mov eax, dword [esp + 0x10]
cmp ecx, eax
jl 0x463fc2
jmp 0x463fdf
cmp esi, edi
sbb eax, ecx
mov eax, dword [esp + 4]
jge 0x463fe6
mov esi, dword [esp]
cmp esi, eax
jge 0x464000
dec eax
mov dword [esp], esi
mov dword [esp + 0x10], eax
add eax, esi
sar eax, 1
movzx edx, byte [esp + 0xb]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
jmp 0x463f2e
mov eax, 0xffffffff
jmp 0x464005
mov edx, dword [esp + 0xc]
mov word [edx + 0x46], ax
cmp byte [ebx + 8], 0
jne 0x4641de
movzx ecx, word [ebx + 0x18]
mov esi, eax
jmp 0x464013
mov eax, 1
mov ecx, dword [esp + 0x14]
cmp byte [ebx + 8], 0
jne 0x4641c3
cmp esi, ecx
mov dword [esp], esi
jge 0x464033
movzx eax, word [ebx + 0x1a]
mov ecx, dword [ebx + 0x40]
movzx edx, byte [ecx + esi*2]
shl edx, 8
movzx ecx, byte [ecx + esi*2 + 1]
or ecx, edx
and ecx, eax
jmp 0x46403a
movzx ecx, byte [ebx + 9]
add ecx, 8
mov edi, dword [ebx + 0x38]
movzx eax, byte [edi + ecx]
movzx esi, byte [edi + ecx + 1]
movzx edx, byte [edi + ecx + 2]
movzx ecx, byte [edi + ecx + 3]
mov dword [esp + 4], ecx
mov edi, dword [esp]
mov ecx, dword [esp + 0xc]
mov word [ecx + 0x46], di
mov edi, ecx
movsx ebx, byte [ecx + 0x44]
cmp ebx, 0x13
jge 0x46419c
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x10], ecx
mov word [edi + 0x32], 0
and byte [edi + 1], 0xf9
mov ecx, dword [esp]
mov word [edi + ebx*2 + 0x48], cx
mov ecx, dword [edi + 0x74]
movsx ebx, byte [edi + 0x44]
mov dword [edi + ebx*4 + 0x78], ecx
shl esi, 0x10
shl eax, 0x18
or eax, esi
shl edx, 8
or edx, eax
add edx, dword [esp + 4]
mov word [edi + 0x46], 0
inc byte [edi + 0x44]
movzx eax, byte [edi + 2]
mov ecx, dword [esp + 0x10]
push eax
push edi
mov esi, dword [esp + 0x30]
push esi
call fcn.00469140
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 0x24]
je 0x463ef8
jmp 0x4641bf
push 0x52b213
push 0x11b15
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004287c0
add esp, 0x14
mov eax, 0xb
jmp 0x464194
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x24]
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
xor esi, eax
mov eax, edi
mov edi, ecx
xor edi, eax
or edi, esi
jne 0x464120
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
jmp 0x464192
mov dword [esp], ecx
cmp ecx, eax
mov ecx, dword [esp + 4]
mov esi, ecx
sbb esi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, eax
jge 0x463ec5
test dl, 8
jne 0x46418c
mov eax, dword [esp]
add eax, 1
adc ecx, 0
xor eax, edi
xor ecx, dword [ebp + 8]
or ecx, eax
jne 0x463ec5
mov dword [esi], 0
mov ecx, ebx
call fcn.004647c0
cmp eax, 0x65
je 0x463ec5
test eax, eax
jne 0x464194
mov ecx, ebx
call fcn.004514d0
mov ecx, dword [ebx + 0x24]
xor ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
xor edx, edi
xor eax, eax
or edx, ecx
jne 0x463ec5
jmp 0x464194
mov dword [esi], 0xffffffff
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x52b213
push 0x1198d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004287c0
add esp, 0x14
mov eax, 0xb
mov ebx, edi
jmp 0x4641d6
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 4]
mov word [ebx + 0x46], dx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
mov word [ebx + 0x32], 0
jmp 0x464194
mov edx, dword [esp + 0xc]
or byte [edx + 1], 2
mov dword [edx + 0x20], edi
mov dword [edx + 0x24], ecx
mov word [edx + 0x32], 0
jmp 0x464115