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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x77e784]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xcc], ebx
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0xb4], eax
test ecx, ecx
jne 0x4d5155
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
push esi
push edi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x4d516b
xor edi, edi
jmp 0x4d5191
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4d5176
xor edi, edi
jmp 0x4d5187
cmp eax, esi
jne 0x4d5184
mov eax, dword [ebp + 0x18]
lea edi, [eax - 2]
add edi, esi
jmp 0x4d518a
lea edi, [eax - 1]
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xd8], eax
mov eax, edi
sub eax, ecx
mov dword [ebp - 0xf4], esi
lea ecx, [eax + esi]
cmp ecx, edx
jne 0x4d51ba
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4d51ce
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]
lea edi, [ebp - 0x18]
push 0
push 0
lea edi, [edi + esi*4]
mov dword [ebp - 0xe0], ecx
mov eax, dword [ecx]
bswap eax
push edi
push eax
push dword [ebp - 0xb4]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xdc], eax
call fcn.004e64e0
add esp, 0x14
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x4d6609
mov ecx, dword [edi]
cmp dword [ecx + 0x14], 0
jge 0x4d523c
push ecx
call fcn.004d6e70
mov edi, eax
add esp, 4
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xac], edi
test edi, edi
jne 0x4d53cb
mov eax, esi
dec esi
test eax, eax
je 0x4d5417
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x4d52a8
mov eax, dword [ebp - 0xe4]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x4d52a8
mov eax, dword [ebx + 0x24]
lea edi, [esi*4]
push eax
mov dword [ebp + edi - 0x114], eax
mov ebx, dword [eax]
mov eax, dword [ebp - 0xcc]
bswap ebx
push eax
mov dword [ebp - 0xd4], ebx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0xdc], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + edi - 0x108], eax
mov eax, dword [ebp - 0xcc]
mov byte [eax + 0xc], 0
jmp 0x4d5393
mov ecx, dword [ebp - 0xe4]
lea edi, [esi*4]
movzx eax, dl
sub ecx, eax
mov eax, dword [ebx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [ebx + 0x38]
add eax, ecx
push eax
mov dword [ebp + edi - 0x114], eax
push ebx
mov ecx, dword [eax]
mov eax, dword [ebx + 0x4c]
bswap ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xdc], ecx
call eax
movzx ebx, ax
add esp, 8
mov eax, dword [ebp - 0xb4]
mov dword [ebp + edi - 0x108], ebx
test byte [eax + 0x16], 0xc
je 0x4d5367
mov eax, dword [ebp - 0xcc]
mov edx, dword [ebp + edi - 0x114]
mov ecx, edx
sub ecx, dword [eax + 0x38]
mov dword [ebp - 0xa4], ecx
lea eax, [ebx + ecx]
mov ecx, dword [ebp - 0xb4]
cmp eax, dword [ecx + 0x24]
mov ecx, dword [ebp - 0xa4]
jg 0x4d53d7
mov eax, dword [ebp - 0xec]
push ebx
push edx
add eax, ecx
push eax
call fcn.0060d750
mov edx, dword [ebp - 0xcc]
add esp, 0xc
mov eax, dword [ebp - 0xec]
sub eax, dword [edx + 0x38]
add dword [ebp + edi - 0x114], eax
jmp 0x4d536d
mov edx, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xe4]
lea eax, [ebp - 0xac]
push eax
movzx eax, byte [edx + 0xc]
sub ecx, eax
push ebx
add ecx, esi
push ecx
push edx
call fcn.004defc0
mov ebx, dword [ebp - 0xd4]
add esp, 0x10
push 0
lea eax, [ebp - 0x18]
push 0
add edi, eax
push edi
push ebx
push dword [ebp - 0xb4]
call fcn.004e64e0
add esp, 0x14
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x4d6609
mov ebx, dword [ebp - 0xcc]
jmp 0x4d5215
lea eax, [esi*4]
jmp 0x4d6610
push 0x6d638c
push 0x1182d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c0ad0
lea eax, [esi*4 + 4]
mov dword [ebp - 0xa0], 0xb
push eax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0060e250
add esp, 0x20
jmp 0x4d661f
mov eax, dword [ebp - 0xb4]
mov ebx, dword [ebp - 0xd8]
mov esi, dword [eax + 0x20]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, ebx
add edi, 3
and edi, 0xfffffffc
lea eax, [edi + edi*2]
lea eax, [esi + eax*2]
cdq
push edx
push eax
call fcn.00511a40
add esp, 8
mov dword [ebp - 0x7c], eax
test eax, eax
jne 0x4d5468
mov dword [ebp - 0xa0], 7
jmp 0x4d661f
mov ecx, dword [ebp - 0x18]
lea eax, [eax + edi*4]
mov dword [ebp - 0x78], eax
lea eax, [eax + edi*2]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x80], ecx
movzx eax, byte [ecx + 8]
movzx edi, byte [ecx + 3]
xor ecx, ecx
shl ax, 2
movzx eax, ax
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xb0], ecx
test ebx, ebx
jle 0x4d571c
xor ebx, ebx
nop word [eax + eax]
mov edi, dword [ebp + ecx*4 - 0x18]
mov dword [ebp - 0xc8], edi
movzx eax, word [edi + 0x1a]
mov ecx, dword [edi + 0x38]
mov esi, eax
movzx edx, word [edi + 0x18]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xb8], esi
movzx esi, word [edi + 0x12]
add esi, ecx
mov dword [ebp - 0xc0], ecx
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], edx
mov dword [ebp - 0xa4], esi
mov al, byte [eax]
cmp al, byte [ecx]
jne 0x4d5946
movzx eax, byte [edi + 0xc]
add eax, edx
mov edx, dword [ebp - 0x84]
add eax, eax
push eax
mov eax, dword [ebp - 0x78]
push 0
lea eax, [eax + edx*2]
push eax
call fcn.0060e250
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4d55c8
movzx edx, word [edi + 0x1c]
cmp dword [ebp - 0xc4], edx
jb 0x4d592e
test edx, edx
je 0x4d5589
mov edi, dword [ebp - 0xc0]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0xb8]
movzx eax, ax
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0x84]
add ecx, edi
mov edi, dword [ebp - 0x7c]
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [ebp - 0xc0]
mov dword [ebp - 0x84], eax
sub edx, 1
jne 0x4d5545
mov edi, dword [ebp - 0xc8]
mov dword [ebp - 0xa4], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x4d55c8
mov esi, dword [ebp - 0x84]
lea ecx, [edi + 0x24]
nop dword [eax]
mov edi, dword [ebp - 0x7c]
lea ecx, [ecx + 4]
mov eax, dword [ecx - 4]
inc edx
mov dword [edi + esi*4], eax
inc esi
mov edi, dword [ebp - 0xc8]
movzx eax, byte [edi + 0xc]
cmp edx, eax
jl 0x4d55a0
mov dword [ebp - 0x84], esi
mov esi, dword [ebp - 0xa4]
movzx eax, word [edi + 0x12]
xor edx, edx
movzx ecx, word [edi + 0x18]
add eax, dword [ebp - 0xc0]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
mov dword [ebp - 0xa4], edi
test edi, edi
je 0x4d562f
mov ax, word [esi]
lea esi, [esi + 2]
mov edi, dword [ebp - 0x7c]
mov ch, al
mov cl, ah
inc edx
mov eax, dword [ebp - 0x12c]
movzx eax, ax
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0x84]
add ecx, dword [ebp - 0xc0]
mov dword [edi + eax*4], ecx
inc eax
mov dword [ebp - 0x84], eax
cmp edx, dword [ebp - 0xa4]
jb 0x4d55f3
jmp 0x4d5635
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xb0]
mov edi, dword [ebp - 0xbc]
mov dword [ebp + ecx*4 - 0x140], eax
cmp ecx, dword [ebp - 0xf4]
jge 0x4d5703
test edi, edi
jne 0x4d5703
movzx eax, word [ebp + ecx*4 - 0x108]
mov edx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0xd0]
push eax
push dword [ebp + ecx*4 - 0x114]
mov word [esi + edx*2], ax
lea esi, [edi + ebx]
add ebx, eax
push esi
call fcn.0060d750
mov eax, dword [ebp - 0xe8]
add esp, 0xc
mov ecx, dword [ebp - 0x84]
mov edx, dword [ebp - 0x78]
movzx eax, ax
add eax, esi
mov esi, dword [ebp - 0x7c]
mov dword [esi + ecx*4], eax
mov eax, dword [ebp - 0xe8]
sub word [edx + ecx*2], ax
mov eax, dword [ebp - 0xc8]
cmp byte [eax + 8], 0
jne 0x4d56d0
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + ecx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x84]
jmp 0x4d56f0
mov eax, dword [ebp - 0x84]
cmp word [edx + eax*2], 4
jae 0x4d56f0
nop dword [eax]
mov byte [edi + ebx], 0
inc ebx
inc word [edx + eax*2]
cmp word [edx + eax*2], 4
jb 0x4d56e0
mov ecx, dword [ebp - 0xb0]
inc eax
mov edi, dword [ebp - 0xbc]
mov dword [ebp - 0x84], eax
inc ecx
mov dword [ebp - 0xb0], ecx
cmp ecx, dword [ebp - 0xd8]
jl 0x4d54b0
mov eax, dword [ebp - 0xe8]
movzx esi, ax
xor ecx, ecx
mov eax, dword [ebp - 0xb4]
xor ebx, ebx
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xc4], ebx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add esi, eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xc0], esi
test eax, eax
jle 0x4d5844
mov esi, dword [ebp + ebx*4 - 0x18]
mov edx, dword [ebp + ebx*4 - 0x140]
mov dword [ebp - 0xf4], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp + ecx*4 - 0x74], eax
mov dword [ebp + ecx*4 - 0x5c], edx
test ecx, ecx
je 0x4d577e
cmp edx, dword [ebp + ecx*4 - 0x60]
jne 0x4d577e
dec ecx
mov dword [ebp - 0xb0], ecx
test edi, edi
jne 0x4d579d
mov eax, dword [ebp - 0xcc]
inc ecx
mov dword [ebp - 0xb0], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp + ecx*4 - 0x74], eax
lea eax, [edx + 1]
mov dword [ebp + ecx*4 - 0x5c], eax
mov edi, dword [ebp - 0xc0]
lea eax, [ebp - 0x108]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
cmp byte [esi + 0xc], 0
mov dword [ebp - 0xd0], eax
mov dword [eax], edi
mov dword [ebp - 0xa4], 0
jbe 0x4d5815
lea ebx, [esi + 0x24]
nop word [eax + eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0xa4]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0xa4], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4d57d0
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0xc4]
mov dword [eax], edi
mov eax, dword [ebp - 0xd8]
inc ecx
mov edi, dword [ebp - 0xbc]
mov dword [ebp + ebx*4 - 0x128], edx
inc ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xb0], ecx
cmp ebx, eax
jl 0x4d5751
mov esi, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], 0
mov ecx, eax
mov dword [ebp - 0xb0], ecx
test eax, eax
jle 0x4d5abb
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x128]
xor ebx, ebx
mov edi, 1
sub eax, 4
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0xd0], eax
cmp dword [ebp + ebx - 0x108], esi
jle 0x4d59a8
nop dword [eax]
cmp edi, ecx
jl 0x4d58b8
lea ecx, [edi + 1]
mov dword [ebp - 0xb0], ecx
cmp ecx, 5
jg 0x4d5bc6
mov dword [ebp + ebx - 0x104], 0
mov dword [ebp + ebx - 0x124], edx
mov esi, dword [ebp + ebx - 0x128]
mov ecx, dword [ebp - 0x78]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x4d58e4
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.004dbb80
mov ecx, dword [ebp - 0x78]
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [ebp + ebx - 0x108], eax
cmp dword [ebp - 0xbc], 0
jne 0x4d5975
cmp esi, dword [ebp - 0x84]
jge 0x4d5973
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x4d5926
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004dbb80
add esp, 8
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4d5975
push 0x11888
call fcn.00500890
add esp, 4
mov dword [ebp - 0xa0], eax
jmp 0x4d65a4
push 0x6d638c
push 0x11870
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c0ad0
add esp, 0x14
mov dword [ebp - 0xa0], 0xb
jmp 0x4d65a4
xor eax, eax
add dword [ebp + ebx - 0x104], eax
mov esi, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xb0]
mov dword [ebp + ebx - 0x128], edi
mov edi, dword [ebp - 0xb8]
cmp dword [ebp + ebx - 0x108], esi
jg 0x4d5890
cmp dword [ebp + ebx - 0x128], edx
jge 0x4d5a63
mov edi, dword [ebp - 0x78]
nop dword [eax + eax]
mov esi, dword [ebp + ebx - 0x128]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4d59e9
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004dbb80
mov edx, dword [ebp - 0x84]
add esp, 8
movzx eax, ax
movzx ecx, ax
mov eax, dword [ebp + ebx - 0x108]
add ecx, 2
add eax, ecx
cmp eax, dword [ebp - 0xc0]
jg 0x4d5a57
inc esi
mov dword [ebp + ebx - 0x108], eax
cmp dword [ebp - 0xbc], 0
mov dword [ebp + ebx - 0x128], esi
jne 0x4d5a48
cmp esi, edx
jge 0x4d5a46
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4d5a3e
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004dbb80
mov edx, dword [ebp - 0x84]
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x4d5a48
xor ecx, ecx
sub dword [ebp + ebx - 0x104], ecx
cmp esi, edx
jl 0x4d59c0
mov edi, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xc0]
mov ecx, dword [ebp + ebx - 0x128]
cmp ecx, edx
jl 0x4d5a78
mov ecx, edi
mov dword [ebp - 0xb0], ecx
jmp 0x4d5a9c
cmp dword [ebp - 0xc8], 0
jle 0x4d5a8c
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + ebx]
jmp 0x4d5a8e
xor eax, eax
cmp ecx, eax
jle 0x4d5bf3
mov ecx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xc8]
inc edi
inc eax
mov dword [ebp - 0xb8], edi
add ebx, 4
mov dword [ebp - 0xc8], eax
cmp eax, ecx
jl 0x4d5880
lea eax, [ecx - 1]
mov ecx, eax
mov dword [ebp - 0xa4], eax
test ecx, ecx
jle 0x4d5c65
nop
shl ecx, 2
mov dword [ebp - 0xb8], ecx
mov eax, dword [ebp + ecx - 0x10c]
mov edi, dword [ebp + ecx - 0x108]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x128]
sub eax, 4
mov dword [ebp - 0xc4], eax
mov esi, dword [ecx + eax]
mov ecx, dword [ebp - 0x78]
dec esi
mov eax, esi
sub eax, dword [ebp - 0xbc]
inc eax
cmp word [ecx + eax*2], 0
lea ebx, [ecx + eax*2]
jne 0x4d5b29
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004dbb80
add esp, 8
mov ecx, dword [ebp - 0x78]
cmp word [ecx + esi*2], 0
jne 0x4d5b40
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.004dbb80
add esp, 8
mov edx, dword [ebp - 0xc8]
test edi, edi
je 0x4d5b8b
cmp dword [ebp + 0x18], 0
jne 0x4d5c20
mov ecx, dword [ebp - 0xb0]
mov eax, 2
dec ecx
cmp dword [ebp - 0xa4], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4d5c20
movzx eax, word [ebx]
mov ecx, 0xfffffffe
add eax, 2
sub ebx, 2
add edi, eax
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0xb8]
add edx, ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], edx
mov dword [eax + ecx], esi
sub esi, 1
jns 0x4d5b26
jmp 0x4d5c26
push 0x6d638c
push 0x118ed
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c0ad0
add esp, 0x14
mov dword [ebp - 0xa0], 0xb
jmp 0x4d65a4
push 0x6d638c
push 0x1190e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c0ad0
add esp, 0x14
mov dword [ebp - 0xa0], 0xb
jmp 0x4d65a4
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp + eax - 0x10c], edx
mov edx, dword [ebp - 0xc4]
mov dword [ebp + eax - 0x108], edi
cmp ecx, 1
jle 0x4d5c4b
mov eax, dword [eax + edx - 4]
jmp 0x4d5c4d
xor eax, eax
cmp dword [edx + ecx*4], eax
jle 0x4d5cf3
dec ecx
mov dword [ebp - 0xa4], ecx
test ecx, ecx
jg 0x4d5ad0
mov eax, dword [ebp - 0x18]
xor edi, edi
mov eax, dword [eax + 0x38]
movzx ebx, byte [eax]
lea eax, [edi + 1]
mov dword [ebp - 0xd0], ebx
cmp dword [ebp - 0xb0], edi
jle 0x4d5e47
nop word [eax + eax]
cmp edi, dword [ebp - 0xd8]
jge 0x4d5d82
mov eax, dword [ebp + edi*4 - 0x18]
mov dword [ebp + edi*4 - 0x2c], eax
mov dword [ebp + edi*4 - 0x18], 0
mov dword [ebp - 0xa4], eax
mov esi, dword [eax + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x4d5d36
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x4d5d36
cmp dword [ecx + 0x60], 0
je 0x4d5d32
push esi
call fcn.00538500
add esp, 4
test eax, eax
je 0x4d5d20
push esi
call fcn.00538600
add esp, 4
mov dword [ebp - 0xa0], eax
mov edx, eax
jmp 0x4d5d69
push 0x6d638c
push 0x11938
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c0ad0
add esp, 0x14
mov dword [ebp - 0xa0], 0xb
jmp 0x4d65a4
mov dword [ebp - 0xa0], 0
mov edx, dword [ebp - 0xa0]
jmp 0x4d5d69
xor edx, edx
jmp 0x4d5d63
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0xa0], edx
test edx, edx
jne 0x4d5d69
mov eax, dword [ecx + 0x94]
push esi
cmp eax, dword [ecx + 0x98]
jbe 0x4d5d59
call fcn.004ee050
jmp 0x4d5d5e
call fcn.004ef390
mov edx, eax
add esp, 4
mov dword [ebp - 0xa0], edx
inc dword [ebp - 0xa8]
mov dword [ebp - 0xac], edx
test edx, edx
jne 0x4d65a4
jmp 0x4d5e35
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0xd4]
push 0
cmovne ecx, eax
lea eax, [ebp - 0xdc]
push ecx
push eax
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xb4]
call fcn.004d2e10
mov edx, eax
add esp, 0x14
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0xac], edx
test edx, edx
jne 0x4d65a4
mov esi, dword [ebp - 0xa4]
push ebx
push esi
call fcn.0054c9d0
mov ecx, dword [ebp - 0xb4]
add esp, 8
inc dword [ebp - 0xa8]
mov eax, dword [ebp - 0x84]
mov dword [ebp + edi*4 - 0x2c], esi
cmp byte [ecx + 0x11], 0
mov dword [ebp + edi*4 - 0x140], eax
je 0x4d5e29
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xcc]
push dword [eax + 4]
push 5
push dword [esi + 4]
push ecx
call fcn.004f1570
mov eax, dword [ebp - 0xac]
add esp, 0x14
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x4d65a4
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xd4], eax
inc edi
mov eax, 1
cmp edi, dword [ebp - 0xb0]
jl 0x4d5c90
mov edi, dword [ebp - 0xa8]
xor ecx, ecx
test edi, edi
jle 0x4d5e94
mov eax, dword [ebp + ecx*4 - 0x2c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0x40], edx
mov dword [ebp + ecx*4 - 0x98], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0x114], ax
xor eax, eax
test ecx, ecx
jle 0x4d5e8f
nop word [eax + eax]
cmp dword [ebp + eax*4 - 0x40], edx
je 0x4d6024
inc eax
cmp eax, ecx
jl 0x4d5e80
inc ecx
cmp ecx, edi
jl 0x4d5e53
xor ebx, ebx
mov dword [ebp - 0xa4], ebx
test edi, edi
jle 0x4d5f5a
xor esi, esi
lea ecx, [esi + 1]
cmp edi, ecx
jle 0x4d5ee6
mov ebx, dword [ebp - 0xa8]
xor edi, edi
nop word [eax + eax]
lea edx, [ecx*4]
mov eax, dword [ebp + edx - 0x98]
cmp eax, dword [ebp + edi - 0x98]
jae 0x4d5edb
mov esi, ecx
mov edi, edx
inc ecx
cmp ecx, ebx
jl 0x4d5ec0
mov ebx, dword [ebp - 0xa4]
mov edi, dword [ebp + esi*4 - 0x98]
mov dword [ebp + esi*4 - 0x98], 0xffffffff
cmp esi, ebx
je 0x4d5f45
jle 0x4d5f21
mov eax, dword [ebp - 0xb4]
xor edx, edx
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp + esi*4 - 0x2c]
inc ecx
add ecx, esi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.00514fd0
add esp, 8
mov eax, dword [ebp + ebx*4 - 0x2c]
push edi
mov ecx, dword [eax + 0x48]
mov ax, word [ebp + esi*2 - 0x114]
push ecx
mov word [ecx + 0x1c], ax
call fcn.00514fd0
mov eax, dword [ebp + ebx*4 - 0x2c]
add esp, 8
mov dword [eax + 4], edi
mov edi, dword [ebp - 0xa8]
inc ebx
mov dword [ebp - 0xa4], ebx
cmp ebx, edi
jl 0x4d5ea4
test byte [ebp - 0xd0], 8
mov eax, dword [ebp + edi*4 - 0x30]
mov ecx, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x4d5f9d
mov ecx, dword [ebp - 0xd8]
cmp ecx, edi
je 0x4d5f9d
cmp edi, ecx
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x2c]
cmovle eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + edi*4 - 0x30]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xb4]
cmp byte [eax + 0x11], 0
je 0x4d6217
mov edi, dword [ebp - 0x2c]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xe0], 0
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [ebp - 0xc4], edx
cmp dword [ebp - 0x84], ebx
jle 0x4d621a
xor eax, eax
mov dword [ebp - 0xb8], eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0x7c]
mov ecx, dword [ecx + ebx*4]
mov dword [ebp - 0xa4], ecx
cmp ebx, edx
jne 0x4d607d
xor eax, eax
cmp dword [ebp - 0xbc], eax
sete al
mov dword [ebp - 0xd0], eax
inc esi
cmp esi, dword [ebp - 0xa8]
jge 0x4d6051
mov edi, dword [ebp + esi*4 - 0x2c]
jmp 0x4d6055
push 0x6d638c
push 0x11982
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c0ad0
add esp, 0x14
mov dword [ebp - 0xa0], 0xb
jmp 0x4d65a4
mov edi, dword [ebp + esi*4 - 0x18]
movzx eax, word [edi + 0x18]
add eax, dword [ebp - 0xd0]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
cmp ebx, edx
je 0x4d6015
mov ecx, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xc4], edx
cmp ebx, dword [ebp + eax - 0x128]
jne 0x4d60b5
mov eax, dword [ebp - 0xe0]
inc eax
mov dword [ebp - 0xe0], eax
shl eax, 2
cmp dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + eax - 0x2c]
mov dword [ebp - 0xd4], eax
je 0x4d61d6
jmp 0x4d60bb
mov eax, dword [ebp - 0xd4]
cmp esi, dword [ebp - 0xa8]
jge 0x4d60da
mov eax, dword [eax + 4]
cmp eax, dword [ebp + esi*4 - 0x40]
jne 0x4d60da
cmp ecx, dword [edi + 0x38]
jb 0x4d60da
cmp ecx, dword [edi + 0x3c]
jb 0x4d61d6
cmp word [ebp - 0xe8], 0
jne 0x4d6115
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0xd4]
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0xb4]
call fcn.004f1570
mov eax, dword [ebp - 0xac]
add esp, 0x14
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x78]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4d6134
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.004dbb80
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xd4]
cmp ax, word [ecx + 0x10]
jbe 0x4d61c2
cmp dword [ebp - 0xa0], 0
jne 0x4d65a4
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0xa4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [ebp - 0x8c]
add esp, 0xc
cmp eax, dword [ebp - 0x90]
jae 0x4d61d0
mov ecx, dword [edi + 0x3c]
mov edx, dword [ebp - 0xa4]
cmp ecx, edx
jb 0x4d6189
add eax, edx
cmp ecx, eax
jb 0x4d61ea
mov ecx, dword [ebp - 0xd4]
lea eax, [ebp - 0xac]
push eax
movzx eax, word [ebp - 0x8a]
push dword [ecx + 4]
mov eax, dword [eax + edx - 4]
push 3
bswap eax
push eax
push dword [ecx + 0x34]
call fcn.004f1570
mov edx, dword [ebp - 0xac]
add esp, 0x14
mov dword [ebp - 0xa0], edx
jmp 0x4d61c8
mov edx, dword [ebp - 0xa0]
test edx, edx
jne 0x4d65a4
mov edx, dword [ebp - 0xc4]
inc ebx
cmp ebx, dword [ebp - 0x84]
jge 0x4d6217
mov eax, dword [ebp - 0xb8]
jmp 0x4d5ff0
push 0x6d638c
push 0xffc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004c0ad0
add esp, 0x14
mov dword [ebp - 0xa0], 0xb
jmp 0x4d65a4
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0xa8]
xor ebx, ebx
dec eax
test eax, eax
jle 0x4d6382
nop dword [eax + eax]
mov eax, dword [ebp + ebx*4 - 0x128]
mov edx, dword [ebp - 0x7c]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [ebp + ebx*4 - 0x2c]
mov edi, dword [ebp - 0xec]
add edi, dword [ebp - 0xf0]
mov dword [ebp - 0xd0], edx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp - 0xe8]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [ebp - 0xdc]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x4d6287
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4d632b
cmp dword [ebp - 0xbc], 0
je 0x4d6310
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0xd0]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [ebp - 0x40]
mov esi, edi
mov ecx, dword [ebp - 0x44]
add esp, 0xc
add edi, 4
test edx, edx
ja 0x4d62fe
jb 0x4d62c0
cmp ecx, 0x7f
ja 0x4d62d1
mov eax, 1
and cl, 0x7f
mov byte [edi], cl
xor edi, edi
lea edx, [eax + 4]
jmp 0x4d632b
test edx, edx
ja 0x4d62fe
jb 0x4d62df
cmp ecx, 0x3fff
ja 0x4d62fe
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [edi + 1], cl
or al, 0x80
shr edx, 7
mov byte [edi], al
mov eax, 2
xor edi, edi
lea edx, [eax + 4]
jmp 0x4d632b
push edx
push ecx
push edi
call fcn.004f1d20
add esp, 0xc
xor edi, edi
lea edx, [eax + 4]
jmp 0x4d632b
sub esi, 4
cmp eax, 4
jne 0x4d6331
mov eax, dword [ebp - 0xcc]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [ebp - 0xdc]
add dword [ebp - 0xf0], edx
lea eax, [ebp - 0xac]
push eax
push dword [ecx + 4]
mov eax, dword [ebp - 0xe4]
push edi
push edx
push esi
add eax, ebx
push eax
push dword [ebp - 0xcc]
call fcn.004e7c20
mov edi, dword [ebp - 0xac]
add esp, 0x1c
mov dword [ebp - 0xa0], edi
test edi, edi
jne 0x4d65a4
mov eax, dword [ebp - 0xa8]
inc ebx
dec eax
cmp ebx, eax
jl 0x4d6230
mov edi, dword [ebp - 0x2c]
mov esi, 1
sub esi, dword [ebp - 0xa8]
mov dword [ebp - 0xe0], esi
cmp esi, dword [ebp - 0xa8]
jge 0x4d6480
nop
mov eax, esi
lea ebx, [ebp - 0xc]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x4d646a
test esi, esi
jns 0x4d63cf
mov eax, dword [ebp + ecx*4 - 0x144]
cmp eax, dword [ebp + ecx*4 - 0x12c]
jl 0x4d646a
test ecx, ecx
jne 0x4d63df
mov esi, dword [ebp - 0x128]
xor eax, eax
xor edx, edx
jmp 0x4d641c
cmp ecx, dword [ebp - 0xd8]
jge 0x4d63fb
xor eax, eax
cmp dword [ebp - 0xbc], eax
sete al
add eax, dword [ebp + ecx*4 - 0x144]
jmp 0x4d6401
mov eax, dword [ebp - 0x84]
mov esi, dword [ebp + ecx*4 - 0x128]
xor edx, edx
cmp dword [ebp - 0xbc], edx
sete dl
add edx, dword [ebp + ecx*4 - 0x12c]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [ebp - 0x84]
push ecx
push esi
push edx
push eax
push dword [ebp + edi - 0x2c]
call fcn.004df1a0
add esp, 0x14
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x4d65a4
mov eax, dword [ebp + edi - 0x2c]
mov ecx, dword [ebp - 0xc0]
sub ecx, dword [ebp + edi - 0x108]
mov esi, dword [ebp - 0xe0]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
inc esi
mov dword [ebp - 0xe0], esi
cmp esi, dword [ebp - 0xa8]
jl 0x4d63a0
mov edi, dword [ebp - 0x2c]
cmp dword [ebp + 0x14], 0
je 0x4d64f4
mov ebx, dword [ebp - 0xcc]
cmp word [ebx + 0x18], 0
jne 0x4d64f4
movzx eax, byte [ebx + 9]
cmp eax, dword [edi + 0x14]
jg 0x4d64f4
push 0xffffffffffffffff
push edi
call fcn.004ddff0
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
push ebx
push dword [ebp - 0x2c]
call fcn.004dd420
mov edx, dword [ebp - 0xac]
add esp, 0x14
mov dword [ebp - 0xa0], edx
test edx, edx
jne 0x4d6569
mov eax, dword [ebp - 0x2c]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004e4900
mov edx, eax
add esp, 0xc
mov dword [ebp - 0xa0], edx
jmp 0x4d6569
mov ecx, dword [ebp - 0xb4]
cmp byte [ecx + 0x11], 0
je 0x4d6563
cmp word [ebp - 0xe8], 0
mov edi, dword [ebp - 0xa8]
jne 0x4d655b
xor esi, esi
test edi, edi
jle 0x4d655b
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x2c]
lea edx, [ebp - 0xac]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov eax, dword [eax + 8]
bswap eax
push eax
push ecx
call fcn.004f1570
mov ecx, dword [ebp - 0xb4]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4d6520
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xa0], edx
jmp 0x4d656f
mov edx, dword [ebp - 0xa0]
jmp 0x4d656f
mov edx, dword [ebp - 0xa0]
mov edi, dword [ebp - 0xa8]
mov ebx, dword [ebp - 0xd8]
mov esi, edi
cmp edi, ebx
jge 0x4d65a4
nop dword [eax + eax]
mov eax, dword [ebp + esi*4 - 0x18]
test edx, edx
jne 0x4d6599
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004e4900
add esp, 0xc
mov edx, eax
inc esi
cmp esi, ebx
jl 0x4d6580
mov dword [ebp - 0xa0], edx
mov ebx, dword [ebp - 0x7c]
test ebx, ebx
je 0x4d661f
cmp dword [0x768370], 0
je 0x4d65fd
mov eax, dword [0x784a60]
test eax, eax
je 0x4d65cb
push eax
call dword [0x7683c0]
add esp, 4
push ebx
call dword [0x76839c]
sub dword [0x784af0], eax
dec dword [0x784b14]
push ebx
call dword [0x768394]
mov eax, dword [0x784a60]
add esp, 8
test eax, eax
je 0x4d661f
push eax
call dword [0x7683c8]
add esp, 4
jmp 0x4d661f
push ebx
call dword [0x768394]
add esp, 4
jmp 0x4d661f
lea eax, [esi*4 + 4]
push eax
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.0060e250
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0xd8], ebx
jle 0x4d6692
nop dword [eax]
mov edx, dword [ebp + ebx*4 - 0x18]
test edx, edx
je 0x4d6689
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4d6680
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0060c370
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4d6689
push edx
call fcn.005150d0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xd8]
jl 0x4d6630
xor ebx, ebx
cmp dword [ebp - 0xa8], ebx
jle 0x4d6702
mov edx, dword [ebp + ebx*4 - 0x2c]
test edx, edx
je 0x4d66f9
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4d66f0
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0060c370
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4d66f9
push edx
call fcn.005150d0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xa8]
jl 0x4d66a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa0]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0060bd4a
mov esp, ebp
pop ebp
ret