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

Disassembly:
sub esp, 0xfc
mov eax, dword [0x63727c]
xor eax, esp
mov dword [esp + 0xf8], eax
xor eax, eax
push ebx
mov ebx, dword [esp + 0x108]
push ebp
mov ebp, dword [esp + 0x108]
mov edx, dword [ebp + 0x34]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0xf8], eax
mov byte [esp + 0xfc], al
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
cmp ecx, eax
jne 0x4e868b
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00584447
add esp, 0xfc
ret
movzx edx, word [ebp + 0x16]
push esi
movzx esi, byte [ebp + 0xc]
push edi
lea edi, [esi + edx]
cmp edi, 2
jge 0x4e86a1
xor ecx, ecx
jmp 0x4e86c9
cmp ebx, eax
jne 0x4e86a9
xor ecx, ecx
jmp 0x4e86bd
cmp ebx, edi
jne 0x4e86ba
mov eax, dword [esp + 0x11c]
lea ecx, [edi + eax - 2]
jmp 0x4e86bd
lea ecx, [ebx - 1]
mov edi, 2
sub edi, dword [esp + 0x11c]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, esi
add eax, edi
mov dword [esp + 0x5c], ecx
cmp eax, edx
jne 0x4e86eb
movzx edx, byte [ebp + 9]
mov eax, dword [ebp + 0x38]
lea eax, [edx + eax + 8]
jmp 0x4e8702
mov edx, dword [ebp + 0x40]
mov ax, word [edx + eax*2]
mov dh, al
mov dl, ah
movzx eax, dx
movzx edx, word [ebp + 0x18]
and eax, edx
add eax, dword [ebp + 0x38]
mov ebx, dword [eax]
bswap ebx
add ecx, edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x2c]
cmp ebx, dword [eax + 0x2c]
jbe 0x4e8742
push 0x5e9a5c
push 0xfcf9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d3370
add esp, 0x14
mov esi, 0xb
jmp 0x4e87b5
push 0
lea edx, [esp + 0x20]
mov ecx, eax
mov eax, dword [ecx]
push edx
push ebx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4e87b5
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [esp + edi*4 + 0x60], eax
jne 0x4e87b3
cmp ebx, dword [eax + 4]
je 0x4e8796
mov edx, dword [ecx + 4]
cmp ebx, 1
mov dword [eax + 0x38], edx
setne dl
dec dl
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x2c]
and dl, 0x64
mov dword [eax + 0x34], ecx
mov dword [eax + 4], ebx
mov byte [eax + 9], dl
mov ebx, eax
mov esi, eax
call fcn.004e5bd0
mov esi, eax
test esi, esi
je 0x4e87b3
test ebx, ebx
je 0x4e87b5
mov eax, dword [ebx + 0x48]
call fcn.004b1190
jmp 0x4e87b5
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4e88dd
mov eax, dword [esp + edi*4 + 0x60]
movzx edx, byte [eax + 0xc]
movzx ecx, word [eax + 0x16]
add edx, dword [esp + 0x18]
dec dword [esp + 0x44]
mov eax, edi
lea esi, [edx + ecx + 1]
dec edi
mov dword [esp + 0x18], esi
test eax, eax
je 0x4e88f9
mov al, byte [ebp + 0xc]
test al, al
je 0x4e8827
movzx ecx, word [ebp + 0x1a]
cmp dword [esp + 0x44], ecx
jne 0x4e8827
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x4c]
bswap ecx
push eax
mov ebx, ecx
push ebp
mov dword [esp + edi*4 + 0xfc], eax
mov dword [esp + 0x54], ebx
call edx
movzx eax, ax
add esp, 8
mov dword [esp + edi*4 + 0x6c], eax
mov byte [ebp + 0xc], 0
jmp 0x4e8714
mov edx, dword [esp + 0x5c]
movzx ecx, al
mov eax, dword [ebp + 0x40]
sub edx, ecx
add edx, edi
mov cx, word [eax + edx*2]
mov dh, cl
mov dl, ch
movzx ecx, word [ebp + 0x18]
movzx eax, dx
mov edx, dword [ebp + 0x38]
and eax, ecx
mov ecx, dword [eax + edx]
add eax, edx
bswap ecx
push eax
mov dword [esp + edi*4 + 0xf8], eax
mov eax, dword [ebp + 0x4c]
mov ebx, ecx
push ebp
mov dword [esp + 0x54], ebx
call eax
mov ecx, dword [esp + 0x34]
movzx esi, ax
add esp, 8
test byte [ecx + 0x16], 0xc
mov dword [esp + edi*4 + 0x6c], esi
je 0x4e88bb
mov ebx, dword [esp + edi*4 + 0xf4]
mov eax, ebx
sub eax, dword [ebp + 0x38]
lea edx, [esi + eax]
cmp edx, dword [ecx + 0x24]
jg 0x4e9897
mov edx, dword [esp + 0x80]
push esi
add edx, eax
push ebx
push edx
call fcn.00588f30
mov eax, dword [esp + 0x8c]
sub eax, dword [ebp + 0x38]
add esp, 0xc
add eax, ebx
mov ebx, dword [esp + 0x4c]
mov dword [esp + edi*4 + 0xf4], eax
movzx edx, byte [ebp + 0xc]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x14]
push ecx
sub eax, edx
push esi
add eax, edi
push eax
mov esi, ebp
call fcn.004e7be0
add esp, 0xc
jmp 0x4e8714
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x64]
push 0
push edx
call fcn.00586030
add esp, 0xc
jmp 0x4e98dd
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x20]
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + esi*2]
lea eax, [edx + eax*2]
cdq
push edx
push eax
call fcn.004bbc40
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4e892c
mov dword [esp + 0x14], 7
jmp 0x4e8cde
lea eax, [eax + esi*4]
mov dword [esp + 0x3c], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
movzx cx, byte [eax + 8]
add cx, cx
add cx, cx
cmp dword [esp + 0x28], 0
mov dword [esp + 0x34], eax
movzx eax, byte [eax + 3]
movzx edx, cx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x10], 0
jle 0x4e8b3a
nop
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + ecx*4 + 0x60]
movzx edx, word [edi + 0x18]
mov ebx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x1c], edx
mov dl, byte [ebx]
add esi, ebx
cmp dl, byte [ecx]
jne 0x4e8cb8
movzx eax, word [edi + 0x16]
movzx ecx, byte [edi + 0xc]
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x30]
add eax, ecx
add eax, eax
push eax
lea eax, [edx + ebp*2]
push 0
push eax
call fcn.00586030
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4e8a2c
movzx eax, word [edi + 0x1a]
mov ecx, dword [esp + 0x38]
test eax, eax
jle 0x4e89f9
mov dword [esp + 0x18], eax
mov dx, word [esi]
mov ah, dl
add esi, 2
inc ebp
mov al, dh
movzx edx, ax
movzx eax, word [esp + 0x1c]
and edx, eax
add edx, ebx
sub dword [esp + 0x18], 1
mov dword [ecx + ebp*4 - 4], edx
jne 0x4e89d3
mov dword [esp + 0x30], ebp
xor eax, eax
cmp byte [edi + 0xc], al
jbe 0x4e8a2c
lea edx, [edi + 0x24]
mov dword [esp + 0x18], edx
jmp 0x4e8a10
mov edx, dword [esp + 0x18]
mov edx, dword [edx]
add dword [esp + 0x18], 4
mov dword [ecx + ebp*4], edx
movzx edx, byte [edi + 0xc]
inc eax
inc ebp
cmp eax, edx
jl 0x4e8a10
mov dword [esp + 0x30], ebp
movzx ecx, word [edi + 0x12]
movzx eax, word [edi + 0x16]
add ecx, ebx
lea ebp, [ecx + eax*2]
mov eax, dword [esp + 0x30]
cmp esi, ebp
jae 0x4e8a74
movzx edx, word [esp + 0x1c]
mov dword [esp + 0x18], edx
lea ebx, [ebx]
mov cx, word [esi]
mov dh, cl
add esi, 2
inc eax
mov dl, ch
movzx ecx, dx
and ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
add ecx, ebx
mov dword [edx + eax*4 - 4], ecx
cmp esi, ebp
jb 0x4e8a50
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + ecx*4 + 0xe0], eax
mov eax, dword [esp + 0x28]
dec eax
cmp ecx, eax
jge 0x4e8b27
cmp dword [esp + 0x48], 0
jne 0x4e8b27
movzx eax, word [esp + ecx*4 + 0x6c]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + ecx*4 + 0xf4]
mov esi, dword [esp + 0x20]
mov word [ebp + ebx*2], ax
movzx eax, ax
push eax
add esi, edx
push ecx
add edx, eax
push esi
mov dword [esp + 0x4c], edx
call fcn.00588f30
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
movzx edx, ax
add edx, esi
mov dword [ecx + ebx*4], edx
sub word [ebp + ebx*2], ax
add esp, 0xc
cmp byte [edi + 8], 0
jne 0x4e8af6
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x4e8b1e
cmp word [ebp + ebx*2], 4
jae 0x4e8b1e
mov edi, edi
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov byte [ecx + eax], 0
inc word [ebp + ebx*2]
inc eax
cmp word [ebp + ebx*2], 4
mov dword [esp + 0x40], eax
jb 0x4e8b00
mov ecx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x30], ebx
inc ecx
cmp ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jl 0x4e8970
mov ebp, dword [esp + 0x50]
movzx eax, word [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edx + 0x24]
lea edx, [ecx + eax - 0xc]
xor eax, eax
cmp dword [esp + 0x28], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x10], eax
jle 0x4e8bc7
mov ecx, dword [esp + 0x28]
lea esi, [esp + 0xe0]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov edi, edi
mov esi, dword [esp + eax*4 + 0x60]
movzx ecx, word [esi + 0x14]
mov edi, dword [esp + 0x40]
sub edi, ecx
xor ebx, ebx
mov dword [esp + eax*4 + 0x6c], edi
cmp byte [esi + 0xc], bl
jbe 0x4e8bbc
lea ebp, [esi + 0x24]
lea esp, [esp]
mov edx, dword [ebp]
mov eax, dword [esi + 0x4c]
push edx
push esi
call eax
movzx edx, byte [esi + 0xc]
movzx ecx, ax
inc ebx
add esp, 8
add ebp, 4
cmp ebx, edx
lea edi, [edi + ecx + 2]
jl 0x4e8b90
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x50]
mov dword [esp + eax*4 + 0x6c], edi
inc eax
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x10], eax
jl 0x4e8b70
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xf4], eax
mov dword [esp + 0x10], ebx
jle 0x4e8e4d
lea eax, [esp + 0x88]
sub eax, 4
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x40]
cmp dword [esp + ebx + 0x6c], ecx
jle 0x4e8d5f
mov edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0xf4]
jl 0x4e8c41
inc eax
cmp eax, 5
mov dword [esp + 0xf4], eax
jg 0x4e8f54
mov edx, dword [esp + 0x30]
mov dword [esp + ebx + 0x70], 0
mov dword [esp + ebx + 0x8c], edx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + ecx + 0x88]
mov eax, dword [esp + 0x3c]
movzx eax, word [eax + ebx*2 - 2]
lea ebp, [ebx - 1]
test ax, ax
jne 0x4e8c6c
mov edi, ebp
lea esi, [esp + 0x30]
call fcn.004b2cb0
mov ecx, dword [esp + 0x20]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + ecx + 0x6c], eax
cmp dword [esp + 0x48], 0
jne 0x4e8d42
cmp ebx, dword [esp + 0x30]
jge 0x4e8d40
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x4e8caa
mov edi, ebx
lea esi, [esp + 0x30]
call fcn.004b2cb0
mov ecx, dword [esp + 0x20]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4e8d42
push 0x5e9a5c
push 0x111df
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d3370
mov dword [esp + 0x28], 0xb
add esp, 0x14
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4e98dd
cmp dword [0x633cb0], 0
je 0x4e98d3
mov eax, dword [0x641778]
test eax, eax
je 0x4e8d0a
push eax
call dword [0x633d0c]
add esp, 4
push esi
call dword [0x633ce8]
sub dword [0x641718], eax
dec dword [0x64173c]
push esi
call dword [0x633ce0]
mov eax, dword [0x641778]
add esp, 8
test eax, eax
je 0x4e98dd
push eax
call dword [0x633d14]
jmp 0x4e98da
xor eax, eax
add dword [esp + ecx + 0x70], eax
mov eax, dword [esp + 0x40]
cmp dword [esp + ecx + 0x6c], eax
mov ebx, dword [esp + 0x20]
mov dword [esp + ecx + 0x88], ebp
jg 0x4e8c10
mov edx, dword [esp + 0x30]
cmp dword [esp + ebx + 0x88], edx
jge 0x4e8df6
mov ebp, dword [esp + 0x3c]
jmp 0x4e8d80
mov edi, dword [esp + ebx + 0x88]
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x4e8d9e
lea esi, [esp + 0x30]
call fcn.004b2cb0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + ebx + 0x6c]
movzx eax, ax
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [esp + 0x40]
jg 0x4e8df6
inc edi
cmp dword [esp + 0x48], 0
mov dword [esp + ebx + 0x6c], ecx
mov dword [esp + ebx + 0x88], edi
jne 0x4e8dee
cmp edi, edx
jge 0x4e8dec
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x4e8de1
lea esi, [esp + 0x30]
call fcn.004b2cb0
mov edx, dword [esp + 0x30]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4e8dee
xor eax, eax
sub dword [esp + ebx + 0x70], eax
cmp edi, edx
jl 0x4e8d80
mov ecx, dword [esp + ebx + 0x88]
cmp ecx, edx
jl 0x4e8e0e
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xf4], edx
jmp 0x4e8e28
cmp dword [esp + 0x10], 0
jle 0x4e8e1e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ebx]
jmp 0x4e8e20
xor eax, eax
cmp ecx, eax
jle 0x4e8f63
mov eax, dword [esp + 0x10]
inc dword [esp + 0x1c]
inc eax
add ebx, 4
cmp eax, dword [esp + 0xf4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
jl 0x4e8c00
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0xf4]
dec ebx
test ebx, ebx
jle 0x4e8f8e
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + ebx*4 + 0x68]
mov eax, dword [esp + ebx*4 + 0x6c]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x88]
mov ebp, dword [ecx + ebx*4 - 4]
sub ecx, 4
dec ebp
mov edi, ebp
sub edi, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
inc edi
cmp word [edx + edi*2], 0
lea ecx, [edx + edi*2]
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jne 0x4e8eae
lea esi, [esp + 0x30]
call fcn.004b2cb0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], ecx
cmp word [edx + ebp*2], 0
jne 0x4e8ed0
mov edi, ebp
lea esi, [esp + 0x30]
call fcn.004b2cb0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
test eax, eax
je 0x4e8f08
cmp dword [esp + 0x11c], 0
jne 0x4e8f39
mov esi, dword [esp + 0xf4]
dec esi
mov edi, ebx
sub edi, esi
mov esi, dword [esp + 0x1c]
neg edi
sbb edi, edi
and edi, 2
sub esi, edi
movzx edi, word [edx + ebp*2]
sub esi, edi
movzx edi, word [ecx]
lea edi, [edi + eax + 2]
cmp edi, esi
jg 0x4e8f39
movzx esi, word [ecx]
lea eax, [eax + esi + 2]
movzx esi, word [edx + ebp*2]
mov edi, 0xfffffffe
sub edi, esi
mov esi, dword [esp + 0x18]
add dword [esp + 0x1c], edi
mov dword [esi + ebx*4], ebp
dec ebp
sub ecx, 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
test ebp, ebp
jge 0x4e8eb2
cmp ebx, 1
mov dword [esp + ebx*4 + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + ebx*4 + 0x68], eax
jle 0x4e8f72
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + ebx*4 - 4]
jmp 0x4e8f74
push 0x5e9a5c
push 0x1124c
jmp 0x4e8cc2
push 0x5e9a5c
push 0x1126d
jmp 0x4e8cc2
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx + ebx*4], eax
jle 0x4e9029
dec ebx
test ebx, ebx
jg 0x4e8e61
mov ebp, dword [esp + 0x50]
cmp dword [esp + 0xf4], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x38]
movzx ecx, byte [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], 0
jle 0x4e9128
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x28]
jge 0x4e9087
mov eax, dword [esp + ecx*4 + 0x60]
mov ebx, dword [eax + 0x48]
test byte [ebx + 0x1c], 4
lea edx, [esp + ecx*4 + 0x60]
mov dword [esp + ecx*4 + 0x9c], eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x14]
mov dword [edx], 0
je 0x4e9043
mov ecx, dword [ebx + 0x18]
cmp dword [eax + 0x18], ecx
jb 0x4e9043
cmp dword [eax + 0x60], 0
je 0x4e9025
mov ecx, dword [eax + 0x60]
xor edi, edi
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x4e9025
mov esi, dword [eax + 0x5c]
add esi, 0x10
mov eax, dword [ebx + 0x18]
cmp dword [esi + 4], eax
jb 0x4e901d
mov ecx, dword [esi]
call fcn.004aef80
test eax, eax
je 0x4e9038
mov ecx, dword [esp + 0x20]
inc edi
add esi, 0x30
cmp edi, ecx
jl 0x4e9006
xor eax, eax
jmp 0x4e906e
push 0x5e9a5c
push 0x11297
jmp 0x4e8cc2
push ebx
call fcn.004c42b0
add esp, 4
jmp 0x4e906e
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4e904e
mov eax, ecx
jmp 0x4e906e
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x4e9067
push ebx
call fcn.004c45a0
add esp, 4
jmp 0x4e906e
mov eax, ebx
call fcn.004c44e0
inc dword [esp + 0x24]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e8cde
mov edi, dword [esp + 0x10]
jmp 0x4e9116
cmp dword [esp + 0x11c], 0
mov eax, 1
jne 0x4e909a
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x2c]
push 0
push eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004e6e90
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e8cde
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push eax
call fcn.004e5ee0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
inc dword [esp + 0x28]
mov dword [esp + edi*4 + 0xe4], ecx
mov ecx, dword [esp + 0x30]
add esp, 4
cmp byte [ecx + 0x11], 0
mov dword [esp + edi*4 + 0x9c], esi
je 0x4e9116
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esi + 4]
push 5
call fcn.004e5010
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x4e8cde
inc edi
cmp edi, dword [esp + 0xf4]
mov dword [esp + 0x10], edi
jl 0x4e8fb2
mov esi, dword [esp + 0x24]
xor eax, eax
test esi, esi
jle 0x4e9177
mov ecx, dword [esp + eax*4 + 0x9c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x1c]
mov word [esp + eax*2 + 0xf4], cx
xor ecx, ecx
mov dword [esp + eax*4 + 0xc8], edx
mov dword [esp + eax*4 + 0xb0], edx
test eax, eax
jle 0x4e9172
nop
cmp dword [esp + ecx*4 + 0xc8], edx
je 0x4e9237
inc ecx
cmp ecx, eax
jl 0x4e9160
inc eax
cmp eax, esi
jl 0x4e9132
xor edi, edi
mov dword [esp + 0x10], edi
test esi, esi
jle 0x4e936e
xor ebp, ebp
lea eax, [ebp + 1]
cmp esi, eax
jle 0x4e91b0
xor edx, edx
lea ecx, [eax*4]
mov ebx, dword [esp + ecx + 0xb0]
cmp ebx, dword [esp + edx + 0xb0]
jae 0x4e91ab
mov ebp, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x4e9190
mov ebx, dword [esp + ebp*4 + 0xb0]
mov dword [esp + ebp*4 + 0xb0], 0xffffffff
cmp ebp, edi
je 0x4e9361
jle 0x4e929b
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x2c]
mov ecx, dword [esp + ebp*4 + 0x9c]
mov esi, dword [ecx + 0x48]
mov ecx, dword [esi]
lea edi, [eax + ebp + 1]
mov eax, dword [esi + 0x18]
xor edx, edx
push edi
mov word [esi + 0x1c], dx
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [edx + 0x2c]
push ecx
push eax
call dword [0x633d44]
movzx eax, word [esi + 0x1c]
add esp, 0x10
mov dword [esi + 0x18], edi
test al, 2
je 0x4e929b
test al, 8
je 0x4e929b
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x4e9228
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4e9246
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x4e924c
push 0x5e9a5c
push 0x112e1
jmp 0x4e8cc2
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4e925b
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x4e9268
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x4e9268
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4e927d
mov dword [ecx + 0x24], esi
jmp 0x4e928a
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4e928a
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4e929b
test byte [esi + 0x1c], 8
jne 0x4e929b
mov dword [eax + 8], esi
mov eax, dword [esp + 0x10]
mov edi, dword [esp + eax*4 + 0x9c]
mov esi, dword [edi + 0x48]
mov cx, word [esp + ebp*2 + 0xf4]
mov edx, dword [esi + 0x18]
mov eax, dword [esi]
push ebx
mov word [esi + 0x1c], cx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [0x633d44]
movzx eax, word [esi + 0x1c]
add esp, 0x10
mov dword [esi + 0x18], ebx
test al, 2
je 0x4e9356
test al, 8
je 0x4e9356
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x4e92f2
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4e9301
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x4e9307
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4e9316
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x4e9323
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x4e9323
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4e9338
mov dword [ecx + 0x24], esi
jmp 0x4e9345
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4e9345
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4e9356
test byte [esi + 0x1c], 8
jne 0x4e9356
mov dword [eax + 8], esi
mov esi, dword [esp + 0x24]
mov dword [edi + 4], ebx
mov edi, dword [esp + 0x10]
inc edi
cmp edi, esi
mov dword [esp + 0x10], edi
jl 0x4e9185
test byte [esp + 0x1c], 8
mov eax, dword [esp + esi*4 + 0x98]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x54]
bswap ecx
mov dword [edx], ecx
jne 0x4e93ac
mov edx, dword [esp + 0x28]
cmp esi, edx
je 0x4e93ac
lea ecx, [esp + 0x9c]
jg 0x4e939c
lea ecx, [esp + 0x60]
mov ecx, dword [ecx + edx*4 - 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [eax + 0x38]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
cmp byte [ecx + 0x11], 0
mov eax, dword [esp + 0x9c]
je 0x4e9569
mov edx, dword [eax + 0x38]
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x18], edx
movzx edx, word [eax + 0x16]
mov ebx, eax
movzx eax, byte [eax + 0xc]
xor edi, edi
add edx, eax
cmp dword [esp + 0x30], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x4c], edi
jle 0x4e9569
mov dword [esp + 0x20], edi
jmp 0x4e9400
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
mov ebp, dword [edx + edi*4]
cmp edi, ecx
jne 0x4e9460
mov eax, dword [esp + 0x4c]
inc eax
cmp eax, esi
mov dword [esp + 0x4c], eax
jge 0x4e9425
mov eax, dword [esp + eax*4 + 0x9c]
jmp 0x4e9429
mov eax, dword [esp + eax*4 + 0x60]
movzx esi, byte [eax + 0xc]
movzx edx, word [eax + 0x16]
mov eax, dword [eax + 0x38]
mov dword [esp + 0xf4], ebx
xor ebx, ebx
add edx, esi
cmp dword [esp + 0x48], ebx
mov esi, dword [esp + 0x24]
sete bl
mov dword [esp + 0x18], eax
add ebx, ecx
lea ecx, [ebx + edx]
mov ebx, dword [esp + 0xf4]
mov dword [esp + 0x54], ecx
jmp 0x4e9464
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp edi, dword [esp + edx + 0x88]
jne 0x4e9494
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x1c], ecx
add ecx, ecx
add ecx, ecx
cmp dword [esp + 0x48], 0
mov ebx, dword [esp + ecx + 0x9c]
mov dword [esp + 0x20], ecx
je 0x4e955a
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
jge 0x4e94ba
mov edx, dword [ebx + 4]
cmp edx, dword [esp + ecx*4 + 0xc8]
jne 0x4e94ba
cmp ebp, eax
jb 0x4e94ba
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp ebp, ecx
jb 0x4e955a
cmp word [esp + 0x44], 0
jne 0x4e94de
mov ecx, dword [ebx + 4]
mov eax, dword [ebp]
lea edx, [esp + 0x14]
push edx
push ecx
mov ecx, dword [esp + 0x34]
push 5
bswap eax
call fcn.004e5010
add esp, 0xc
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4e94f4
lea esi, [esp + 0x30]
call fcn.004b2cb0
movzx eax, ax
cmp ax, word [ebx + 0x10]
jbe 0x4e954f
cmp dword [esp + 0x14], 0
jne 0x4e8cde
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0xb0]
push eax
push ebp
push ebx
call ecx
movzx edx, word [esp + 0xcc]
add esp, 0xc
cmp edx, dword [esp + 0xbc]
jae 0x4e955a
movzx eax, word [esp + 0xc2]
mov edx, dword [ebx + 4]
mov eax, dword [eax + ebp - 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x34]
push edx
push 3
bswap eax
call fcn.004e5010
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x4e8cde
mov esi, dword [esp + 0x24]
inc edi
cmp edi, dword [esp + 0x30]
jl 0x4e9400
lea eax, [esi - 1]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4e96cd
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x88]
mov edi, dword [esp + eax*4 + 0x9c]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
movzx edx, word [edx + ecx*2]
mov ebp, dword [eax + ecx*4]
movzx esi, word [esp + 0x44]
mov ebx, dword [esp + 0x84]
movzx eax, dx
add eax, esi
mov esi, dword [esp + 0x80]
add esi, ebx
cmp byte [edi + 8], 0
jne 0x4e95cf
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp]
mov dword [ecx + 8], edx
jmp 0x4e9680
cmp dword [esp + 0x48], 0
je 0x4e9666
mov edx, dword [esp + 0x38]
lea eax, [esp + 0xc8]
push eax
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [edi + 0x50]
push eax
push edi
call ecx
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
add esp, 0xc
mov ebp, esi
mov ebx, edx
mov dword [esp + 0x58], eax
lea ecx, [esi + 4]
test eax, eax
ja 0x4e9655
jb 0x4e9618
cmp edx, 0x7f
ja 0x4e9629
and dl, 0x7f
mov eax, 1
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x4e9680
test eax, eax
ja 0x4e9655
jb 0x4e9637
cmp edx, 0x3fff
ja 0x4e9655
shrd edx, eax, 7
shr eax, 7
or dl, 0x80
and bl, 0x7f
mov eax, 2
add eax, 4
mov byte [ecx], dl
mov byte [ecx + 1], bl
xor esi, esi
jmp 0x4e9680
push eax
push edx
call fcn.004ad910
add esp, 8
add eax, 4
xor esi, esi
jmp 0x4e9680
sub ebp, 4
cmp dx, 4
jne 0x4e9680
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x4c]
push ebp
push eax
call edx
add esp, 8
movzx eax, ax
mov edx, dword [edi + 4]
add dword [esp + 0x84], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x68]
add eax, ecx
push ebp
push eax
push edx
mov eax, esi
call fcn.004e7cf0
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x4e8cde
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4e9580
mov ebp, dword [esp + 0x24]
mov ebx, 1
sub ebx, ebp
cmp ebx, ebp
jge 0x4e97b5
mov edi, dword [esp + 0x48]
mov eax, ebx
neg eax
mov dword [esp + 0x54], eax
lea esp, [esp]
mov esi, eax
test ebx, ebx
jl 0x4e96f8
mov esi, ebx
cmp byte [esp + esi + 0x100], 0
jne 0x4e97a7
test ebx, ebx
jge 0x4e971e
mov ecx, dword [esp + esi*4 + 0xdc]
cmp ecx, dword [esp + esi*4 + 0x84]
jl 0x4e97a7
test esi, esi
jne 0x4e972f
mov eax, dword [esp + 0x88]
xor edx, edx
xor ecx, ecx
jmp 0x4e9760
cmp esi, dword [esp + 0x28]
jge 0x4e9745
xor edx, edx
test edi, edi
sete dl
add edx, dword [esp + esi*4 + 0xdc]
jmp 0x4e9749
mov edx, dword [esp + 0x30]
mov eax, dword [esp + esi*4 + 0x88]
xor ecx, ecx
test edi, edi
sete cl
add ecx, dword [esp + esi*4 + 0x84]
sub eax, ecx
mov edi, dword [esp + esi*4 + 0x9c]
lea ebp, [esp + 0x30]
push ebp
push eax
push ecx
push edx
mov eax, edi
call fcn.004e8160
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e8cde
mov dx, word [esp + 0x40]
sub dx, word [esp + esi*4 + 0x6c]
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x24]
mov word [edi + 0x14], dx
mov edi, dword [esp + 0x48]
mov byte [esp + esi + 0x100], 1
inc ebx
dec eax
cmp ebx, ebp
mov dword [esp + 0x54], eax
jl 0x4e96f0
cmp dword [esp + 0x118], 0
je 0x4e9816
mov edi, dword [esp + 0x50]
cmp word [edi + 0x16], 0
jne 0x4e9816
movzx ax, byte [edi + 9]
mov esi, dword [esp + 0x9c]
cmp ax, word [esi + 0x14]
ja 0x4e9816
push 0xffffffffffffffff
push esi
call fcn.004e5220
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
push esi
mov eax, edi
call fcn.004e8560
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x4e9859
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x34]
push edx
push esi
push eax
call fcn.004e74b0
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x4e9859
mov edi, dword [esp + 0x2c]
cmp byte [edi + 0x11], 0
je 0x4e9859
cmp word [esp + 0x44], 0
jne 0x4e9859
xor esi, esi
test ebp, ebp
jle 0x4e9859
mov edi, edi
mov ecx, dword [esp + esi*4 + 0x9c]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x14]
push edx
push ecx
push 5
bswap eax
mov ecx, edi
call fcn.004e5010
inc esi
add esp, 0xc
cmp esi, ebp
jl 0x4e9830
mov edi, dword [esp + 0x28]
cmp ebp, edi
mov esi, ebp
jge 0x4e8cde
mov eax, dword [esp + 0x14]
jmp 0x4e9870
mov ecx, dword [esp + esi*4 + 0x60]
test eax, eax
jne 0x4e9889
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 0x34]
push edx
push ecx
push eax
call fcn.004e74b0
add esp, 0xc
inc esi
cmp esi, edi
jl 0x4e9870
mov dword [esp + 0x14], eax
jmp 0x4e8cde
push 0x5e9a5c
push 0x1119e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d3370
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x78]
push 0
push edx
mov dword [esp + 0x34], 0xb
call fcn.00586030
add esp, 0x20
jmp 0x4e98dd
push esi
call dword [0x633ce0]
add esp, 4
xor edi, edi
cmp dword [esp + 0x28], edi
mov bl, 0x20
jle 0x4e9954
jmp 0x4e98f0
mov eax, dword [esp + edi*4 + 0x60]
test eax, eax
je 0x4e994d
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], bl
je 0x4e9948
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebp, dword [esi]
dec eax
push edx
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
call fcn.00588dd0
push edx
push eax
mov eax, dword [ebp + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4e994d
call fcn.004af3e0
inc edi
cmp edi, dword [esp + 0x28]
jl 0x4e98f0
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x4e99c7
mov eax, dword [esp + edi*4 + 0x9c]
test eax, eax
je 0x4e99c0
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], bl
je 0x4e99bb
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebp, dword [esi]
dec eax
push edx
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x60]
push 0
push eax
call fcn.00588dd0
push edx
push eax
mov eax, dword [ebp + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4e99c0
call fcn.004af3e0
inc edi
cmp edi, dword [esp + 0x24]
jl 0x4e9960
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584447
add esp, 0xfc
ret