Function at 0x4e8450
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 0x4e84cb
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00584267
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 0x4e84e1
xor ecx, ecx
jmp 0x4e8509
cmp ebx, eax
jne 0x4e84e9
xor ecx, ecx
jmp 0x4e84fd
cmp ebx, edi
jne 0x4e84fa
mov eax, dword [esp + 0x11c]
lea ecx, [edi + eax - 2]
jmp 0x4e84fd
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 0x4e852b
movzx edx, byte [ebp + 9]
mov eax, dword [ebp + 0x38]
lea eax, [edx + eax + 8]
jmp 0x4e8542
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 0x4e8582
push 0x5e9b1c
push 0xfcf9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d31b0
add esp, 0x14
mov esi, 0xb
jmp 0x4e85f5
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 0x4e85f5
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [esp + edi*4 + 0x60], eax
jne 0x4e85f3
cmp ebx, dword [eax + 4]
je 0x4e85d6
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.004e5a10
mov esi, eax
test esi, esi
je 0x4e85f3
test ebx, ebx
je 0x4e85f5
mov eax, dword [ebx + 0x48]
call fcn.004b0fd0
jmp 0x4e85f5
xor esi, esi
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4e871d
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 0x4e8739
mov al, byte [ebp + 0xc]
test al, al
je 0x4e8667
movzx ecx, word [ebp + 0x1a]
cmp dword [esp + 0x44], ecx
jne 0x4e8667
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 0x4e8554
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 0x4e86fb
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 0x4e96d7
mov edx, dword [esp + 0x80]
push esi
add edx, eax
push ebx
push edx
call fcn.00588d50
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.004e7a20
add esp, 0xc
jmp 0x4e8554
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x64]
push 0
push edx
call fcn.00585e50
add esp, 0xc
jmp 0x4e971d
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.004bba90
add esp, 8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x4e876c
mov dword [esp + 0x14], 7
jmp 0x4e8b1e
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 0x4e897a
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 0x4e8af8
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.00585e50
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4e886c
movzx eax, word [edi + 0x1a]
mov ecx, dword [esp + 0x38]
test eax, eax
jle 0x4e8839
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 0x4e8813
mov dword [esp + 0x30], ebp
xor eax, eax
cmp byte [edi + 0xc], al
jbe 0x4e886c
lea edx, [edi + 0x24]
mov dword [esp + 0x18], edx
jmp 0x4e8850
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 0x4e8850
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 0x4e88b4
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 0x4e8890
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 0x4e8967
cmp dword [esp + 0x48], 0
jne 0x4e8967
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.00588d50
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 0x4e8936
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x4e895e
cmp word [ebp + ebx*2], 4
jae 0x4e895e
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 0x4e8940
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 0x4e87b0
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 0x4e8a07
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 0x4e89fc
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 0x4e89d0
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 0x4e89b0
mov eax, dword [esp + 0x28]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0xf4], eax
mov dword [esp + 0x10], ebx
jle 0x4e8c8d
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 0x4e8b9f
mov edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0xf4]
jl 0x4e8a81
inc eax
cmp eax, 5
mov dword [esp + 0xf4], eax
jg 0x4e8d94
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 0x4e8aac
mov edi, ebp
lea esi, [esp + 0x30]
call fcn.004b2af0
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 0x4e8b82
cmp ebx, dword [esp + 0x30]
jge 0x4e8b80
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x4e8aea
mov edi, ebx
lea esi, [esp + 0x30]
call fcn.004b2af0
mov ecx, dword [esp + 0x20]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4e8b82
push 0x5e9b1c
push 0x111df
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d31b0
mov dword [esp + 0x28], 0xb
add esp, 0x14
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4e971d
cmp dword [0x633cb0], 0
je 0x4e9713
mov eax, dword [0x641778]
test eax, eax
je 0x4e8b4a
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 0x4e971d
push eax
call dword [0x633d14]
jmp 0x4e971a
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 0x4e8a50
mov edx, dword [esp + 0x30]
cmp dword [esp + ebx + 0x88], edx
jge 0x4e8c36
mov ebp, dword [esp + 0x3c]
jmp 0x4e8bc0
mov edi, dword [esp + ebx + 0x88]
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x4e8bde
lea esi, [esp + 0x30]
call fcn.004b2af0
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 0x4e8c36
inc edi
cmp dword [esp + 0x48], 0
mov dword [esp + ebx + 0x6c], ecx
mov dword [esp + ebx + 0x88], edi
jne 0x4e8c2e
cmp edi, edx
jge 0x4e8c2c
movzx eax, word [ebp + edi*2]
test ax, ax
jne 0x4e8c21
lea esi, [esp + 0x30]
call fcn.004b2af0
mov edx, dword [esp + 0x30]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4e8c2e
xor eax, eax
sub dword [esp + ebx + 0x70], eax
cmp edi, edx
jl 0x4e8bc0
mov ecx, dword [esp + ebx + 0x88]
cmp ecx, edx
jl 0x4e8c4e
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xf4], edx
jmp 0x4e8c68
cmp dword [esp + 0x10], 0
jle 0x4e8c5e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + ebx]
jmp 0x4e8c60
xor eax, eax
cmp ecx, eax
jle 0x4e8da3
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 0x4e8a40
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0xf4]
dec ebx
test ebx, ebx
jle 0x4e8dce
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 0x4e8cee
lea esi, [esp + 0x30]
call fcn.004b2af0
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 0x4e8d10
mov edi, ebp
lea esi, [esp + 0x30]
call fcn.004b2af0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
test eax, eax
je 0x4e8d48
cmp dword [esp + 0x11c], 0
jne 0x4e8d79
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 0x4e8d79
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 0x4e8cf2
cmp ebx, 1
mov dword [esp + ebx*4 + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + ebx*4 + 0x68], eax
jle 0x4e8db2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + ebx*4 - 4]
jmp 0x4e8db4
push 0x5e9b1c
push 0x1124c
jmp 0x4e8b02
push 0x5e9b1c
push 0x1126d
jmp 0x4e8b02
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp dword [ecx + ebx*4], eax
jle 0x4e8e69
dec ebx
test ebx, ebx
jg 0x4e8ca1
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 0x4e8f68
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x28]
jge 0x4e8ec7
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 0x4e8e83
mov ecx, dword [ebx + 0x18]
cmp dword [eax + 0x18], ecx
jb 0x4e8e83
cmp dword [eax + 0x60], 0
je 0x4e8e65
mov ecx, dword [eax + 0x60]
xor edi, edi
mov dword [esp + 0x20], ecx
test ecx, ecx
jle 0x4e8e65
mov esi, dword [eax + 0x5c]
add esi, 0x10
mov eax, dword [ebx + 0x18]
cmp dword [esi + 4], eax
jb 0x4e8e5d
mov ecx, dword [esi]
call fcn.004aedc0
test eax, eax
je 0x4e8e78
mov ecx, dword [esp + 0x20]
inc edi
add esi, 0x30
cmp edi, ecx
jl 0x4e8e46
xor eax, eax
jmp 0x4e8eae
push 0x5e9b1c
push 0x11297
jmp 0x4e8b02
push ebx
call fcn.004c4100
add esp, 4
jmp 0x4e8eae
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x4e8e8e
mov eax, ecx
jmp 0x4e8eae
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x4e8ea7
push ebx
call fcn.004c43f0
add esp, 4
jmp 0x4e8eae
mov eax, ebx
call fcn.004c4330
inc dword [esp + 0x24]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e8b1e
mov edi, dword [esp + 0x10]
jmp 0x4e8f56
cmp dword [esp + 0x11c], 0
mov eax, 1
jne 0x4e8eda
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.004e6cd0
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e8b1e
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push eax
call fcn.004e5d20
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 0x4e8f56
mov eax, dword [ebp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esi + 4]
push 5
call fcn.004e4e50
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x4e8b1e
inc edi
cmp edi, dword [esp + 0xf4]
mov dword [esp + 0x10], edi
jl 0x4e8df2
mov esi, dword [esp + 0x24]
xor eax, eax
test esi, esi
jle 0x4e8fb7
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 0x4e8fb2
nop
cmp dword [esp + ecx*4 + 0xc8], edx
je 0x4e9077
inc ecx
cmp ecx, eax
jl 0x4e8fa0
inc eax
cmp eax, esi
jl 0x4e8f72
xor edi, edi
mov dword [esp + 0x10], edi
test esi, esi
jle 0x4e91ae
xor ebp, ebp
lea eax, [ebp + 1]
cmp esi, eax
jle 0x4e8ff0
xor edx, edx
lea ecx, [eax*4]
mov ebx, dword [esp + ecx + 0xb0]
cmp ebx, dword [esp + edx + 0xb0]
jae 0x4e8feb
mov ebp, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x4e8fd0
mov ebx, dword [esp + ebp*4 + 0xb0]
mov dword [esp + ebp*4 + 0xb0], 0xffffffff
cmp ebp, edi
je 0x4e91a1
jle 0x4e90db
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 0x4e90db
test al, 8
je 0x4e90db
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x4e9068
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4e9086
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x4e908c
push 0x5e9b1c
push 0x112e1
jmp 0x4e8b02
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4e909b
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x4e90a8
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x4e90a8
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4e90bd
mov dword [ecx + 0x24], esi
jmp 0x4e90ca
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4e90ca
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4e90db
test byte [esi + 0x1c], 8
jne 0x4e90db
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 0x4e9196
test al, 8
je 0x4e9196
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x4e9132
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4e9141
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x4e9147
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4e9156
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x4e9163
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x4e9163
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4e9178
mov dword [ecx + 0x24], esi
jmp 0x4e9185
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4e9185
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4e9196
test byte [esi + 0x1c], 8
jne 0x4e9196
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 0x4e8fc5
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 0x4e91ec
mov edx, dword [esp + 0x28]
cmp esi, edx
je 0x4e91ec
lea ecx, [esp + 0x9c]
jg 0x4e91dc
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 0x4e93a9
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 0x4e93a9
mov dword [esp + 0x20], edi
jmp 0x4e9240
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x38]
mov ebp, dword [edx + edi*4]
cmp edi, ecx
jne 0x4e92a0
mov eax, dword [esp + 0x4c]
inc eax
cmp eax, esi
mov dword [esp + 0x4c], eax
jge 0x4e9265
mov eax, dword [esp + eax*4 + 0x9c]
jmp 0x4e9269
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 0x4e92a4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp edi, dword [esp + edx + 0x88]
jne 0x4e92d4
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 0x4e939a
mov ecx, dword [esp + 0x4c]
cmp ecx, esi
jge 0x4e92fa
mov edx, dword [ebx + 4]
cmp edx, dword [esp + ecx*4 + 0xc8]
jne 0x4e92fa
cmp ebp, eax
jb 0x4e92fa
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp ebp, ecx
jb 0x4e939a
cmp word [esp + 0x44], 0
jne 0x4e931e
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.004e4e50
add esp, 0xc
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4e9334
lea esi, [esp + 0x30]
call fcn.004b2af0
movzx eax, ax
cmp ax, word [ebx + 0x10]
jbe 0x4e938f
cmp dword [esp + 0x14], 0
jne 0x4e8b1e
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 0x4e939a
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.004e4e50
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x4e8b1e
mov esi, dword [esp + 0x24]
inc edi
cmp edi, dword [esp + 0x30]
jl 0x4e9240
lea eax, [esi - 1]
mov dword [esp + 0x10], 0
test eax, eax
jle 0x4e950d
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 0x4e940f
mov ecx, dword [edi + 0x38]
mov edx, dword [ebp]
mov dword [ecx + 8], edx
jmp 0x4e94c0
cmp dword [esp + 0x48], 0
je 0x4e94a6
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 0x4e9495
jb 0x4e9458
cmp edx, 0x7f
ja 0x4e9469
and dl, 0x7f
mov eax, 1
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x4e94c0
test eax, eax
ja 0x4e9495
jb 0x4e9477
cmp edx, 0x3fff
ja 0x4e9495
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 0x4e94c0
push eax
push edx
call fcn.004ad750
add esp, 8
add eax, 4
xor esi, esi
jmp 0x4e94c0
sub ebp, 4
cmp dx, 4
jne 0x4e94c0
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.004e7b30
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x4e8b1e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
dec ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4e93c0
mov ebp, dword [esp + 0x24]
mov ebx, 1
sub ebx, ebp
cmp ebx, ebp
jge 0x4e95f5
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 0x4e9538
mov esi, ebx
cmp byte [esp + esi + 0x100], 0
jne 0x4e95e7
test ebx, ebx
jge 0x4e955e
mov ecx, dword [esp + esi*4 + 0xdc]
cmp ecx, dword [esp + esi*4 + 0x84]
jl 0x4e95e7
test esi, esi
jne 0x4e956f
mov eax, dword [esp + 0x88]
xor edx, edx
xor ecx, ecx
jmp 0x4e95a0
cmp esi, dword [esp + 0x28]
jge 0x4e9585
xor edx, edx
test edi, edi
sete dl
add edx, dword [esp + esi*4 + 0xdc]
jmp 0x4e9589
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.004e7fa0
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4e8b1e
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 0x4e9530
cmp dword [esp + 0x118], 0
je 0x4e9656
mov edi, dword [esp + 0x50]
cmp word [edi + 0x16], 0
jne 0x4e9656
movzx ax, byte [edi + 9]
mov esi, dword [esp + 0x9c]
cmp ax, word [esi + 0x14]
ja 0x4e9656
push 0xffffffffffffffff
push esi
call fcn.004e5060
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], eax
push esi
mov eax, edi
call fcn.004e83a0
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x4e9699
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x34]
push edx
push esi
push eax
call fcn.004e72f0
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x4e9699
mov edi, dword [esp + 0x2c]
cmp byte [edi + 0x11], 0
je 0x4e9699
cmp word [esp + 0x44], 0
jne 0x4e9699
xor esi, esi
test ebp, ebp
jle 0x4e9699
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.004e4e50
inc esi
add esp, 0xc
cmp esi, ebp
jl 0x4e9670
mov edi, dword [esp + 0x28]
cmp ebp, edi
mov esi, ebp
jge 0x4e8b1e
mov eax, dword [esp + 0x14]
jmp 0x4e96b0
mov ecx, dword [esp + esi*4 + 0x60]
test eax, eax
jne 0x4e96c9
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 0x34]
push edx
push ecx
push eax
call fcn.004e72f0
add esp, 0xc
inc esi
cmp esi, edi
jl 0x4e96b0
mov dword [esp + 0x14], eax
jmp 0x4e8b1e
push 0x5e9b1c
push 0x1119e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d31b0
lea ecx, [edi*4 + 4]
push ecx
lea edx, [esp + 0x78]
push 0
push edx
mov dword [esp + 0x34], 0xb
call fcn.00585e50
add esp, 0x20
jmp 0x4e971d
push esi
call dword [0x633ce0]
add esp, 4
xor edi, edi
cmp dword [esp + 0x28], edi
mov bl, 0x20
jle 0x4e9794
jmp 0x4e9730
mov eax, dword [esp + edi*4 + 0x60]
test eax, eax
je 0x4e978d
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], bl
je 0x4e9788
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.00588bf0
push edx
push eax
mov eax, dword [ebp + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4e978d
call fcn.004af220
inc edi
cmp edi, dword [esp + 0x28]
jl 0x4e9730
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x4e9807
mov eax, dword [esp + edi*4 + 0x9c]
test eax, eax
je 0x4e9800
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], bl
je 0x4e97fb
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.00588bf0
push edx
push eax
mov eax, dword [ebp + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4e9800
call fcn.004af220
inc edi
cmp edi, dword [esp + 0x24]
jl 0x4e97a0
mov ecx, dword [esp + 0x108]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00584267
add esp, 0xfc
ret