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

Disassembly:
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [esp + 4], 0
push ebp
push esi
push edi
movsx eax, byte [ebx + 0x44]
mov edi, edx
mov ebp, dword [ebx + eax*4 + 0x78]
mov eax, dword [ebx + 4]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], eax
call fcn.00494b50
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x18]
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebp + 0x38]
add ecx, dword [eax + 0x24]
mov dword [esp + 0x28], esi
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x494e2d
push 0x6f29f0
push 0xe63a
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebp, dword [esp + 0x34]
cmp edi, edx
jae 0x494e8f
lea eax, [edi + ebp]
mov dword [esp + 0x24], ebp
mov ecx, ebp
cmp eax, edx
jbe 0x494e4a
mov ecx, edx
sub ecx, edi
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
push dword [eax + 0x48]
mov eax, dword [esp + 0x40]
and eax, 1
push eax
push ecx
lea ecx, [esi + edi]
call fcn.00494d40
mov ecx, dword [esp + 0x44]
mov esi, eax
add ecx, dword [esp + 0x30]
add esp, 0xc
sub ebp, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
test esi, esi
jne 0x4950b8
mov esi, dword [esp + 0x28]
jmp 0x494e99
mov eax, dword [esp + 0x38]
sub edi, edx
mov dword [esp + 0x20], eax
test ebp, ebp
je 0x4950b8
mov eax, dword [esp + 0x1c]
movzx edx, word [ebx + 0x20]
mov ecx, dword [eax + 0x24]
mov esi, dword [edx + esi]
add ecx, 0xfffffffc
cmp dword [esp + 0x3c], 2
bswap esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
je 0x494f2c
test byte [ebx + 0x40], 4
jne 0x494f32
mov eax, dword [ebx + 0x1c]
sub eax, edx
xor edx, edx
dec eax
add eax, ecx
div ecx
mov dword [esp + 0x24], eax
cmp eax, dword [ebx + 0x38]
jle 0x494f13
lea ecx, [eax*8]
push 0
push ecx
mov ecx, dword [ebx + 0xc]
call fcn.00480e40
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x494f03
mov dword [esp + 0x10], 7
jmp 0x494f28
mov eax, dword [esp + 0x24]
add eax, eax
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x24]
shl eax, 2
push eax
push 0
push dword [ebx + 0xc]
call fcn.006440e0
add esp, 0xc
or byte [ebx + 0x40], 4
mov ecx, dword [esp + 0x14]
test byte [ebx + 0x40], 4
je 0x494f4c
xor edx, edx
mov eax, edi
div ecx
mov ecx, dword [ebx + 0xc]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x494f4c
mov esi, ecx
mov edi, edx
mov dword [esp + 0x18], esi
jmp 0x494f4e
xor eax, eax
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4950bc
lea edx, [eax*4]
mov dword [esp + 0x24], edx
test ebp, ebp
je 0x49508a
test esi, esi
je 0x49508a
test byte [ebx + 0x40], 4
je 0x494f81
mov eax, dword [ebx + 0xc]
mov dword [edx + eax], esi
cmp edi, dword [esp + 0x14]
jb 0x494fcd
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + edx + 4]
test eax, eax
je 0x494fa1
sub edi, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x18], esi
jmp 0x495071
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0
mov edx, esi
call fcn.00494bd0
mov esi, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x24]
mov ecx, eax
sub edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x495071
mov ecx, dword [esp + 0x14]
lea eax, [edi + ebp]
sub ecx, edi
mov edx, esi
cmp eax, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
cmovbe ecx, ebp
add eax, eax
not eax
mov dword [esp + 0x2c], ecx
and eax, 2
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
call fcn.0048d1e0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x49505f
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push eax
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x40]
and eax, 1
push eax
mov esi, dword [ecx]
add ecx, 4
push dword [esp + 0x34]
bswap esi
add ecx, edi
mov dword [esp + 0x24], esi
call fcn.00494d40
mov dword [esp + 0x1c], eax
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, eax
test byte [eax + 0x18], 0x40
mov edi, dword [eax + 0x10]
je 0x495051
call fcn.0048bf80
jmp 0x495056
call fcn.00488760
mov ecx, edi
call fcn.0048d1b0
xor edi, edi
mov eax, dword [esp + 0x2c]
sub ebp, eax
add dword [esp + 0x20], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
add edx, 4
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x494f65
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test ecx, ecx
jne 0x4950bc
test ebp, ebp
je 0x4950bc
push 0x6f29f0
push 0xe6d5
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.00482f10
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x20
ret