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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x5da084]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x94]
push edi
xor edi, edi
mov dword [esp + 0x48], edx
push 0x40
mov ebx, ecx
mov dword [esp + 0x7c], esi
push edi
push eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x158], edi
mov byte [esp + 0x15c], 0
call fcn.00570cd0
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x458d15
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
lea esi, [ecx + edx]
cmp esi, 2
jae 0x458d2b
mov dword [esp + 0x50], edi
jmp 0x458d5a
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x458d39
mov dword [esp + 0x50], edi
jmp 0x458d50
cmp eax, esi
jne 0x458d4b
mov eax, dword [ebp + 0x10]
add esi, 0xfffffffe
add esi, eax
mov dword [esp + 0x50], esi
jmp 0x458d53
dec eax
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x458d7b
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x458d8f
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x58], ecx
mov eax, dword [ecx]
bswap eax
mov dword [esp + 0x38], eax
mov ebx, eax
mov dword [esp + 0x74], eax
test edi, edi
jne 0x458e87
mov eax, dword [esp + 0x3c]
cmp ebx, dword [eax + 0x30]
jbe 0x458ddd
push 0x5cad1c
push 0x11310
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
jmp 0x458e73
mov eax, dword [eax]
lea ecx, [esp + 0x24]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xdc]
call eax
mov edi, eax
add esp, 0x10
mov dword [esp + 0x10], edi
test edi, edi
jne 0x458e77
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0xdc], eax
cmp byte [eax], 0
jne 0x458e71
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x458e38
mov eax, dword [edx + 4]
cmp ebx, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x3c]
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 ecx, dword [esp + esi*4 + 0xdc]
call fcn.00452570
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x458e71
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x458e77
mov ecx, dword [ecx + 0x48]
call fcn.0044c510
mov ebx, 4
mov dword [esp + 0x1c], edi
mov eax, esi
imul ebx, eax
jmp 0x458e8e
xor edi, edi
mov dword [esp + 0x10], edi
mov ebx, 4
mov dword [esp + 0x1c], edi
mov eax, esi
imul ebx, eax
jmp 0x458e8e
lea ebx, [esi*4]
test edi, edi
jne 0x45a188
lea eax, [esp + 0xdc]
add eax, ebx
mov dword [esp + 0x34], eax
mov ecx, dword [eax]
cmp dword [ecx + 0x14], edi
jge 0x458ec5
call fcn.00452330
mov edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x458ff8
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov eax, dword [esp + 0x20]
add eax, 4
movzx ecx, word [ecx + 0x18]
add eax, ecx
mov ecx, esi
dec esi
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x459012
mov ebx, dword [esp + 0x40]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x458f34
mov eax, dword [esp + 0x50]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x458f34
mov eax, dword [ebx + 0x24]
push eax
mov dword [esp + esi*4 + 0x70], eax
mov ebx, dword [eax]
mov eax, dword [esp + 0x44]
bswap ebx
push eax
mov dword [esp + 0x40], ebx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x7c], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xfc], eax
mov eax, dword [esp + 0x40]
mov byte [eax + 0xc], 0
jmp 0x458da4
mov ecx, dword [esp + 0x50]
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 edi, cx
and edi, eax
add edi, dword [ebx + 0x38]
push edi
mov dword [esp + esi*4 + 0x70], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x3c], eax
mov ebx, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x30], edx
mov dword [esp + esi*4 + 0xfc], edx
test byte [eax + 0x18], 0xc
je 0x458fcb
mov eax, dword [esp + 0x40]
mov ecx, edi
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
mov edx, dword [esp + 0x3c]
cmp eax, dword [edx + 0x28]
mov edx, dword [esp + 0x30]
jg 0x458fcb
mov eax, dword [esp + 0x78]
push edx
add eax, ecx
push edi
push eax
call fcn.00570750
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov edx, dword [esp + 0x30]
sub edi, dword [eax + 0x38]
add edi, dword [esp + 0x78]
mov dword [esp + esi*4 + 0x6c], edi
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
push edx
mov edx, dword [esp + 0x58]
mov ecx, edi
movzx eax, byte [edi + 0xc]
sub edx, eax
add edx, esi
call fcn.00457ea0
mov edi, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x10], edi
jmp 0x458da4
push ebx
lea eax, [esp + 0xe0]
push 0
push eax
call fcn.00570cd0
add esp, 0xc
xor ebx, ebx
jmp 0x45a199
lea esi, [eax + 3]
mov eax, dword [esp + 0x3c]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.0043b050
mov ebx, eax
add esp, 8
mov dword [esp + 0xa0], ebx
test ebx, ebx
jne 0x459045
lea edi, [eax + 7]
jmp 0x45a199
mov ecx, dword [esp + 0xdc]
lea eax, [ebx + esi*4]
mov dword [esp + 0xa4], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x34], eax
mov dword [esp + 0x9c], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x64], eax
mov al, byte [ecx + 2]
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x44], eax
jle 0x4592b2
mov ebx, dword [esp + 0x98]
nop dword [eax + eax]
shl eax, 2
mov dword [esp + 0x4c], eax
mov edi, dword [esp + eax + 0xdc]
mov dword [esp + 0x28], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x20], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x459516
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x20]
add eax, eax
push eax
mov eax, dword [esp + 0xa8]
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.00570cd0
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x459195
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x20], edx
jb 0x4594ec
test edx, edx
je 0x459167
mov edi, dword [esp + 0x54]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x24]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0xa0]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x459130
mov edi, dword [esp + 0x28]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x2c], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x459195
mov esi, dword [esp + 0xa0]
lea ecx, [edi + 0x24]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebx
cmp edx, eax
jl 0x459178
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x98], ebx
movzx eax, word [edi + 0x12]
mov edx, dword [esp + 0x54]
add eax, edx
movzx ecx, word [edi + 0x18]
lea eax, [eax + ecx*2]
mov dword [esp + 0x24], eax
cmp esi, eax
jae 0x4591e2
mov edi, eax
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x68]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0xa0]
add ecx, edx
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edi
jb 0x4591b0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x98], ebx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
mov dword [esp + ecx + 0x124], ebx
cmp eax, dword [esp + 0x60]
jge 0x4592a3
cmp byte [esp + 0xf], 0
jne 0x4592a3
movzx eax, word [esp + ecx + 0xfc]
mov ecx, dword [esp + 0xa4]
mov esi, dword [esp + 0x34]
push eax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x1c]
add esi, ecx
add ecx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
push dword [esp + eax + 0x70]
push esi
call fcn.00570750
mov ecx, dword [esp + 0x70]
add esp, 0xc
mov edx, dword [esp + 0xa4]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0xa0]
mov dword [esi + ebx*4], eax
mov ax, word [edx + ebx*2]
sub ax, cx
mov word [edx + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x459276
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x459297
cmp ecx, 4
jae 0x459297
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x459283
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x98], ebx
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x44]
jl 0x4590a0
mov eax, dword [esp + 0x64]
xor ecx, ecx
movzx esi, ax
xor ebx, ebx
mov eax, dword [esp + 0x3c]
add esi, 0xfffffff4
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
add esi, dword [eax + 0x28]
mov dword [esp + 0x54], esi
cmp dword [esp + 0x44], ecx
jle 0x4593b9
nop dword [eax]
mov esi, dword [esp + ebx*4 + 0xdc]
mov edx, dword [esp + ebx*4 + 0x124]
mov dword [esp + 0x68], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + ecx*4 + 0xa8], eax
mov dword [esp + ecx*4 + 0xc0], edx
test ecx, ecx
je 0x459315
cmp edx, dword [esp + ecx*4 + 0xbc]
jne 0x459315
dec ecx
mov dword [esp + 0x18], ecx
cmp byte [esp + 0xf], 0
jne 0x459339
mov eax, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + ecx*4 + 0xa8], eax
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0xc0], eax
mov edi, dword [esp + 0x54]
lea eax, [esp + 0xfc]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
cmp byte [esi + 0xc], 0
mov dword [esp + 0x60], eax
mov dword [eax], edi
mov dword [esp + 0x34], 0
jbe 0x45939a
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x3c]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x3c], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x459361
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x20]
mov dword [eax], edi
mov dword [esp + ebx*4 + 0x110], edx
inc ecx
inc ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x44]
jl 0x4592e0
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x110]
mov ebx, dword [esp + 0x98]
sub edx, 4
mov dword [esp + 0x20], 0
mov eax, ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], edx
test ecx, ecx
jle 0x4596b9
xor edx, edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], edx
nop word [eax + eax]
lea eax, [esp + 0xfc]
add eax, edx
mov dword [esp + 0x24], eax
mov edi, dword [eax]
cmp edi, esi
jle 0x459569
mov esi, dword [esp + 0x98]
lea ecx, [esp + 0x100]
add ecx, edx
nop word [eax + eax]
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0xfc]
lea eax, [eax + edx]
mov dword [esp + 0x34], ecx
cmp ebx, dword [esp + 0x4c]
jl 0x459465
inc ebx
mov dword [esp + 0x4c], ebx
cmp ebx, 5
jg 0x45965f
mov dword [ecx], 0
mov edi, dword [eax]
mov dword [esp + edx + 0x114], esi
lea eax, [esp + 0x110]
add eax, edx
mov dword [esp + 0x2c], eax
mov ebx, dword [eax]
mov eax, dword [esp + 0xa4]
lea edx, [ebx - 1]
movzx eax, word [eax + edx*2]
mov dword [esp + 0x60], edx
test ax, ax
jne 0x45949e
lea ecx, [esp + 0x98]
call fcn.004582a0
mov ecx, dword [esp + 0x34]
movzx eax, ax
mov edx, dword [esp + 0x24]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0xf], 0
mov dword [edx], edi
jne 0x459542
cmp ebx, esi
jge 0x459540
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4594e0
mov edx, ebx
lea ecx, [esp + 0x98]
call fcn.004582a0
movzx eax, ax
mov ecx, dword [esp + 0x34]
movzx eax, ax
add eax, 2
jmp 0x459542
push 0x5cad1c
push 0x129ba
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x45a199
push 0x5cad1c
push 0x129a2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x45a199
xor eax, eax
mov edx, dword [esp + 0x2c]
add dword [ecx], eax
mov eax, dword [esp + 0x60]
mov dword [edx], eax
mov edx, dword [esp + 0x18]
cmp edi, dword [esp + 0x54]
jg 0x459430
mov ebx, dword [esp + 0x98]
mov ecx, dword [esp + 0x2c]
jmp 0x459576
lea ecx, [esp + 0x110]
add ecx, edx
mov dword [esp + 0x2c], ecx
mov esi, dword [ecx]
cmp esi, ebx
jge 0x459613
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x4595a5
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.004582a0
mov ecx, dword [esp + 0x2c]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x54]
jg 0x45960b
mov edx, dword [esp + 0x24]
inc esi
cmp byte [esp + 0xf], 0
mov dword [ecx], esi
mov dword [edx], edi
jne 0x4595f6
cmp esi, ebx
jge 0x4595f4
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x4595ec
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.004582a0
mov ecx, dword [esp + 0x2c]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4595f6
xor eax, eax
mov edx, dword [esp + 0x18]
sub dword [esp + edx + 0x100], eax
cmp esi, ebx
jl 0x459580
jmp 0x45960f
mov edx, dword [esp + 0x18]
cmp esi, ebx
jl 0x45961f
mov ecx, dword [esp + 0x30]
mov eax, ecx
mov dword [esp + 0x4c], eax
jmp 0x45963d
cmp dword [esp + 0x20], 0
jle 0x45962f
mov eax, dword [esp + 0x28]
mov eax, dword [edx + eax]
jmp 0x459631
xor eax, eax
cmp esi, eax
jle 0x45968f
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x20]
add edx, 4
inc esi
mov dword [esp + 0x18], edx
inc ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], ecx
cmp esi, eax
jge 0x459689
mov esi, dword [esp + 0x54]
jmp 0x459400
push 0x5cad1c
push 0x12a1f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x45a199
mov edx, dword [esp + 0x28]
jmp 0x4596bd
push 0x5cad1c
push 0x12a40
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x45a199
mov dword [esp + 0x28], edx
dec eax
mov ecx, eax
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x459842
nop dword [eax]
shl ecx, 2
lea eax, [esp + 0xfc]
add eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x2c], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0xf8]
mov ecx, dword [ecx + edx]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x6c], eax
mov eax, dword [eax]
lea esi, [ecx - 1]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0xa4]
mov edx, esi
sub edx, dword [esp + 0x7c]
inc edx
cmp word [ecx + edx*2], 0
lea eax, [ecx + edx*2]
mov dword [esp + 0x20], eax
jne 0x459730
lea ecx, [esp + 0x98]
call fcn.004582a0
mov ecx, dword [esp + 0xa4]
mov ebx, dword [esp + 0x20]
jmp 0x459747
mov ecx, dword [esp + 0xa4]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x34], esi
mov dword [esp + 0x68], esi
jne 0x459764
mov edx, esi
lea ecx, [esp + 0x98]
call fcn.004582a0
test edi, edi
je 0x4597b1
cmp dword [ebp + 0x10], 0
mov eax, dword [esp + 0x24]
mov edx, eax
jne 0x4597f6
mov ecx, dword [esp + 0x4c]
mov eax, 2
mov ebx, dword [esp + 0x20]
dec ecx
cmp dword [esp + 0x18], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4597f6
movzx eax, word [ebx]
mov ecx, 0xfffffffe
mov edx, dword [esp + 0x34]
add eax, 2
add edi, eax
sub ebx, 2
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x20], ebx
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x60]
add dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + ecx], esi
sub esi, 1
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], eax
jns 0x459740
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x98]
mov dword [eax], edi
mov eax, dword [esp + 0x30]
mov dword [ecx], eax
mov ecx, dword [esp + 0x18]
cmp ecx, 1
jbe 0x459827
mov esi, dword [esp + 0x28]
lea eax, [ecx*4]
mov eax, dword [eax + esi - 4]
jmp 0x459829
xor eax, eax
cmp edx, eax
jle 0x4598ae
mov edx, dword [esp + 0x28]
dec ecx
mov dword [esp + 0x18], ecx
test ecx, ecx
jg 0x4596d0
mov eax, dword [esp + 0xdc]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x34], eax
lea eax, [esi + 1]
cmp dword [esp + 0x4c], esi
jle 0x459a0d
cmp esi, dword [esp + 0x44]
jge 0x459943
mov eax, dword [esp + esi*4 + 0xdc]
mov dword [esp + esi*4 + 0xe8], eax
mov dword [esp + esi*4 + 0xdc], 0
mov dword [esp + 0x6c], eax
mov ecx, dword [eax + 0x48]
mov dword [esp + 0x24], eax
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4598dc
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x4598dc
cmp dword [edx + 0x68], 0
je 0x4598d8
call fcn.0044af80
jmp 0x459901
push 0x5cad1c
push 0x12a6a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x45a199
xor edi, edi
jmp 0x459903
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x459907
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x4598fc
call fcn.0044cab0
jmp 0x459901
call fcn.0044ca30
mov edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x48]
xor ecx, ecx
sub eax, dword [esp + 0x50]
inc dword [esp + 0x14]
cmp esi, eax
mov eax, dword [esp + 0x6c]
sete cl
mov dword [esp + 0x1c], edi
inc ecx
mov eax, dword [eax + 0x48]
movsx eax, word [eax + 0x1e]
cmp eax, ecx
je 0x459936
test edi, edi
je 0x4599e5
test edi, edi
jne 0x45a195
jmp 0x4599d4
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x24]
mov ecx, dword [esp + 0x38]
cmovne ecx, eax
lea eax, [esp + 0x74]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.00456de0
mov edi, eax
add esp, 0xc
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x45a195
mov edi, dword [esp + 0x24]
mov ecx, edi
mov edx, dword [esp + 0x34]
call fcn.00452690
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x14]
mov dword [esp + esi*4 + 0xe8], edi
mov dword [esp + esi*4 + 0x124], ebx
cmp byte [ecx + 0x11], 0
je 0x4599cc
mov edx, dword [edi + 4]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x44]
push dword [eax + 4]
push 5
call fcn.00451220
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], edi
test edi, edi
jne 0x45a195
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
inc esi
cmp esi, dword [esp + 0x4c]
jge 0x459a0d
mov eax, 1
jmp 0x459862
push 0x5cad1c
push 0x12a8b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
jmp 0x45a195
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
jle 0x459a36
nop word [eax + eax]
mov eax, dword [esp + ecx*4 + 0xe8]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x138], eax
inc ecx
cmp ecx, edx
jl 0x459a20
lea eax, [edx - 1]
xor edi, edi
mov dword [esp + 0x38], edi
test eax, eax
jle 0x459b3b
lea eax, [edi + 1]
mov ebx, edi
mov dword [esp + 0x24], eax
mov esi, eax
cmp eax, edx
jge 0x459b2a
mov edi, dword [esp + 0x14]
nop
mov eax, dword [esp + esi*4 + 0xe8]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xe8]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x459a60
mov edi, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
cmp ebx, edi
je 0x459b22
mov ecx, dword [esp + edi*4 + 0xe8]
xor edx, edx
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + ebx*4 + 0xe8]
mov eax, dword [ecx + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [0x5dc768]
div dword [esi + 0x24]
mov ecx, dword [ecx + 0x48]
mov ebx, dword [edi + 4]
movzx esi, word [ecx + 0x1c]
lea edx, [eax + 1]
mov eax, dword [edi + 0x48]
movzx edi, word [eax + 0x1c]
mov word [ecx + 0x1c], di
call fcn.00446ba0
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + ecx*4 + 0xe8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], si
mov esi, dword [esp + 0x6c]
mov edx, esi
call fcn.00446ba0
mov ecx, dword [esp + 0x38]
mov edx, ebx
mov eax, dword [esp + ecx*4 + 0xe8]
mov ecx, dword [eax + 0x48]
mov word [ecx + 0x1c], di
call fcn.00446ba0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + ecx*4 + 0xe8]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x48]
mov eax, dword [esp + eax*4 + 0xe8]
mov dword [eax + 4], esi
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov edi, eax
lea eax, [edx - 1]
mov dword [esp + 0x38], edi
cmp edi, eax
jl 0x459a47
test byte [esp + 0x34], 8
mov eax, dword [esp + edx*4 + 0xe4]
mov ecx, dword [esp + 0x58]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x459b88
mov ecx, dword [esp + 0x44]
cmp ecx, edx
je 0x459b88
lea eax, [esp + 0xe8]
lea esi, [esp + 0xdc]
cmovge eax, esi
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + 0x14]
mov eax, dword [esp + eax*4 + 0xe4]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x98]
cmp byte [eax + 0x11], 0
je 0x459d8e
mov edi, dword [esp + 0xe8]
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x58], 0
mov dword [esp + 0x2c], ecx
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [esp + 0x20], edx
test esi, esi
jle 0x459d8e
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x18], eax
cmp ecx, edx
jne 0x459c2d
mov esi, dword [esp + 0x14]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov dword [esp + 0x6c], eax
inc ebx
cmp ebx, esi
jge 0x459c03
mov edi, dword [esp + ebx*4 + 0xe8]
jmp 0x459c0a
mov edi, dword [esp + ebx*4 + 0xdc]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x6c]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x2c]
cmp ecx, edx
je 0x459bf5
mov esi, dword [esp + 0x98]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x48]
cmp ecx, dword [esp + eax + 0x110]
jne 0x459c62
mov eax, dword [esp + 0x58]
inc eax
mov dword [esp + 0x58], eax
shl eax, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x48], eax
mov eax, dword [esp + eax + 0xe8]
mov dword [esp + 0x28], eax
je 0x459d81
jmp 0x459c66
mov eax, dword [esp + 0x28]
cmp ebx, dword [esp + 0x14]
jge 0x459c8c
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x138]
mov eax, dword [esp + 0x18]
jne 0x459c90
cmp eax, dword [edi + 0x38]
jb 0x459c90
cmp eax, dword [edi + 0x3c]
jb 0x459d81
jmp 0x459c90
mov eax, dword [esp + 0x18]
cmp word [esp + 0x64], 0
jne 0x459cc2
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x40]
push dword [edx + 4]
mov edx, dword [eax]
push 5
bswap edx
call fcn.00451220
mov eax, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
movzx eax, word [eax + ecx*2]
test ax, ax
jne 0x459ce3
mov edx, ecx
lea ecx, [esp + 0x98]
call fcn.004582a0
movzx eax, ax
mov ecx, dword [esp + 0x28]
cmp ax, word [ecx + 0x10]
jbe 0x459d6d
cmp dword [esp + 0x10], 0
jne 0x45a191
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [esp + 0x9c]
add esp, 0xc
cmp eax, dword [esp + 0x8c]
jae 0x459d79
mov edx, dword [edi + 0x3c]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jb 0x459d38
add eax, ecx
cmp edx, eax
jb 0x459dfb
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
movzx eax, word [esp + 0x96]
push dword [edx + 4]
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x30]
push 3
bswap edx
mov ecx, dword [eax + 0x34]
call fcn.00451220
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x459d71
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45a191
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, esi
jl 0x459bd2
mov eax, dword [esp + 0x14]
xor ebx, ebx
dec eax
mov dword [esp + 0x48], ebx
test eax, eax
jle 0x459f70
mov edi, dword [esp + ebx*4 + 0x110]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + ebx*4 + 0xe8]
mov esi, dword [esp + 0x5c]
add esi, dword [esp + 0x78]
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x64]
movzx edx, cx
mov ecx, dword [esp + 0x58]
movzx eax, word [eax + edi*2]
add edx, eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x98]
cmp byte [ecx + 8], 0
jne 0x459e23
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x459eec
push 0x5cad1c
push 0x10fee
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
jmp 0x45a195
cmp byte [esp + 0xf], 0
je 0x459ed3
lea eax, [esp + 0x80]
dec edi
push eax
mov eax, dword [esp + 0xa4]
push dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x90]
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ebx, eax
mov ecx, dword [esp + 0x80]
test edx, edx
ja 0x459eb9
jb 0x459e69
cmp ecx, 0x7f
ja 0x459e84
and cl, 0x7f
mov dword [esp + 0x38], 0
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
jmp 0x459eec
test edx, edx
ja 0x459eb9
jb 0x459e92
cmp ecx, 0x3fff
ja 0x459eb9
mov eax, ecx
shrd eax, edx, 7
mov edx, dword [esp + 0x38]
or al, 0x80
mov dword [esp + 0x38], 0
and cl, 0x7f
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
jmp 0x459eec
push edx
push ecx
lea ecx, [eax + 4]
call fcn.0043fdc0
add esp, 8
mov dword [esp + 0x38], 0
lea edx, [eax + 4]
jmp 0x459eec
sub ebx, 4
cmp eax, 4
jne 0x459eec
mov eax, dword [esp + 0x40]
push ebx
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x5c], edx
xor eax, eax
cmp dword [esp + 0xc0], edi
jg 0x459f0f
nop dword [eax + eax]
cmp eax, 6
jge 0x459f0f
inc eax
cmp dword [esp + eax*4 + 0xc0], edi
jle 0x459f00
mov ecx, dword [esp + eax*4 + 0xa8]
cmp ecx, ebx
jb 0x459f25
lea eax, [edx + ebx]
cmp ecx, eax
jb 0x459fde
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push dword [eax + 4]
push dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x60]
push ebx
mov ebx, dword [esp + 0x5c]
lea edx, [edx + ebx]
call fcn.00457fc0
mov edi, dword [esp + 0x30]
add esp, 0x14
mov dword [esp + 0x10], edi
test edi, edi
jne 0x45a195
mov eax, dword [esp + 0x14]
inc ebx
dec eax
mov dword [esp + 0x48], ebx
cmp ebx, eax
jl 0x459da1
mov ebx, dword [esp + 0x14]
mov ecx, 1
sub ecx, ebx
mov dword [esp + 0x5c], ecx
cmp ecx, ebx
jge 0x45a096
nop word [eax + eax]
mov eax, ecx
lea ebx, [esp + 0x14c]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x45a081
cmp dword [esp + 0x5c], 0
lea edi, [ecx*4]
jge 0x459fcd
mov eax, dword [esp + edi + 0x120]
cmp eax, dword [esp + edi + 0x10c]
jl 0x45a081
test ecx, ecx
jne 0x45a006
mov ecx, dword [esp + 0x110]
xor edx, edx
xor eax, eax
jmp 0x45a039
push 0x5cad1c
push 0x12b53
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043e300
add esp, 0x14
mov edi, 0xb
jmp 0x45a195
cmp ecx, dword [esp + 0x44]
jge 0x45a01e
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + edi + 0x120]
jmp 0x45a020
mov edx, esi
mov ecx, dword [esp + edi + 0x110]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
add eax, dword [esp + edi + 0x10c]
sub ecx, eax
lea esi, [esp + 0x98]
push esi
push ecx
mov ecx, dword [esp + edi + 0xf0]
push eax
call fcn.004586c0
mov esi, dword [esp + 0xa4]
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x45a191
mov eax, dword [esp + edi + 0xe8]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + edi + 0xfc]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x5c], ecx
cmp ecx, ebx
jl 0x459f90
cmp dword [ebp + 0xc], 0
je 0x45a100
mov esi, dword [esp + 0x40]
cmp word [esi + 0x18], 0
jne 0x45a100
mov ecx, dword [esp + 0xe8]
movzx eax, byte [esi + 9]
cmp eax, dword [ecx + 0x14]
jg 0x45a100
or edx, 0xffffffff
call fcn.004519a0
mov ecx, dword [esp + 0xe8]
mov edx, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call fcn.00458bb0
mov edi, dword [esp + 0x20]
add esp, 4
test edi, edi
jne 0x45a154
mov ecx, dword [esp + 0xe8]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.00457480
add esp, 4
mov edi, eax
jmp 0x45a154
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x45a150
cmp word [esp + 0x64], 0
jne 0x45a150
xor esi, esi
test ebx, ebx
jle 0x45a150
nop dword [eax + eax]
mov eax, dword [esp + esi*4 + 0xe8]
lea edx, [esp + 0x1c]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.00451220
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x45a120
mov edi, dword [esp + 0x1c]
jmp 0x45a154
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov esi, ebx
cmp ebx, eax
jge 0x45a199
nop
mov ecx, dword [esp + esi*4 + 0xdc]
test edi, edi
jne 0x45a181
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00457480
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x45a160
jmp 0x45a199
lea eax, [ebx + 4]
push eax
jmp 0x458ff9
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x45a1ad
mov edx, eax
xor ecx, ecx
call fcn.0043b330
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x45a1dc
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0xdc]
test ecx, ecx
je 0x45a1d7
mov ecx, dword [ecx + 0x48]
call fcn.0044c510
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x45a1c0
xor esi, esi
test ebx, ebx
jle 0x45a1fa
mov ecx, dword [esp + esi*4 + 0xe8]
test ecx, ecx
je 0x45a1f5
mov ecx, dword [ecx + 0x48]
call fcn.0044c510
inc esi
cmp esi, ebx
jl 0x45a1e2
mov ecx, dword [esp + 0x154]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056eb71
mov esp, ebp
pop ebp
ret