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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x5c8a30]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x148], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x110], ebx
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10c], eax
test ecx, ecx
jne 0x4a67d2
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441ed9
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
push esi
push edi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x4a67e8
xor edi, edi
jmp 0x4a680e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4a67f3
xor edi, edi
jmp 0x4a6804
cmp eax, esi
jne 0x4a6801
mov eax, dword [ebp + 0x18]
lea edi, [eax - 2]
add edi, esi
jmp 0x4a6807
lea edi, [eax - 1]
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x114], eax
mov eax, edi
sub eax, edx
mov dword [ebp - 0x130], esi
lea edx, [eax + esi]
cmp edx, ecx
jne 0x4a6837
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4a684b
mov eax, dword [ebx + 0x40]
mov ax, word [eax + edx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
lea edi, [esi*4]
mov dword [ebp - 0x120], ecx
mov eax, dword [ecx]
bswap eax
mov dword [ebp - 0x108], eax
mov ebx, eax
mov dword [ebp - 0x13c], eax
nop dword [eax]
mov eax, dword [ebp - 0x10c]
cmp ebx, dword [eax + 0x30]
jbe 0x4a68a3
push 0x5a3ec4
push 0xff5f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
add esp, 0x14
mov edx, 0xb
jmp 0x4a6937
mov eax, dword [eax]
lea ecx, [ebp - 0x104]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov edx, eax
add esp, 0x10
mov dword [ebp - 0xec], edx
test edx, edx
jne 0x4a693d
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 8]
mov dword [ebp + edi - 0x24], eax
cmp byte [eax], 0
jne 0x4a6935
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x4a6907
mov eax, dword [edx + 4]
cmp ebx, 1
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x10c]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], ebx
mov byte [ecx + 9], al
mov eax, dword [ebp + edi - 0x24]
push eax
call fcn.004a8f80
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
test edx, edx
je 0x4a6935
mov eax, dword [ebp + edi - 0x24]
test eax, eax
je 0x4a693d
push eax
call fcn.004d3490
mov edx, dword [ebp - 0xec]
add esp, 4
jmp 0x4a693d
xor edx, edx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4a7cf8
mov eax, dword [ebp + edi - 0x24]
cmp dword [eax + 0x14], edx
jge 0x4a6973
push eax
call fcn.004a85f0
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4a6ad5
mov ecx, esi
sub edi, 4
dec esi
test ecx, ecx
je 0x4a6b1d
mov ebx, dword [ebp - 0x110]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x4a69de
mov eax, dword [ebp - 0x124]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x4a69de
mov eax, dword [ebx + 0x24]
push eax
mov dword [ebp + edi - 0x138], eax
mov ebx, dword [eax]
mov eax, dword [ebp - 0x110]
bswap ebx
push eax
mov dword [ebp - 0x108], ebx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x13c], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + edi - 0x4c], eax
mov eax, dword [ebp - 0x110]
mov byte [eax + 0xc], 0
jmp 0x4a6870
mov ecx, dword [ebp - 0x124]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [ebx + 0x38]
add eax, ecx
push eax
mov dword [ebp - 0xf0], eax
mov dword [ebp + edi - 0x138], eax
mov ecx, dword [eax]
mov eax, dword [ebp - 0x110]
bswap ecx
push eax
mov dword [ebp - 0x108], ecx
mov ebx, ecx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x13c], ecx
call eax
mov ecx, dword [ebp - 0x10c]
add esp, 8
movzx eax, ax
mov dword [ebp - 0xfc], eax
mov dword [ebp + edi - 0x4c], eax
test byte [ecx + 0x18], 0xc
je 0x4a6aaa
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0xf0]
sub edx, dword [ecx + 0x38]
mov ecx, dword [ebp - 0x10c]
add eax, edx
cmp eax, dword [ecx + 0x28]
mov ecx, dword [ebp - 0xf0]
jg 0x4a6ae1
push dword [ebp - 0xfc]
mov eax, dword [ebp - 0x14c]
push ecx
add eax, edx
push eax
call fcn.00546100
mov edx, dword [ebp - 0x110]
add esp, 0xc
mov eax, dword [ebp - 0x14c]
sub eax, dword [edx + 0x38]
add eax, dword [ebp - 0xf0]
mov dword [ebp + edi - 0x138], eax
mov eax, dword [ebp - 0xfc]
jmp 0x4a6ab0
mov edx, dword [ebp - 0x110]
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x124]
push eax
movzx eax, byte [edx + 0xc]
sub ecx, eax
add ecx, esi
push ecx
push edx
call fcn.004b0170
add esp, 0x10
jmp 0x4a6870
lea eax, [esi*4]
jmp 0x4a7cfb
push 0x5a3ec4
push 0x11483
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
lea eax, [edi + 4]
mov dword [ebp - 0xec], 0xb
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00546c00
add esp, 0x20
jmp 0x4a7d0a
mov eax, dword [ebp - 0x10c]
mov esi, dword [eax + 0x24]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, dword [ebp - 0x114]
add edi, 3
and edi, 0xfffffffc
lea ebx, [edi + edi*2]
lea eax, [esi + ebx*2]
cdq
push edx
push eax
call fcn.004f8900
mov esi, eax
add esp, 8
mov dword [ebp - 0xdc], esi
test esi, esi
jne 0x4a6b71
mov dword [ebp - 0xec], 7
jmp 0x4a7d0a
mov ecx, dword [ebp - 0x24]
lea eax, [esi + ebx*2]
mov dword [ebp - 0x104], eax
lea edx, [esi + edi*4]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xe0], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x128], eax
mov al, byte [ecx + 3]
mov byte [ebp - 0xe5], al
movzx eax, al
mov dword [ebp - 0x150], eax
xor eax, eax
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0x114], eax
jle 0x4a6e44
shl eax, 2
mov dword [ebp - 0x12c], eax
mov ebx, dword [ebp + eax - 0x24]
mov dword [ebp - 0x118], ebx
movzx eax, word [ebx + 0x1a]
mov edi, dword [ebx + 0x38]
mov ecx, eax
movzx esi, word [ebx + 0x12]
mov dword [ebp - 0x144], eax
add esi, edi
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xfc], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edi]
cmp al, byte [ecx]
jne 0x4a7062
movzx eax, byte [ebx + 0xc]
movzx ecx, word [ebx + 0x18]
add ecx, eax
mov eax, dword [ebp - 0xe4]
add ecx, ecx
push ecx
push 0
lea eax, [edx + eax*2]
push eax
call fcn.00546c00
mov al, byte [ebx + 0xc]
add esp, 0xc
test al, al
je 0x4a6cc4
movzx edx, word [ebx + 0x1c]
test edx, edx
je 0x4a6c8b
mov ebx, dword [ebp - 0x140]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0xe4]
add ecx, edi
mov edi, dword [ebp - 0xdc]
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [ebp - 0xf0]
mov dword [ebp - 0xe4], eax
sub edx, 1
jne 0x4a6c47
mov ebx, dword [ebp - 0x118]
mov dword [ebp - 0xfc], esi
mov al, byte [ebx + 0xc]
xor edx, edx
test al, al
je 0x4a6cc4
mov edi, dword [ebp - 0xe4]
lea ecx, [ebx + 0x24]
mov esi, dword [ebp - 0xdc]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + edi*4], eax
inc edx
movzx eax, byte [ebx + 0xc]
inc edi
cmp edx, eax
jl 0x4a6ca0
mov esi, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], edi
mov edi, dword [ebp - 0xf0]
movzx eax, word [ebx + 0x12]
xor edx, edx
movzx ecx, word [ebx + 0x18]
add eax, edi
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x4a6d33
mov ebx, dword [ebp - 0xf0]
nop dword [eax + eax]
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [ebp - 0x144]
movzx eax, ax
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0xe4]
add ecx, ebx
mov ebx, dword [ebp - 0xdc]
mov dword [ebx + eax*4], ecx
inc eax
mov ebx, dword [ebp - 0xf0]
mov dword [ebp - 0xe4], eax
cmp edx, edi
jb 0x4a6cf0
mov ebx, dword [ebp - 0x118]
jmp 0x4a6d39
mov eax, dword [ebp - 0xe4]
mov edx, dword [ebp - 0x12c]
mov dword [ebp + edx - 0x8c], eax
mov eax, dword [ebp - 0xf8]
cmp eax, dword [ebp - 0x130]
jge 0x4a6e2b
cmp byte [ebp - 0xe5], 0
jne 0x4a6e2b
mov ecx, dword [ebp - 0xe4]
mov esi, dword [ebp - 0xd8]
movzx eax, word [ebp + edx - 0x4c]
mov edi, dword [ebp - 0x11c]
push eax
push dword [ebp + edx - 0x138]
mov word [esi + ecx*2], ax
mov esi, dword [ebp - 0x104]
add esi, edi
add edi, eax
push esi
mov dword [ebp - 0x11c], edi
call fcn.00546100
mov eax, dword [ebp - 0x128]
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xd8]
movzx eax, ax
add eax, esi
mov esi, dword [ebp - 0xdc]
mov dword [esi + ecx*4], eax
mov eax, ecx
mov ecx, dword [ebp - 0x128]
sub word [edx + eax*2], cx
cmp byte [ebx + 8], 0
jne 0x4a6df9
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esi + ecx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xe4]
inc eax
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xf8]
jmp 0x4a6e31
cmp word [edx + eax*2], 4
jae 0x4a6e1c
mov ecx, dword [ebp - 0x104]
mov byte [ecx + edi], 0
inc edi
inc word [edx + eax*2]
cmp word [edx + eax*2], 4
jb 0x4a6e06
mov dword [ebp - 0x11c], edi
inc eax
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xf8]
jmp 0x4a6e31
mov edx, dword [ebp - 0xd8]
inc eax
mov dword [ebp - 0xf8], eax
cmp eax, dword [ebp - 0x114]
jl 0x4a6bc3
mov eax, dword [ebp - 0x128]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [ebp - 0x10c]
add edi, 0xfffffff4
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xfc], ebx
mov eax, dword [eax + 0x28]
add edi, eax
mov dword [ebp - 0x11c], edi
cmp dword [ebp - 0x114], ecx
jle 0x4a6f6d
nop dword [eax]
mov esi, dword [ebp + ebx*4 - 0x24]
mov edx, dword [ebp + ebx*4 - 0x8c]
mov dword [ebp - 0x12c], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp + ecx*4 - 0xd4], eax
mov dword [ebp + ecx*4 - 0xbc], edx
test ecx, ecx
je 0x4a6eb6
cmp edx, dword [ebp + ecx*4 - 0xc0]
jne 0x4a6eb6
dec ecx
mov dword [ebp - 0xf0], ecx
cmp byte [ebp - 0xe5], 0
jne 0x4a6ee0
mov eax, dword [ebp - 0x110]
inc ecx
mov dword [ebp - 0xf0], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp + ecx*4 - 0xd4], eax
lea eax, [edx + 1]
mov dword [ebp + ecx*4 - 0xbc], eax
sub edi, dword [esi + 0x14]
lea eax, [ebp - 0x4c]
cmp byte [esi + 0xc], 0
lea eax, [eax + ebx*4]
mov dword [ebp - 0x130], eax
mov dword [eax], edi
mov dword [ebp - 0x104], 0
jbe 0x4a6f49
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0x104]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0x104], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4a6f04
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xf0]
mov edx, dword [ebp - 0x12c]
mov ebx, dword [ebp - 0xfc]
mov dword [eax], edi
mov edi, dword [ebp - 0x11c]
inc ecx
mov dword [ebp + ebx*4 - 0x60], edx
inc ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf0], ecx
cmp ebx, dword [ebp - 0x114]
jl 0x4a6e80
mov ecx, dword [ebp - 0x114]
mov eax, ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x118], 0
test ecx, ecx
jle 0x4a7212
mov ecx, dword [ebp - 0xe4]
mov ebx, 1
xor edx, edx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xf0], edx
nop word [eax + eax]
mov esi, dword [ebp + edx - 0x4c]
cmp esi, edi
jle 0x4a70b7
nop dword [eax]
cmp ebx, eax
jl 0x4a6fe6
lea eax, [ebx + 1]
mov dword [ebp - 0xf8], eax
cmp eax, 5
jg 0x4a71b8
mov dword [ebp + edx - 0x48], 0
mov esi, dword [ebp + edx - 0x4c]
mov dword [ebp + edx - 0x5c], ecx
mov edi, dword [ebp + edx - 0x60]
mov ecx, dword [ebp - 0xd8]
lea ebx, [edi - 1]
movzx eax, word [ecx + ebx*2]
test ax, ax
jne 0x4a701b
lea eax, [ebp - 0xe4]
push ebx
push eax
call fcn.004acf20
mov edx, dword [ebp - 0xf0]
add esp, 8
mov ecx, dword [ebp - 0xd8]
movzx eax, ax
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [ebp - 0xe5], 0
mov dword [ebp + edx - 0x4c], esi
jne 0x4a7091
cmp edi, dword [ebp - 0xe4]
jge 0x4a708f
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x4a7054
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.004acf20
add esp, 8
movzx eax, ax
mov edx, dword [ebp - 0xf0]
movzx eax, ax
add eax, 2
jmp 0x4a7091
push 0x5a3ec4
push 0x114c5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4a7c94
xor eax, eax
add dword [ebp + edx - 0x48], eax
mov ecx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xf8]
mov dword [ebp + edx - 0x60], ebx
mov ebx, dword [ebp - 0xfc]
cmp esi, dword [ebp - 0x11c]
jg 0x4a6fc0
mov edi, dword [ebp + edx - 0x60]
cmp edi, ecx
jge 0x4a715f
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4a70f1
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.004acf20
mov ecx, dword [ebp - 0xe4]
add esp, 8
mov edx, dword [ebp - 0xf0]
movzx eax, ax
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [ebp - 0x11c]
jg 0x4a7197
inc edi
mov dword [ebp + edx - 0x4c], esi
cmp byte [ebp - 0xe5], 0
mov dword [ebp + edx - 0x60], edi
jne 0x4a7153
cmp edi, ecx
jge 0x4a7151
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4a7143
lea eax, [ebp - 0xe4]
push edi
push eax
call fcn.004acf20
mov ecx, dword [ebp - 0xe4]
add esp, 8
movzx eax, ax
mov edx, dword [ebp - 0xf0]
movzx eax, ax
add eax, 2
jmp 0x4a7153
xor eax, eax
sub dword [ebp + edx - 0x48], eax
cmp edi, ecx
jl 0x4a70c3
mov eax, ebx
mov dword [ebp - 0xf8], eax
mov edi, dword [ebp - 0x118]
add edx, 4
inc edi
mov dword [ebp - 0xf0], edx
inc ebx
mov dword [ebp - 0x118], edi
mov dword [ebp - 0xfc], ebx
cmp edi, eax
jge 0x4a7212
mov edi, dword [ebp - 0x11c]
jmp 0x4a6fb0
cmp edi, ecx
jge 0x4a715f
cmp dword [ebp - 0x118], 0
jle 0x4a71aa
mov eax, dword [ebp + edx - 0x64]
jmp 0x4a71ac
xor eax, eax
cmp edi, eax
jle 0x4a71e5
mov eax, dword [ebp - 0xf8]
jmp 0x4a7167
push 0x5a3ec4
push 0x1153d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4a7c94
push 0x5a3ec4
push 0x1155e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4a7c94
dec eax
mov ecx, eax
mov dword [ebp - 0x118], eax
test ecx, ecx
jle 0x4a73ae
shl ecx, 2
lea eax, [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x140], eax
mov edi, dword [eax]
lea eax, [ebp + ecx - 0x50]
mov dword [ebp - 0x134], eax
mov eax, dword [eax]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x60]
sub eax, 4
mov dword [ebp - 0x104], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [ebp - 0xd8]
lea esi, [ebx - 1]
mov eax, esi
sub eax, dword [ebp - 0x150]
inc eax
cmp word [ecx + eax*2], 0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0xfc], ecx
jne 0x4a7290
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004acf20
add esp, 8
nop dword [eax]
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x12c], esi
cmp word [eax + esi*2], 0
jne 0x4a72b9
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004acf20
add esp, 8
test edi, edi
je 0x4a7309
cmp dword [ebp + 0x18], 0
mov edx, ebx
jne 0x4a7365
mov ecx, dword [ebp - 0xf8]
mov eax, 2
dec ecx
cmp dword [ebp - 0x118], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [ebp - 0xf0]
sub ecx, eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0xfc]
movzx eax, word [eax]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4a7365
mov edx, dword [ebp - 0xfc]
mov ecx, 0xfffffffe
mov ebx, dword [ebp - 0x104]
movzx eax, word [edx]
sub edx, 2
add eax, 2
mov dword [ebp - 0xfc], edx
mov edx, dword [ebp - 0x144]
add edi, eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0xf0]
add eax, ecx
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0xf0], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [ebp - 0x12c]
jns 0x4a7290
jmp 0x4a736b
mov eax, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x140]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x134]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x118]
cmp ecx, 1
jle 0x4a7399
mov ebx, dword [ebp - 0x104]
lea eax, [ecx*4]
mov eax, dword [ebx + eax - 4]
jmp 0x4a739b
xor eax, eax
cmp edx, eax
jle 0x4a7414
dec ecx
mov dword [ebp - 0x118], ecx
test ecx, ecx
jg 0x4a7223
mov eax, dword [ebp - 0x24]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx ebx, byte [eax]
lea eax, [esi + 1]
mov dword [ebp - 0x134], ebx
cmp dword [ebp - 0xf8], esi
jle 0x4a7561
nop
cmp esi, dword [ebp - 0x114]
jge 0x4a7496
mov eax, dword [ebp + esi*4 - 0x24]
mov dword [ebp + esi*4 - 0x38], eax
mov dword [ebp + esi*4 - 0x24], 0
mov dword [ebp - 0x104], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4a7445
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4a7445
cmp dword [edx + 0x60], 0
je 0x4a7441
push ecx
call fcn.0051c8c0
jmp 0x4a746d
push 0x5a3ec4
push 0x11588
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4a7c94
xor eax, eax
jmp 0x4a7470
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4a7476
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4a7468
call fcn.004ce580
jmp 0x4a746d
call fcn.004cf840
add esp, 4
mov dword [ebp - 0xec], eax
mov edi, dword [ebp - 0xf4]
inc edi
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xf4], edi
test eax, eax
jne 0x4a7c94
jmp 0x4a754d
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0x108]
push 0
cmovne ecx, eax
lea eax, [ebp - 0x13c]
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
call fcn.004a45f0
add esp, 0x14
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4a7c94
mov edi, dword [ebp - 0x104]
push ebx
push edi
call fcn.00530160
mov ecx, dword [ebp - 0x10c]
add esp, 8
inc dword [ebp - 0xf4]
mov eax, dword [ebp - 0xe4]
mov dword [ebp + esi*4 - 0x38], edi
cmp byte [ecx + 0x11], 0
mov dword [ebp + esi*4 - 0x8c], eax
je 0x4a753b
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x110]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.004d1ff0
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4a7c94
mov eax, dword [ebp - 0x13c]
mov edi, dword [ebp - 0xf4]
mov dword [ebp - 0x108], eax
inc esi
mov eax, 1
cmp esi, dword [ebp - 0xf8]
jl 0x4a73d0
jmp 0x4a7563
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x4a75b7
nop dword [eax]
mov eax, dword [ebp + ecx*4 - 0x38]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0xa0], edx
mov dword [ebp + ecx*4 - 0x74], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0x18], ax
xor eax, eax
test ecx, ecx
jle 0x4a75b2
nop dword [eax]
nop dword [eax + eax]
cmp dword [ebp + eax*4 - 0xa0], edx
je 0x4a7723
inc eax
cmp eax, ecx
jl 0x4a75a0
inc ecx
cmp ecx, edi
jl 0x4a7570
mov ecx, dword [ebp - 0xf4]
xor edi, edi
test ecx, ecx
jle 0x4a7665
mov ebx, ecx
nop dword [eax]
xor esi, esi
lea edx, [esi + 1]
cmp ebx, edx
jle 0x4a75f4
nop dword [eax]
mov eax, dword [ebp + edx*4 - 0x74]
mov ecx, edx
cmp eax, dword [ebp + esi*4 - 0x74]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, ebx
jl 0x4a75e0
mov ebx, dword [ebp + esi*4 - 0x74]
mov dword [ebp + esi*4 - 0x74], 0xffffffff
cmp esi, edi
je 0x4a764a
jle 0x4a7629
mov eax, dword [ebp - 0x10c]
xor edx, edx
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + esi*4 - 0x38]
inc ecx
add ecx, esi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.004fba80
add esp, 8
mov eax, dword [ebp + edi*4 - 0x38]
push ebx
mov ecx, dword [eax + 0x48]
mov ax, word [ebp + esi*2 - 0x18]
push ecx
mov word [ecx + 0x1c], ax
call fcn.004fba80
mov eax, dword [ebp + edi*4 - 0x38]
add esp, 8
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0xf4]
inc edi
cmp edi, ebx
jl 0x4a75d0
mov ebx, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp + ecx*4 - 0x3c]
mov edx, dword [ebp - 0x120]
mov eax, dword [eax + 4]
bswap eax
mov dword [edx], eax
test bl, 8
jne 0x4a76a2
mov edx, dword [ebp - 0x114]
cmp edx, ecx
je 0x4a76a2
lea eax, [ebp - 0x38]
lea esi, [ebp - 0x24]
cmovge eax, esi
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + ecx*4 - 0x3c]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10c]
cmp byte [eax + 0x11], 0
je 0x4a78e3
mov esi, dword [ebp - 0x38]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x120], 0
movzx edx, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add edx, eax
mov dword [ebp - 0x108], edx
cmp dword [ebp - 0xe4], ebx
jle 0x4a78e6
mov eax, esi
mov dword [ebp - 0x104], ebx
mov dword [ebp - 0xf8], eax
nop dword [eax]
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + ebx*4]
mov dword [ebp - 0xfc], ecx
cmp ebx, edx
jne 0x4a777c
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
mov dword [ebp - 0x134], eax
inc edi
cmp edi, dword [ebp - 0xf4]
jge 0x4a7750
mov esi, dword [ebp + edi*4 - 0x38]
jmp 0x4a7754
push 0x5a3ec4
push 0x115d2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4a7c94
mov esi, dword [ebp + edi*4 - 0x24]
movzx eax, word [esi + 0x18]
add eax, dword [ebp - 0x134]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add edx, ecx
cmp ebx, edx
je 0x4a7714
mov ecx, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0x108], edx
mov edx, dword [ebp - 0x104]
cmp ebx, dword [ebp + edx - 0x60]
mov edx, dword [ebp - 0x108]
jne 0x4a77bb
mov eax, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x120], eax
shl eax, 2
cmp byte [ebp - 0xe5], 0
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + eax - 0x38]
mov dword [ebp - 0xf8], eax
je 0x4a78d6
cmp edi, dword [ebp - 0xf4]
jge 0x4a77e3
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0xa0]
mov eax, dword [ebp - 0xf8]
jne 0x4a77e3
cmp ecx, dword [esi + 0x38]
jb 0x4a77e3
cmp ecx, dword [esi + 0x3c]
jb 0x4a78d6
cmp word [ebp - 0x128], 0
jne 0x4a7818
lea edx, [ebp - 0x100]
push edx
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0x10c]
call fcn.004d1ff0
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4a783a
lea eax, [ebp - 0xe4]
push ebx
push eax
call fcn.004acf20
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xf8]
cmp ax, word [ecx + 0x10]
jbe 0x4a78bc
cmp dword [ebp - 0xec], 0
jne 0x4a7c94
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0xfc]
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [ebp - 0x68]
add esp, 0xc
cmp eax, dword [ebp - 0x6c]
jae 0x4a78ca
mov edx, dword [esi + 0x3c]
mov ecx, dword [ebp - 0xfc]
cmp edx, ecx
jb 0x4a7886
add eax, ecx
cmp edx, eax
jb 0x4a795a
mov edx, dword [ebp - 0xf8]
lea eax, [ebp - 0x100]
push eax
movzx eax, word [ebp - 0x66]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.004d1ff0
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
jmp 0x4a78c2
mov eax, dword [ebp - 0xec]
test eax, eax
jne 0x4a7c94
mov eax, dword [ebp - 0xf8]
mov edx, dword [ebp - 0x108]
inc ebx
cmp ebx, dword [ebp - 0xe4]
jl 0x4a76f0
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xf4]
xor edi, edi
dec eax
test eax, eax
jle 0x4a7a88
nop word [eax + eax]
mov eax, dword [ebp + edi*4 - 0x60]
mov edx, dword [ebp - 0xdc]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [ebp + edi*4 - 0x38]
mov ebx, dword [ebp - 0x148]
add ebx, dword [ebp - 0x14c]
mov dword [ebp - 0x134], edx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x108], ecx
mov ecx, dword [ebp - 0x128]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [ebp - 0x108]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x4a7987
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4a7a31
push 0x5a3ec4
push 0xfc4d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0049d9a0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4a7c94
cmp byte [ebp - 0xe5], 0
je 0x4a7a16
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0x134]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [ebp - 0xa0]
mov esi, ebx
mov ecx, dword [ebp - 0xa4]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x4a7a04
jb 0x4a79c9
cmp ecx, 0x7f
ja 0x4a79da
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4a7a31
test edx, edx
ja 0x4a7a04
jb 0x4a79e8
cmp ecx, 0x3fff
ja 0x4a7a04
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4a7a31
push edx
push ecx
push ebx
call fcn.004d26b0
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4a7a31
sub esi, 4
cmp eax, 4
jne 0x4a7a37
mov eax, dword [ebp - 0x110]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [ebp - 0x108]
add dword [ebp - 0x148], edx
lea eax, [ebp - 0x100]
push eax
push dword [ecx + 4]
mov eax, dword [ebp - 0x124]
push ebx
push edx
push esi
add eax, edi
push eax
push dword [ebp - 0x110]
call fcn.004c7540
mov esi, dword [ebp - 0x100]
add esp, 0x1c
mov dword [ebp - 0xec], esi
test esi, esi
jne 0x4a7c94
mov eax, dword [ebp - 0xf4]
inc edi
dec eax
cmp edi, eax
jl 0x4a7900
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, dword [ebp - 0xf4]
mov dword [ebp - 0x120], edi
cmp edi, dword [ebp - 0xf4]
jge 0x4a7b78
mov eax, edi
lea ebx, [ebp - 0xc]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x4a7b62
test edi, edi
jns 0x4a7ad1
mov eax, dword [ebp + ecx*4 - 0x90]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x4a7b62
test ecx, ecx
jne 0x4a7ade
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x4a7b15
cmp ecx, dword [ebp - 0x114]
jge 0x4a7afa
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
add eax, dword [ebp + ecx*4 - 0x90]
jmp 0x4a7b00
mov eax, dword [ebp - 0xe4]
mov esi, dword [ebp + ecx*4 - 0x60]
xor edx, edx
cmp byte [ebp - 0xe5], dl
sete dl
add edx, dword [ebp + ecx*4 - 0x64]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [ebp - 0xe4]
push ecx
push esi
push edx
push eax
push dword [ebp + edi - 0x38]
call fcn.004b0350
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x100], ecx
test ecx, ecx
jne 0x4a7c94
mov eax, dword [ebp + edi - 0x38]
mov ecx, dword [ebp - 0x11c]
sub ecx, dword [ebp + edi - 0x4c]
mov edi, dword [ebp - 0x120]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
inc edi
mov dword [ebp - 0x120], edi
cmp edi, dword [ebp - 0xf4]
jl 0x4a7aa5
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x4a7be5
mov ebx, dword [ebp - 0x110]
cmp word [ebx + 0x18], 0
jne 0x4a7be5
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x4a7be5
push 0xffffffffffffffff
push esi
call fcn.004af380
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x100]
push eax
push ebx
push dword [ebp - 0x38]
call fcn.004ae6d0
mov ecx, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], ecx
test ecx, ecx
jne 0x4a7c59
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004b57c0
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xec], ecx
jmp 0x4a7c59
mov ecx, dword [ebp - 0x10c]
cmp byte [ecx + 0x11], 0
je 0x4a7c53
cmp word [ebp - 0x128], 0
mov edi, dword [ebp - 0xf4]
jne 0x4a7c4b
xor esi, esi
test edi, edi
jle 0x4a7c4b
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x38]
lea edx, [ebp - 0x100]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.004d1ff0
mov ecx, dword [ebp - 0x10c]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4a7c10
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xec], ecx
jmp 0x4a7c5f
mov ecx, dword [ebp - 0xec]
jmp 0x4a7c5f
mov ecx, dword [ebp - 0xec]
mov edi, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0x114]
mov esi, edi
cmp edi, ebx
jge 0x4a7c94
nop dword [eax + eax]
mov eax, dword [ebp + esi*4 - 0x24]
test ecx, ecx
jne 0x4a7c89
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004b57c0
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, ebx
jl 0x4a7c70
mov dword [ebp - 0xec], ecx
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x4a7d0a
cmp dword [0x5c9210], 0
je 0x4a7cec
mov eax, dword [0x5d5078]
test eax, eax
je 0x4a7cba
push eax
call dword [0x5c926c]
add esp, 4
push ebx
call dword [0x5c9248]
sub dword [0x5d4f88], eax
dec dword [0x5d4fac]
push ebx
call dword [0x5c9240]
mov eax, dword [0x5d5078]
add esp, 8
test eax, eax
je 0x4a7d0a
push eax
call dword [0x5c9274]
add esp, 4
jmp 0x4a7d0a
push ebx
call dword [0x5c9240]
add esp, 4
jmp 0x4a7d0a
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00546c00
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x114], ebx
jle 0x4a7d76
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x4a7d6d
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4a7d64
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00442320
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4a7d6d
push edx
call fcn.004fbb20
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x114]
jl 0x4a7d14
xor ebx, ebx
cmp dword [ebp - 0xf4], ebx
jle 0x4a7de2
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x4a7dd9
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4a7dd0
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00442320
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4a7dd9
push edx
call fcn.004fbb20
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xf4]
jl 0x4a7d80
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xec]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00441ed9
mov esp, ebp
pop ebp
ret