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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x65e374]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov eax, ecx
mov dword [esp + 0x14], 0
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x34], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x80], esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x128], 0
mov byte [esp + 0x12c], 0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x38], ecx
push edi
test esi, esi
jne 0x4d0065
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x16]
movzx ecx, byte [eax + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x4d0079
xor edx, edx
jmp 0x4d0096
test edx, edx
je 0x4d008c
cmp edx, esi
jne 0x4d008b
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x4d008f
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x68], edx
mov dword [esp + 0x48], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x70], esi
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x4d00c2
mov eax, dword [esp + 0x38]
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x4d00dd
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edx, dword [ecx]
lea edi, [esp + 0x10c]
push 0
bswap edx
mov dword [esp + 0x68], ecx
lea edi, [edi + esi*4]
mov ecx, dword [esp + 0x40]
push 0
push edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], edx
call fcn.004cab20
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4d02b5
nop dword [eax + eax]
mov eax, dword [edi]
mov dword [esp + 0x60], esi
movzx ecx, word [eax + 0x16]
movzx eax, byte [eax + 0xc]
inc eax
add eax, dword [esp + 0x1c]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x4d0322
mov edi, dword [esp + 0x38]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x4d019c
mov eax, dword [esp + 0x68]
movzx ecx, word [edi + 0x1a]
add eax, esi
cmp eax, ecx
jne 0x4d019c
mov eax, dword [edi + 0x24]
lea edi, [esi*4]
push eax
mov dword [esp + edi + 0x80], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x3c]
bswap ecx
push eax
mov dword [esp + 0x54], ecx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x48], ecx
call eax
movzx eax, ax
mov dword [esp + edi + 0x98], eax
mov eax, dword [esp + 0x40]
mov byte [eax + 0xc], 0
jmp 0x4d0282
mov ecx, dword [esp + 0x68]
movzx eax, dl
mov edx, dword [esp + 0x60]
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, edx
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
lea eax, [edx*4 - 4]
add edi, ecx
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x7c]
add eax, ecx
mov dword [esp + 0x28], eax
push edi
mov dword [eax], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x34], edx
mov dword [esp + eax + 0x90], edx
mov eax, dword [esp + 0x3c]
test byte [eax + 0x16], 4
je 0x4d025c
mov eax, dword [esp + 0x38]
mov ecx, edi
mov ebx, dword [esp + 0x3c]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x4d02dc
mov eax, dword [esp + 0x84]
push edx
add eax, ecx
push edi
push eax
call fcn.005cfab0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov edx, dword [esp + 0x34]
sub edi, dword [eax + 0x38]
mov eax, dword [esp + 0x28]
add edi, dword [esp + 0x84]
mov dword [eax], edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x68]
push eax
push edx
movzx eax, byte [edi + 0xc]
mov edx, dword [esp + 0x68]
sub ecx, eax
dec edx
add edx, ecx
mov ecx, edi
call fcn.004cf3c0
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x114]
mov ecx, dword [esp + 0x44]
add esp, 8
add edi, eax
push 0
push 0
push edi
call fcn.004cab20
mov edx, eax
add esp, 0xc
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], edx
test edx, edx
je 0x4d0120
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x110]
push 0
push eax
call fcn.005d05b0
mov edi, dword [esp + 0x2c]
add esp, 0xc
xor eax, eax
xor ebx, ebx
jmp 0x4d1324
push 0x6376e4
push 0x10280
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
mov eax, dword [esp + 0x38]
add esp, 0x14
add eax, 4
mov edi, 0xb
push eax
lea eax, [esp + 0x110]
push 0
push eax
call fcn.005d05b0
add esp, 0xc
xor eax, eax
xor ebx, ebx
jmp 0x4d1324
mov eax, dword [esp + 0x3c]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov ecx, dword [eax + 0x20]
lea edi, [esi + esi*2]
add edi, edi
add ecx, edi
call fcn.004b7ab0
mov dword [esp + 0x14], eax
mov dword [esp + 0x58], eax
test eax, eax
jne 0x4d0351
lea edi, [eax + 7]
xor ebx, ebx
jmp 0x4d1324
mov ecx, dword [esp + 0x10c]
lea eax, [eax + esi*4]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x60], eax
mov al, byte [ecx + 3]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x88], eax
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x48], eax
jle 0x4d059e
xor edi, edi
nop
shl eax, 2
mov dword [esp + 0x78], eax
mov edx, dword [esp + eax + 0x10c]
mov dword [esp + 0x34], edx
movzx eax, word [edx + 0x18]
mov ecx, dword [edx + 0x38]
mov esi, eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x6c], esi
movzx esi, word [edx + 0x12]
add esi, ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x1c], esi
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x4d069b
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
add ecx, eax
mov eax, dword [esp + 0x5c]
add ecx, ecx
push ecx
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.005d05b0
mov eax, dword [esp + 0x40]
add esp, 0xc
mov cl, byte [eax + 0xc]
test cl, cl
je 0x4d048a
movzx edx, word [eax + 0x1a]
test edx, edx
je 0x4d045a
nop
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x6c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
sub edx, 1
jne 0x4d0420
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], ebx
mov cl, byte [eax + 0xc]
xor edx, edx
test cl, cl
je 0x4d048a
lea ecx, [eax + 0x24]
mov esi, dword [esp + 0x14]
lea ecx, [ecx + 4]
mov eax, dword [ecx - 4]
inc edx
mov dword [esi + ebx*4], eax
inc ebx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x50], ebx
movzx eax, byte [esi + 0xc]
cmp edx, eax
jl 0x4d0463
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x34]
xor edx, edx
movzx ecx, word [eax + 0x16]
movzx eax, word [eax + 0x12]
add eax, dword [esp + 0x44]
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp esi, eax
cmova ecx, edx
mov dword [esp + 0x6c], ecx
test ecx, ecx
je 0x4d04e7
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [esp + 0x8c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x14]
add ecx, dword [esp + 0x44]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
cmp edx, dword [esp + 0x6c]
jb 0x4d04b3
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
mov dword [esp + edx + 0xb8], ebx
cmp eax, dword [esp + 0x70]
jge 0x4d058f
cmp byte [esp + 0x13], 0
jne 0x4d058f
movzx eax, word [esp + edx + 0x90]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x28]
push eax
push dword [esp + edx + 0x80]
add esi, edi
mov word [ecx + ebx*2], ax
push esi
add edi, eax
call fcn.005cfab0
mov eax, dword [esp + 0x6c]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x5c]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x60]
sub word [edx + ebx*2], ax
mov eax, dword [esp + 0x34]
cmp byte [eax + 8], 0
jne 0x4d0567
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4d0582
cmp word [edx + ebx*2], 4
jae 0x4d0582
mov eax, dword [esp + 0x28]
mov byte [eax + edi], 0
inc edi
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x4d0572
mov eax, dword [esp + 0x24]
inc ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], ebx
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x48]
jl 0x4d03a0
mov eax, dword [esp + 0x60]
xor edx, edx
movzx ecx, ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x4d0656
mov ecx, eax
lea esi, [esp + 0xb8]
lea edi, [esp + 0xa4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x34]
nop dword [eax]
mov esi, dword [esp + edx*4 + 0x10c]
mov edi, ecx
mov dword [esp + 0x28], 0
movzx eax, word [esi + 0x14]
sub edi, eax
cmp byte [esi + 0xc], 0
lea eax, [esp + 0x90]
lea eax, [eax + edx*4]
mov dword [eax], edi
mov dword [esp + 0x70], eax
jbe 0x4d0645
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x30]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x30], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4d0610
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [eax], edi
mov eax, dword [esp + 0x48]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, eax
jl 0x4d05e0
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov edi, eax
mov dword [esp + 0x44], edi
test eax, eax
jle 0x4d0868
mov edx, 1
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], ecx
nop dword [eax + eax]
lea eax, [esp + 0x90]
add eax, ecx
mov dword [esp + 0x70], eax
mov esi, dword [eax]
cmp esi, dword [esp + 0x34]
jle 0x4d0793
jmp 0x4d06ce
push 0x6376e4
push 0x102c3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4d1320
lea eax, [esp + 0x90]
add eax, ecx
cmp edx, edi
jl 0x4d06f4
inc edx
mov dword [esp + 0x44], edx
cmp edx, 5
jg 0x4d09e4
mov dword [esp + ecx + 0x94], 0
mov esi, dword [eax]
mov dword [esp + ecx + 0xa8], ebx
mov edi, dword [esp + ecx + 0xa4]
mov edx, dword [esp + 0x5c]
lea ecx, [edi - 1]
mov dword [esp + 0x78], ecx
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x4d0729
mov edx, ecx
lea ecx, [esp + 0x50]
call fcn.004cf780
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x70]
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [esp + 0x13], 0
mov dword [ecx], esi
jne 0x4d076b
cmp edi, ebx
jge 0x4d0769
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4d0761
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.004cf780
mov ebx, dword [esp + 0x50]
movzx eax, ax
mov dword [esp + 0x30], ebx
movzx eax, ax
add eax, 2
jmp 0x4d076b
xor eax, eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
add dword [esp + ecx + 0x94], eax
mov eax, dword [esp + 0x78]
mov dword [esp + ecx + 0xa4], eax
cmp esi, dword [esp + 0x34]
jg 0x4d06c5
mov edi, dword [esp + ecx + 0xa4]
cmp edi, ebx
jge 0x4d083d
mov edx, dword [esp + 0x5c]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4d07cd
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.004cf780
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x30], ebx
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [esp + 0x34]
jg 0x4d09b9
inc edi
mov dword [esp + ecx + 0x90], esi
cmp byte [esp + 0x13], 0
mov dword [esp + ecx + 0xa4], edi
jne 0x4d082a
cmp edi, ebx
jge 0x4d0828
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4d081c
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.004cf780
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x24]
movzx eax, ax
add eax, 2
jmp 0x4d082a
xor eax, eax
sub dword [esp + ecx + 0x94], eax
cmp edi, ebx
jl 0x4d07a6
mov edx, dword [esp + 0x14]
mov edi, edx
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x1c]
add ecx, 4
inc eax
mov dword [esp + 0x24], ecx
inc edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
cmp eax, edi
jl 0x4d0680
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
lea eax, [edi - 1]
mov ecx, eax
mov dword [esp + 0x24], eax
test ecx, ecx
jle 0x4d0a95
nop dword [eax]
shl ecx, 2
lea eax, [esp + 0x90]
add eax, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x6c], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0x8c]
mov dword [esp + 0x7c], eax
mov eax, dword [eax]
mov dword [esp + 0x30], eax
lea eax, [esp + 0xa4]
sub eax, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x5c]
lea esi, [ebx - 1]
mov edx, esi
sub edx, dword [esp + 0x88]
inc edx
lea eax, [edx + edx]
cmp word [eax + ecx], 0
mov dword [esp + 0x1c], eax
jne 0x4d08f4
lea ecx, [esp + 0x50]
call fcn.004cf780
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esp + 0x5c]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x8c], esi
mov dword [esp + 0x78], esi
jne 0x4d0915
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.004cf780
mov ecx, dword [esp + 0x5c]
test edi, edi
je 0x4d0964
cmp dword [ebp + 0x10], 0
mov edx, ebx
jne 0x4d0a40
movzx eax, word [ecx + esi*2]
mov edi, 0
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
dec ebx
sub ecx, eax
cmp dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x5c]
mov eax, 2
cmove eax, edi
mov edi, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4d0a40
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
movzx eax, word [edx + ecx]
sub edx, 2
add eax, 2
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x8c]
add edi, eax
movzx eax, word [ecx + esi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [esp + 0x78]
jns 0x4d08f0
jmp 0x4d0a44
cmp edi, ebx
jge 0x4d0839
cmp dword [esp + 0x1c], 0
jle 0x4d09d1
mov eax, dword [esp + ecx + 0xa0]
jmp 0x4d09d3
xor eax, eax
cmp edi, eax
jle 0x4d0a12
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x44]
jmp 0x4d0843
push 0x6376e4
push 0x10330
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4d1324
push 0x6376e4
push 0x10351
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4d1324
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x6c]
mov dword [ecx], edi
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
cmp ecx, 1
jle 0x4d0a6a
mov ebx, dword [esp + 0x14]
lea eax, [ecx*4]
mov eax, dword [eax + ebx - 4]
jmp 0x4d0a6c
xor eax, eax
cmp edx, eax
jle 0x4d0afb
dec ecx
mov dword [esp + 0x24], ecx
test ecx, ecx
jg 0x4d0880
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x10c]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x1c], eax
lea eax, [esi + 1]
test edi, edi
jle 0x4d0c0e
cmp esi, dword [esp + 0x48]
jge 0x4d0b6d
mov eax, dword [esp + esi*4 + 0x10c]
mov dword [esp + esi*4 + 0x118], eax
mov dword [esp + esi*4 + 0x10c], 0
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 4
mov edx, dword [ecx + 0x10]
je 0x4d0b2d
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x14]
jb 0x4d0b2d
cmp dword [edx + 0x68], 0
je 0x4d0b29
call fcn.004c43d0
jmp 0x4d0b52
push 0x6376e4
push 0x1037b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4d1324
xor edi, edi
jmp 0x4d0b54
mov edi, dword [edx + 0x2c]
mov dword [esp + 0x20], edi
test edi, edi
jne 0x4d0b58
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa0]
jbe 0x4d0b4d
call fcn.004c5ce0
jmp 0x4d0b52
call fcn.004c5c60
mov edi, eax
mov dword [esp + 0x20], edi
inc dword [esp + 0x18]
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x4d131c
jmp 0x4d0bfe
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x4c]
cmovne ecx, eax
lea eax, [esp + 0x40]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.004ce640
mov edi, eax
add esp, 0xc
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x4d131c
mov edi, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x1c]
call fcn.004ca950
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x18]
mov dword [esp + esi*4 + 0x118], edi
mov dword [esp + esi*4 + 0xb8], ebx
cmp byte [ecx + 0x11], 0
je 0x4d0bf6
mov edx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push 5
call fcn.004c97c0
mov edi, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x20], edi
test edi, edi
jne 0x4d131c
mov edx, dword [esp + 0x40]
mov dword [esp + 0x4c], edx
inc esi
mov eax, 1
cmp esi, dword [esp + 0x44]
jl 0x4d0ab3
mov esi, dword [esp + 0x18]
xor ecx, ecx
test esi, esi
jle 0x4d0c67
nop dword [eax + eax]
mov eax, dword [esp + ecx*4 + 0x118]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0xf0], edx
mov dword [esp + ecx*4 + 0xd8], edx
mov ax, word [eax + 0x18]
mov word [esp + ecx*2 + 0xcc], ax
xor eax, eax
test ecx, ecx
jle 0x4d0c62
nop dword [eax]
cmp dword [esp + eax*4 + 0xf0], edx
je 0x4d0df5
inc eax
cmp eax, ecx
jl 0x4d0c50
inc ecx
cmp ecx, esi
jl 0x4d0c20
xor edi, edi
mov dword [esp + 0x28], edi
test esi, esi
jle 0x4d0d35
mov ebx, dword [esp + 0x3c]
nop dword [eax]
mov edx, 1
xor esi, esi
cmp dword [esp + 0x18], edx
jle 0x4d0cbe
mov edi, dword [esp + 0x18]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0xd8]
mov ecx, edx
cmp eax, dword [esp + esi*4 + 0xd8]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, edi
jl 0x4d0ca0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + esi*4 + 0xd8]
mov dword [esp + 0x7c], eax
mov dword [esp + esi*4 + 0xd8], 0xffffffff
cmp esi, edi
je 0x4d0d20
jle 0x4d0cf5
mov eax, dword [esp + esi*4 + 0x118]
mov edx, dword [ebx + 0x2c]
inc edx
add edx, esi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x18], ax
call fcn.004c04d0
mov eax, dword [esp + edi*4 + 0x118]
mov ecx, dword [eax + 0x48]
mov ax, word [esp + esi*2 + 0xcc]
mov esi, dword [esp + 0x7c]
mov edx, esi
mov word [ecx + 0x18], ax
call fcn.004c04d0
mov eax, dword [esp + edi*4 + 0x118]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x28], edi
cmp edi, esi
jl 0x4d0c80
mov ebx, dword [esp + 0x30]
test byte [esp + 0x1c], 8
mov eax, dword [esp + esi*4 + 0x114]
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x4d0d7e
mov ecx, dword [esp + 0x48]
cmp ecx, esi
je 0x4d0d7e
lea edx, [esp + 0x10c]
lea eax, [esp + 0x118]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + esi*4 + 0x114]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x3c]
cmp byte [edx + 0x11], 0
je 0x4d0f7b
mov esi, dword [esp + 0x118]
xor edi, edi
mov dword [esp + 0x64], 0
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x16]
mov dword [esp + 0x28], eax
movzx eax, byte [esi + 0xc]
add ecx, eax
mov eax, dword [edx + 0x24]
xor edx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x24], edx
test ebx, ebx
jle 0x4d0f82
xor eax, eax
mov dword [esp + 0x4c], eax
nop dword [eax]
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + edi*4]
mov dword [esp + 0x40], ecx
cmp edi, dword [esp + 0x1c]
jne 0x4d0e54
inc edx
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x18]
jge 0x4d0e1d
mov edx, dword [esp + edx*4 + 0x118]
jmp 0x4d0e24
push 0x6376e4
push 0x103c5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ba090
add esp, 0x14
mov edi, 0xb
jmp 0x4d131c
mov edx, dword [esp + edx*4 + 0x10c]
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
add ecx, eax
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
cmp edi, dword [esp + eax + 0xa4]
jne 0x4d0e7f
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x4c], eax
mov esi, dword [esp + eax + 0x118]
je 0x4d0f6e
cmp edx, dword [esp + 0x18]
jge 0x4d0ea5
mov eax, dword [esi + 4]
cmp eax, dword [esp + edx*4 + 0xf0]
jne 0x4d0ea5
mov eax, dword [esp + 0x28]
cmp ecx, eax
jb 0x4d0ea5
add eax, dword [esp + 0x7c]
cmp ecx, eax
jb 0x4d0f6a
cmp word [esp + 0x60], 0
jne 0x4d0ecf
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
push eax
push dword [esi + 4]
bswap edx
push 5
call fcn.004c97c0
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4d0ef6
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.004cf780
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x50]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x4d0f5e
cmp dword [esp + 0x20], 0
jne 0x4d1318
lea eax, [esp + 0xd8]
push eax
push dword [esp + 0x44]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [esp + 0xf4]
add esp, 0xc
cmp eax, dword [esp + 0xe4]
jae 0x4d0f6a
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x2c]
mov ecx, dword [esi + 0x34]
push eax
movzx eax, word [esp + 0xee]
push dword [esi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.004c97c0
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x4d0f62
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4d1318
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
inc edi
cmp edi, ebx
jl 0x4d0dd0
mov esi, dword [esp + 0x118]
mov ecx, dword [esp + 0x18]
xor edi, edi
lea eax, [ecx - 1]
test eax, eax
jle 0x4d110b
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + edi*4 + 0xa4]
mov edx, dword [esp + 0x14]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [esp + edi*4 + 0x118]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x60]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov dword [esp + 0x88], eax
movzx eax, cx
mov ecx, dword [esp + 0x64]
add edx, eax
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x74]
mov dword [esp + 0x40], eax
cmp byte [ecx + 8], 0
jne 0x4d1001
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4d10ba
cmp byte [esp + 0x13], 0
je 0x4d109b
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esp + 0x80]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x100]
add esp, 0xc
mov eax, dword [esp + 0x40]
mov esi, eax
mov ecx, dword [esp + 0xf0]
test edx, edx
ja 0x4d1087
jb 0x4d1046
cmp ecx, 0x7f
ja 0x4d1058
and cl, 0x7f
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x4d10be
test edx, edx
ja 0x4d1087
jb 0x4d1066
cmp ecx, 0x3fff
ja 0x4d1087
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [esp + 0x40]
or al, 0x80
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x4d10be
push edx
push ecx
lea ecx, [eax + 4]
call fcn.004bb7b0
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x4d10be
sub esi, 4
cmp word [esp + 0x88], 4
jne 0x4d10be
mov eax, dword [esp + 0x38]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x40]
add dword [esp + 0x74], edx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x68]
push dword [ecx + 4]
mov ecx, dword [esp + 0x40]
push eax
push edx
mov edx, dword [esp + 0x78]
push esi
lea edx, [edx + edi]
call fcn.004cf4f0
mov eax, dword [esp + 0x40]
add esp, 0x14
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4d1318
mov ecx, dword [esp + 0x18]
inc edi
lea eax, [ecx - 1]
cmp edi, eax
jl 0x4d0fa0
mov esi, dword [esp + 0x118]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x74], eax
cmp eax, ecx
jge 0x4d1204
nop
cdq
lea edi, [esp + 0x12c]
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x4d11e2
cmp dword [esp + 0x74], 0
jge 0x4d1154
mov eax, dword [esp + ecx*4 + 0xb4]
cmp eax, dword [esp + ecx*4 + 0xa0]
jl 0x4d11e2
test ecx, ecx
jne 0x4d1165
mov edx, dword [esp + 0xa4]
xor ebx, ebx
xor eax, eax
jmp 0x4d1194
cmp ecx, dword [esp + 0x48]
jge 0x4d117b
xor ebx, ebx
cmp byte [esp + 0x13], bl
sete bl
add ebx, dword [esp + ecx*4 + 0xb4]
mov edx, dword [esp + ecx*4 + 0xa4]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ecx*4 + 0xa0]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + esi + 0x11c]
push edx
push eax
mov edx, ebx
call fcn.004cfa80
add esp, 0xc
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x4d126a
mov eax, dword [esp + esi + 0x118]
mov cx, word [esp + 0x34]
sub cx, word [esp + esi + 0x90]
mov ebx, dword [esp + 0x50]
mov byte [edi], 1
mov word [eax + 0x14], cx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
cmp eax, dword [esp + 0x18]
jl 0x4d1120
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x118]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x4d127b
mov ebx, dword [esp + 0x38]
cmp word [ebx + 0x16], 0
jne 0x4d127b
movzx eax, byte [ebx + 9]
cmp ax, word [esi + 0x14]
ja 0x4d127b
or edx, 0xffffffff
mov ecx, esi
call fcn.004c9d00
mov ecx, dword [esp + 0x118]
mov edx, ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004cff10
mov edi, dword [esp + 0x30]
add esp, 4
test edi, edi
jne 0x4d12da
mov ecx, dword [esp + 0x118]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.004cec50
add esp, 4
mov edi, eax
jmp 0x4d12da
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
jmp 0x4d1324
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x4d12d6
cmp word [esp + 0x60], 0
mov ebx, dword [esp + 0x18]
jne 0x4d12d0
xor esi, esi
test ebx, ebx
jle 0x4d12d0
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0x118]
lea edx, [esp + 0x2c]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.004c97c0
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x4d12a0
mov edi, dword [esp + 0x2c]
jmp 0x4d12de
mov edi, dword [esp + 0x20]
jmp 0x4d12de
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov esi, ebx
cmp ebx, eax
jge 0x4d1320
nop dword [eax + eax]
mov ecx, dword [esp + esi*4 + 0x10c]
test edi, edi
jne 0x4d1311
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.004cec50
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x4d12f0
jmp 0x4d1320
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.004b7bc0
mov eax, dword [esp + 0x48]
xor esi, esi
test eax, eax
jle 0x4d1351
mov ecx, dword [esp + esi*4 + 0x10c]
test ecx, ecx
je 0x4d134c
mov ecx, dword [ecx + 0x48]
call fcn.004c5760
mov eax, dword [esp + 0x48]
inc esi
cmp esi, eax
jl 0x4d1335
xor esi, esi
test ebx, ebx
jle 0x4d1378
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0x118]
test ecx, ecx
je 0x4d1373
mov ecx, dword [ecx + 0x48]
call fcn.004c5760
inc esi
cmp esi, ebx
jl 0x4d1360
mov ecx, dword [esp + 0x134]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005b8427
mov esp, ebp
pop ebp
ret