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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ecx + 0x34]
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x100], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], al
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xe4], esi
cmp edx, eax
jne 0x4ebc7c
pop esi
mov eax, 7
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
movzx edx, word [ecx + 0x18]
movzx esi, byte [ecx + 0xc]
push edi
lea edi, [esi + edx]
cmp edi, 2
jl 0x4ebca9
cmp ebx, eax
je 0x4ebca1
cmp ebx, edi
jne 0x4ebc9e
mov eax, dword [ebp + 0x10]
lea eax, [edi + eax - 2]
jmp 0x4ebca1
lea eax, [ebx - 1]
mov edi, 2
sub edi, dword [ebp + 0x10]
mov dword [ebp - 0x104], eax
sub eax, esi
add eax, edi
lea ebx, [edi + 1]
mov dword [ebp - 0xf4], ebx
cmp eax, edx
jne 0x4ebccd
movzx edx, byte [ecx + 9]
mov eax, dword [ecx + 0x38]
lea eax, [edx + eax + 8]
jmp 0x4ebce4
mov edx, dword [ecx + 0x40]
mov ax, word [edx + eax*2]
mov dh, al
mov dl, ah
movzx eax, dx
movzx edx, word [ecx + 0x1a]
and eax, edx
add eax, dword [ecx + 0x38]
mov ebx, dword [eax]
bswap ebx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xe0], ebx
mov eax, dword [ebp - 0xe4]
cmp ebx, dword [eax + 0x30]
jbe 0x4ebd24
push 0x56e494
push 0x103c6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
add esp, 0x14
mov esi, 0xb
jmp 0x4ebd9d
push 0
lea edx, [ebp - 0xd8]
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 0x4ebd9d
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [ebp + edi*4 - 0x114], eax
jne 0x4ebd9b
cmp ebx, dword [eax + 4]
je 0x4ebd81
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 [ebp - 0xe4]
and dl, 0x64
mov dword [eax + 0x34], ecx
mov dword [eax + 4], ebx
mov byte [eax + 9], dl
mov ebx, eax
call fcn.004e8db0
mov esi, eax
test esi, esi
je 0x4ebd9b
test ebx, ebx
je 0x4ebd9d
mov eax, ebx
call fcn.004b34b0
jmp 0x4ebd9d
xor esi, esi
mov dword [ebp - 0xd0], esi
test esi, esi
jne 0x4ebef3
mov eax, dword [ebp + edi*4 - 0x114]
cmp dword [eax + 0x14], esi
jge 0x4ebdce
push eax
call fcn.004e8b80
add esp, 4
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x4ebf11
mov eax, edi
dec edi
test eax, eax
je 0x4ebf2f
mov ecx, dword [ebp - 0xe8]
mov al, byte [ecx + 0xc]
test al, al
je 0x4ebe27
movzx ecx, word [ecx + 0x1c]
mov edx, dword [ebp - 0x104]
add edx, edi
cmp edx, ecx
jne 0x4ebe27
mov esi, dword [ebp - 0xe8]
mov eax, dword [esi + 0x24]
mov ebx, dword [eax]
push eax
mov dword [ebp + edi*4 - 0x10], eax
mov eax, dword [esi + 0x4c]
bswap ebx
push esi
mov dword [ebp - 0xe0], ebx
call eax
movzx ecx, ax
add esp, 8
mov dword [ebp + edi*4 - 0x2c], ecx
mov byte [esi + 0xc], 0
jmp 0x4ebcf4
mov ecx, dword [ebp - 0xe8]
movzx edx, al
mov eax, dword [ebp - 0x104]
sub eax, edx
mov edx, dword [ecx + 0x40]
add eax, edi
mov ax, word [edx + eax*2]
mov dh, al
mov dl, ah
movzx eax, dx
movzx edx, word [ecx + 0x1a]
and eax, edx
add eax, dword [ecx + 0x38]
mov ebx, dword [eax]
push eax
mov dword [ebp + edi*4 - 0x10], eax
mov eax, dword [ecx + 0x4c]
bswap ebx
push ecx
mov dword [ebp - 0xe0], ebx
call eax
mov ecx, dword [ebp - 0xe4]
movzx esi, ax
add esp, 8
test byte [ecx + 0x18], 0xc
mov dword [ebp + edi*4 - 0x2c], esi
je 0x4ebec9
mov edx, dword [ebp - 0xe8]
mov eax, dword [ebp + edi*4 - 0x10]
sub eax, dword [edx + 0x38]
mov edx, dword [ebp - 0xe4]
lea ecx, [esi + eax]
cmp ecx, dword [edx + 0x28]
jg 0x4ed041
mov ecx, dword [ebp + edi*4 - 0x10]
push esi
push ecx
mov ecx, dword [ebp - 0x118]
add ecx, eax
push ecx
call fcn.00480500
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 0xe8]
sub edx, dword [eax + 0x38]
add esp, 0xc
add edx, dword [ebp + edi*4 - 0x10]
mov dword [ebp + edi*4 - 0x10], edx
mov eax, dword [ebp - 0x104]
lea ecx, [ebp - 0xd0]
push ecx
push esi
mov esi, dword [ebp - 0xe8]
movzx edx, byte [esi + 0xc]
sub eax, edx
add eax, edi
push eax
call fcn.004ead00
add esp, 0xc
jmp 0x4ebcf4
lea ecx, [edi*4 + 4]
push ecx
lea edx, [ebp - 0x114]
push 0
push edx
call fcn.00480280
add esp, 0xc
jmp 0x4ed08b
lea eax, [edi*4]
push eax
lea ecx, [ebp - 0x114]
push 0
push ecx
call fcn.00480280
add esp, 0xc
jmp 0x4ed08b
mov edx, dword [ebp - 0xe4]
mov ecx, dword [edx + 0x24]
mov edi, dword [ebp - 0xf4]
lea edx, [ecx - 8]
mov eax, 0xaaaaaaab
mul edx
mov esi, edx
shr esi, 2
add esi, 4
imul esi, edi
add esi, 3
and esi, 0xfffffffc
lea eax, [esi + esi*2]
lea eax, [ecx + eax*2]
cdq
push edx
push eax
call fcn.004bc5c0
add esp, 8
mov dword [ebp - 0xbc], eax
test eax, eax
jne 0x4ebf83
mov dword [ebp - 0xd0], 7
jmp 0x4ed08b
lea eax, [eax + esi*4]
lea ecx, [eax + esi*2]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x114]
movzx edx, byte [eax + 8]
add dx, dx
add dx, dx
mov dword [ebp - 0xdc], ecx
movzx ecx, dx
movzx edx, byte [eax + 3]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xcc], 0
test edi, edi
jle 0x4ec231
mov eax, dword [ebp - 0xcc]
mov edi, dword [ebp + eax*4 - 0x114]
movzx ecx, word [edi + 0x1a]
mov ebx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov edx, dword [ebp - 0x114]
lea eax, [ebp + eax*4 - 0x114]
movzx eax, word [edi + 0x18]
mov dword [ebp - 0xc8], eax
mov eax, dword [edx + 0x38]
mov dword [ebp - 0xd4], ecx
mov cl, byte [ebx]
add esi, ebx
cmp cl, byte [eax]
jne 0x4ec43f
movzx edx, byte [edi + 0xc]
add edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc4]
add edx, edx
push edx
lea edx, [eax + ecx*2]
push 0
push edx
call fcn.00480280
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4ec0ed
movzx eax, word [edi + 0x1c]
cmp dword [ebp - 0xc8], eax
jl 0x4ec4cb
test eax, eax
jle 0x4ec098
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc4]
mov cx, word [esi]
mov dh, cl
add esi, 2
inc eax
mov dl, ch
movzx ecx, word [ebp - 0xd4]
movzx edx, dx
and edx, ecx
mov ecx, dword [ebp - 0xbc]
add edx, ebx
dec dword [ebp - 0xc8]
mov dword [ecx + eax*4 - 4], edx
jne 0x4ec065
mov dword [ebp - 0xc4], eax
jmp 0x4ec0a4
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc4]
cmp byte [edi + 0xc], 0
mov dword [ebp - 0xf0], 0
jbe 0x4ec0f3
lea edx, [edi + 0x24]
mov dword [ebp - 0xc8], edx
lea ecx, [ecx]
mov edx, dword [ebp - 0xc8]
mov edx, dword [edx]
inc dword [ebp - 0xf0]
add dword [ebp - 0xc8], 4
mov dword [ecx + eax*4], edx
movzx edx, byte [edi + 0xc]
inc eax
cmp dword [ebp - 0xf0], edx
jl 0x4ec0c0
mov dword [ebp - 0xc4], eax
jmp 0x4ec0f3
mov eax, dword [ebp - 0xc4]
movzx edx, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add edx, ebx
lea ecx, [edx + ecx*2]
mov dword [ebp - 0xc8], ecx
cmp esi, ecx
jae 0x4ec145
movzx ecx, word [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov dx, word [esi]
mov ch, dl
add esi, 2
inc eax
mov cl, dh
movzx edx, cx
and edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xbc]
add edx, ebx
mov dword [ecx + eax*4 - 4], edx
cmp esi, dword [ebp - 0xc8]
jb 0x4ec117
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xcc]
dec edx
mov dword [ebp + ecx*4 - 0x6c], eax
cmp ecx, edx
jge 0x4ec218
cmp dword [ebp - 0xfc], 0
jne 0x4ec218
mov edx, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xb8]
mov esi, dword [ebp - 0xc4]
mov eax, ecx
movzx eax, word [ebp + eax*4 - 0x2c]
mov ecx, dword [ebp - 0x100]
add edx, ecx
add ecx, eax
push eax
mov word [ebx + esi*2], ax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x100], ecx
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
push edx
mov dword [ebp - 0xd8], edx
call fcn.00480500
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0xbc]
movzx edx, ax
add edx, dword [ebp - 0xd8]
add esp, 0xc
mov dword [ecx + esi*4], edx
sub word [ebx + esi*2], ax
cmp byte [edi + 8], 0
jne 0x4ec1e2
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + esi*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x4ec20b
cmp word [ebx + esi*2], 4
jae 0x4ec20b
mov eax, dword [ebp - 0x100]
mov ecx, dword [ebp - 0xdc]
mov byte [ecx + eax], 0
inc word [ebx + esi*2]
inc eax
cmp word [ebx + esi*2], 4
jb 0x4ec1f5
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0xcc]
inc esi
mov dword [ebp - 0xc4], esi
inc ecx
mov dword [ebp - 0xcc], ecx
cmp ecx, dword [ebp - 0xf4]
jl 0x4ebfd0
mov edi, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0xe4]
movzx eax, word [ebp - 0x108]
mov edx, dword [ecx + 0x28]
xor ecx, ecx
lea eax, [edx + eax - 0xc]
xor ebx, ebx
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xcc], ecx
test edi, edi
jle 0x4ec333
lea ecx, [ecx]
mov esi, dword [ebp + ecx*4 - 0x114]
mov edx, dword [esi + 0x3c]
mov eax, dword [ebp + ecx*4 - 0x6c]
mov dword [ebp + ebx*4 - 0xb4], edx
mov dword [ebp + ebx*4 - 0x9c], eax
test ebx, ebx
je 0x4ec28a
cmp eax, dword [ebp + ebx*4 - 0xa0]
jne 0x4ec28a
dec ebx
cmp dword [ebp - 0xfc], 0
jne 0x4ec2ac
mov edx, dword [ebp - 0xe8]
mov edx, dword [edx + 0x3c]
inc ebx
inc eax
mov dword [ebp + ebx*4 - 0xb4], edx
mov dword [ebp + ebx*4 - 0x9c], eax
mov eax, dword [ebp - 0x100]
sub eax, dword [esi + 0x14]
cmp byte [esi + 0xc], 0
mov dword [ebp + ecx*4 - 0x2c], eax
mov dword [ebp - 0xd4], 0
jbe 0x4ec31b
mov edi, eax
lea eax, [esi + 0x24]
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx]
mov eax, dword [esi + 0x4c]
push edx
push esi
call eax
movzx edx, byte [esi + 0xc]
add dword [ebp - 0xc8], 4
movzx ecx, ax
mov eax, dword [ebp - 0xd4]
inc eax
add esp, 8
lea edi, [edi + ecx + 2]
mov dword [ebp - 0xd4], eax
cmp eax, edx
jl 0x4ec2d4
mov eax, dword [ebp - 0xcc]
mov dword [ebp + eax*4 - 0x2c], edi
mov edi, dword [ebp - 0xf4]
mov ecx, eax
mov eax, dword [ebp + ecx*4 - 0x6c]
mov dword [ebp + ecx*4 - 0x40], eax
inc ecx
inc ebx
mov dword [ebp - 0xcc], ecx
cmp ecx, edi
jl 0x4ec260
xor ebx, ebx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xcc], ebx
cmp edi, ebx
jle 0x4ec5f6
lea eax, [ebp - 0x40]
sub eax, 4
mov dword [ebp - 0xd4], 1
mov dword [ebp - 0xdc], ebx
mov dword [ebp - 0xc8], eax
jmp 0x4ec370
mov ecx, dword [ebp - 0x100]
cmp dword [ebp + ebx - 0x2c], ecx
jle 0x4ec500
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xf0]
jl 0x4ec3b0
inc eax
mov dword [ebp - 0xf0], eax
cmp eax, 5
jg 0x4ec743
mov edx, dword [ebp - 0xc4]
mov dword [ebp + ebx - 0x28], 0
mov dword [ebp + ebx - 0x3c], edx
mov ecx, dword [ebp - 0xdc]
mov ebx, dword [ebp + ecx - 0x40]
mov edx, dword [ebp - 0xb8]
lea eax, [ebx - 1]
mov dword [ebp - 0xd8], eax
movzx eax, word [edx + eax*2]
test ax, ax
jne 0x4ec3ec
mov edi, dword [ebp - 0xd8]
lea esi, [ebp - 0xc4]
call fcn.004b3820
mov ecx, dword [ebp - 0xdc]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [ebp + ecx - 0x2c], eax
cmp dword [ebp - 0xfc], 0
jne 0x4ec4dc
cmp ebx, dword [ebp - 0xc4]
jge 0x4ec4da
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4ec434
mov edi, ebx
lea esi, [ebp - 0xc4]
call fcn.004b3820
mov ecx, dword [ebp - 0xdc]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4ec4dc
push 0x56e494
push 0x11962
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
mov dword [ebp - 0xd0], 0xb
add esp, 0x14
mov esi, dword [ebp - 0xbc]
test esi, esi
je 0x4ed08b
cmp dword [0x58e7a0], 0
je 0x4ed081
mov eax, dword [0x5963f8]
test eax, eax
je 0x4ec495
push eax
call dword [0x58e7f0]
add esp, 4
push esi
call dword [0x58e7cc]
sub dword [0x596398], eax
dec dword [0x5963bc]
push esi
call dword [0x58e7c4]
mov eax, dword [0x5963f8]
add esp, 8
test eax, eax
je 0x4ed08b
push eax
call dword [0x58e7f8]
jmp 0x4ed088
push 0x56e494
push 0x1197a
jmp 0x4ec449
xor eax, eax
add dword [ebp + ecx - 0x28], eax
mov eax, dword [ebp - 0x100]
mov edx, dword [ebp - 0xd8]
mov ebx, dword [ebp - 0xdc]
mov dword [ebp + ecx - 0x40], edx
cmp dword [ebp + ecx - 0x2c], eax
jg 0x4ec380
mov edx, dword [ebp - 0xc4]
cmp dword [ebp + ebx - 0x40], edx
jge 0x4ec59a
mov edi, dword [ebp + ebx - 0x40]
mov ecx, dword [ebp - 0xb8]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x4ec537
lea esi, [ebp - 0xc4]
call fcn.004b3820
mov edx, dword [ebp - 0xc4]
movzx eax, ax
mov ecx, dword [ebp + ebx - 0x2c]
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [ebp - 0x100]
jg 0x4ec59a
inc edi
cmp dword [ebp - 0xfc], 0
mov dword [ebp + ebx - 0x2c], ecx
mov dword [ebp + ebx - 0x40], edi
jne 0x4ec58e
cmp edi, edx
jge 0x4ec58c
mov eax, dword [ebp - 0xb8]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4ec584
lea esi, [ebp - 0xc4]
call fcn.004b3820
mov edx, dword [ebp - 0xc4]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4ec58e
xor eax, eax
sub dword [ebp + ebx - 0x28], eax
cmp edi, edx
jl 0x4ec510
mov ecx, dword [ebp + ebx - 0x40]
cmp ecx, edx
jl 0x4ec5b0
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], ecx
jmp 0x4ec5ce
cmp dword [ebp - 0xcc], 0
jle 0x4ec5c4
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + ebx]
jmp 0x4ec5c6
xor eax, eax
cmp ecx, eax
jle 0x4ec752
mov eax, dword [ebp - 0xcc]
inc dword [ebp - 0xd4]
inc eax
add ebx, 4
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xdc], ebx
cmp eax, dword [ebp - 0xf0]
jl 0x4ec370
mov eax, dword [ebp - 0xf0]
dec eax
mov dword [ebp - 0xcc], eax
test eax, eax
jle 0x4ec781
jmp 0x4ec610
mov edx, dword [ebp + eax*4 - 0x30]
mov ecx, dword [ebp + eax*4 - 0x2c]
mov dword [ebp - 0xd4], edx
lea edx, [ebp - 0x40]
mov ebx, dword [edx + eax*4 - 4]
sub edx, 4
dec ebx
mov edi, ebx
sub edi, dword [ebp - 0xfc]
mov dword [ebp - 0xc8], edx
mov edx, dword [ebp - 0xb8]
inc edi
cmp word [edx + edi*2], 0
lea edx, [edx + edi*2]
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], edx
jne 0x4ec671
lea esi, [ebp - 0xc4]
call fcn.004b3820
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd8], edx
jmp 0x4ec680
mov esi, dword [ebp - 0xb8]
cmp word [esi + ebx*2], 0
jne 0x4ec6ac
mov edi, ebx
lea esi, [ebp - 0xc4]
call fcn.004b3820
mov edx, dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xcc]
test ecx, ecx
je 0x4ec6e7
cmp dword [ebp + 0x10], 0
jne 0x4ec724
mov esi, dword [ebp - 0xf0]
dec esi
mov edi, eax
sub edi, esi
mov esi, dword [ebp - 0xd4]
neg edi
sbb edi, edi
and edi, 2
sub esi, edi
mov edi, dword [ebp - 0xb8]
movzx edi, word [edi + ebx*2]
sub esi, edi
movzx edi, word [edx]
lea edi, [edi + ecx + 2]
cmp edi, esi
jg 0x4ec724
movzx esi, word [edx]
lea ecx, [ecx + esi + 2]
mov esi, dword [ebp - 0xb8]
movzx esi, word [esi + ebx*2]
mov edi, 0xfffffffe
sub edi, esi
mov esi, dword [ebp - 0xc8]
add dword [ebp - 0xd4], edi
sub edx, 2
mov dword [esi + eax*4], ebx
dec ebx
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0xd8], edx
jns 0x4ec680
mov dword [ebp + eax*4 - 0x2c], ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp + eax*4 - 0x30], ecx
cmp eax, 1
jle 0x4ec761
mov edx, dword [ebp - 0xc8]
mov ecx, dword [edx + eax*4 - 4]
jmp 0x4ec763
push 0x56e494
push 0x119df
jmp 0x4ec449
push 0x56e494
push 0x11a00
jmp 0x4ec449
xor ecx, ecx
mov edx, dword [ebp - 0xc8]
cmp dword [edx + eax*4], ecx
jle 0x4ec81c
dec eax
mov dword [ebp - 0xcc], eax
test eax, eax
jg 0x4ec610
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + 0x38]
movzx edx, byte [ecx]
xor edi, edi
mov dword [ebp - 0xc8], edx
cmp dword [ebp - 0xf0], edi
jle 0x4ec937
mov ebx, dword [ebp - 0xf0]
jmp 0x4ec7b0
cmp edi, dword [ebp - 0xf4]
jge 0x4ec88b
mov eax, dword [ebp + edi*4 - 0x114]
mov esi, dword [eax + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
mov dword [ebp + edi*4 - 0x130], eax
mov dword [ebp - 0xd8], eax
mov dword [ebp + edi*4 - 0x114], 0
je 0x4ec840
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x4ec840
cmp dword [ecx + 0x60], 0
je 0x4ec82b
mov ecx, esi
call fcn.004b1730
test eax, eax
je 0x4ec82b
push esi
call fcn.004c50f0
inc dword [ebp - 0xec]
add esp, 4
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x4ec928
push 0x56e494
push 0x11a2a
jmp 0x4ec449
inc dword [ebp - 0xec]
xor eax, eax
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x4ec928
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x4ec878
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jbe 0x4ec871
push esi
call fcn.004c5340
inc dword [ebp - 0xec]
add esp, 4
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x4ec928
mov eax, esi
call fcn.004c52a0
inc dword [ebp - 0xec]
mov dword [ebp - 0xd0], eax
test eax, eax
jmp 0x4ec928
cmp dword [ebp + 0x10], 0
mov eax, 1
jne 0x4ec89c
mov eax, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xe4]
push 0
push eax
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xd8]
push ecx
push edx
call fcn.004e9fa0
add esp, 0x14
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x4ec467
mov eax, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xd8]
push eax
call fcn.004e8eb0
mov eax, dword [ebp - 0xe4]
inc dword [ebp - 0xec]
mov ecx, dword [ebp - 0xc4]
add esp, 4
cmp byte [eax + 0x11], 0
mov dword [ebp + edi*4 - 0x130], esi
mov dword [ebp + edi*4 - 0x6c], ecx
je 0x4ec92e
mov ecx, dword [ebp - 0xe8]
lea edx, [ebp - 0xd0]
push edx
mov edx, dword [ecx + 4]
push edx
push 5
push eax
mov eax, dword [esi + 4]
call fcn.004e7e70
add esp, 0x10
cmp dword [ebp - 0xd0], 0
jne 0x4ec467
inc edi
cmp edi, ebx
jl 0x4ec7b0
mov esi, dword [ebp - 0xec]
xor eax, eax
test esi, esi
jle 0x4ec984
mov ecx, dword [ebp + eax*4 - 0x130]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x1c]
mov word [ebp + eax*2 - 0x10], cx
xor ecx, ecx
mov dword [ebp + eax*4 - 0x80], edx
mov dword [ebp + eax*4 - 0x54], edx
test eax, eax
jle 0x4ec97f
jmp 0x4ec970
cmp dword [ebp + ecx*4 - 0x80], edx
je 0x4ecb28
inc ecx
cmp ecx, eax
jl 0x4ec970
inc eax
cmp eax, esi
jl 0x4ec943
xor ecx, ecx
mov dword [ebp - 0xcc], ecx
test esi, esi
jle 0x4eca4d
xor ebx, ebx
lea eax, [ebx + 1]
cmp esi, eax
jle 0x4ec9c0
xor edx, edx
nop
lea ecx, [eax*4]
mov edi, dword [ebp + ecx - 0x54]
cmp edi, dword [ebp + edx - 0x54]
jae 0x4ec9b5
mov ebx, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x4ec9a0
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp + ebx*4 - 0x54]
mov dword [ebp - 0xe0], edx
mov dword [ebp + ebx*4 - 0x54], 0xffffffff
cmp ebx, ecx
je 0x4eca3e
jle 0x4ec9fa
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp + ebx*4 - 0x130]
mov esi, dword [edx + 0x48]
xor eax, eax
lea edi, [ecx + ebx + 1]
mov word [esi + 0x1c], ax
call fcn.004b0920
mov ecx, dword [ebp - 0xcc]
mov eax, dword [ebp + ecx*4 - 0x130]
mov eax, dword [eax + 0x48]
mov dx, word [ebp + ebx*2 - 0x10]
mov edi, dword [ebp - 0xe0]
mov esi, eax
mov word [eax + 0x1c], dx
call fcn.004b0920
mov eax, dword [ebp - 0xcc]
mov eax, dword [ebp + eax*4 - 0x130]
mov esi, dword [ebp - 0xec]
mov ecx, edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xcc]
inc ecx
mov dword [ebp - 0xcc], ecx
cmp ecx, esi
jl 0x4ec994
test byte [ebp - 0xc8], 8
mov eax, dword [ebp + esi*4 - 0x134]
mov edx, dword [eax + 4]
mov ecx, dword [ebp - 0xf8]
bswap edx
mov dword [ecx], edx
jne 0x4eca92
mov ecx, dword [ebp - 0xf4]
cmp esi, ecx
je 0x4eca92
lea edx, [ebp - 0x130]
jg 0x4eca82
lea edx, [ebp - 0x114]
mov edx, dword [edx + ecx*4 - 4]
mov ecx, dword [edx + 0x38]
mov edx, dword [eax + 0x38]
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0xe4]
cmp byte [ecx + 0x11], 0
mov eax, dword [ebp - 0x130]
je 0x4ecccd
movzx edx, word [eax + 0x18]
mov esi, eax
mov ebx, eax
movzx eax, byte [eax + 0xc]
xor ecx, ecx
add edx, eax
xor edi, edi
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0xe0], ecx
cmp dword [ebp - 0xc4], ecx
jle 0x4ecccd
mov dword [ebp - 0xd8], ecx
jmp 0x4ecaf0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc8], eax
cmp edi, edx
jne 0x4ecb68
xor eax, eax
cmp dword [ebp - 0xfc], eax
sete al
mov edi, edi
inc ecx
mov dword [ebp - 0xe0], ecx
cmp ecx, dword [ebp - 0xec]
jge 0x4ecb37
mov ebx, dword [ebp + ecx*4 - 0x130]
jmp 0x4ecb3e
push 0x56e494
push 0x11a74
jmp 0x4ec449
mov ebx, dword [ebp + ecx*4 - 0x114]
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
add ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0xd4]
add ecx, edx
mov dword [ebp - 0xd4], ecx
cmp edi, ecx
mov ecx, dword [ebp - 0xe0]
je 0x4ecb10
mov eax, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xd8]
cmp edi, dword [ebp + edx - 0x40]
jne 0x4ecba5
mov edx, dword [ebp - 0xf8]
inc edx
mov dword [ebp - 0xf8], edx
add edx, edx
add edx, edx
cmp dword [ebp - 0xfc], 0
mov esi, dword [ebp + edx - 0x130]
mov dword [ebp - 0xd8], edx
mov dword [ebp - 0xdc], esi
je 0x4eccaa
cmp ecx, dword [ebp - 0xec]
jge 0x4ecbc4
mov edx, dword [esi + 4]
cmp edx, dword [ebp + ecx*4 - 0x80]
jne 0x4ecbc4
cmp eax, dword [ebx + 0x38]
jb 0x4ecbc4
cmp eax, dword [ebx + 0x3c]
jb 0x4eccaa
cmp word [ebp - 0x108], 0
jne 0x4ecbfa
mov ecx, dword [esi + 4]
mov edx, dword [ebp - 0xc8]
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [edx]
push ecx
mov ecx, dword [ebp - 0xe4]
push 5
bswap eax
push ecx
call fcn.004e7e70
mov ecx, dword [ebp - 0xe0]
add esp, 0x10
mov edx, dword [ebp - 0xb8]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4ecc23
lea esi, [ebp - 0xc4]
call fcn.004b3820
mov esi, dword [ebp - 0xdc]
mov ecx, dword [ebp - 0xe0]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x4ecc95
cmp dword [ebp - 0xd0], 0
jne 0x4ec467
mov ecx, dword [ebp - 0xc8]
mov edx, dword [esi + 0x50]
lea eax, [ebp - 0x58]
push eax
push ecx
push esi
call edx
movzx ecx, word [ebp - 0x48]
add esp, 0xc
cmp ecx, dword [ebp - 0x4c]
jae 0x4ecca4
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebp - 0xc8]
cmp eax, edx
jb 0x4ecc66
add ecx, edx
cmp eax, ecx
jb 0x4eccbe
mov ecx, dword [esi + 4]
movzx edx, word [ebp - 0x46]
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [edx + eax - 4]
push ecx
mov ecx, dword [esi + 0x34]
push 3
bswap eax
push ecx
call fcn.004e7e70
mov ecx, dword [ebp - 0xe0]
add esp, 0x10
cmp dword [ebp - 0xd0], 0
jne 0x4ec467
jmp 0x4eccaa
mov ecx, dword [ebp - 0xe0]
inc edi
cmp edi, dword [ebp - 0xc4]
jge 0x4ecccd
mov edx, dword [ebp - 0xd4]
jmp 0x4ecaf0
push 0x56e494
push 0x100ae
jmp 0x4ec449
mov eax, dword [ebp - 0xec]
dec eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xf8], eax
test eax, eax
jle 0x4ece65
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp + eax*4 - 0x40]
mov edi, dword [ebp + eax*4 - 0x130]
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + ecx*4]
mov edx, dword [ebp - 0xb8]
movzx edx, word [edx + ecx*2]
mov esi, dword [ebp - 0x118]
add esi, dword [ebp - 0x11c]
mov dword [ebp - 0xc8], eax
movzx eax, word [ebp - 0x108]
add eax, edx
cmp byte [edi + 8], 0
jne 0x4ecd44
mov ebx, dword [ebp - 0xc8]
mov ecx, dword [edi + 0x38]
mov edx, dword [ebx]
mov dword [ecx + 8], edx
jmp 0x4ece0f
cmp dword [ebp - 0xfc], 0
je 0x4ecdee
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [edi + 0x50]
push eax
push edi
call ecx
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x84]
add esp, 0xc
mov dword [ebp - 0xc8], esi
mov ebx, edx
mov dword [ebp - 0xc], eax
lea ecx, [esi + 4]
test eax, eax
ja 0x4ecdd7
jb 0x4ecd8e
cmp edx, 0x7f
ja 0x4ecda5
mov ebx, dword [ebp - 0xc8]
and dl, 0x7f
mov eax, 1
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x4ece0f
test eax, eax
ja 0x4ecdd7
jb 0x4ecdb3
cmp edx, 0x3fff
ja 0x4ecdd7
shrd edx, eax, 7
shr eax, 7
and bl, 0x7f
or dl, 0x80
mov eax, 2
mov byte [ecx + 1], bl
mov ebx, dword [ebp - 0xc8]
add eax, 4
mov byte [ecx], dl
xor esi, esi
jmp 0x4ece0f
push eax
push edx
call fcn.004aed90
mov ebx, dword [ebp - 0xc8]
add esp, 8
add eax, 4
xor esi, esi
jmp 0x4ece0f
mov ebx, dword [ebp - 0xc8]
sub ebx, 4
cmp edx, 4
jne 0x4ece0f
mov eax, dword [ebp - 0xe8]
mov edx, dword [eax + 0x4c]
push ebx
push eax
call edx
add esp, 8
movzx eax, ax
mov edx, dword [edi + 4]
add dword [ebp - 0x11c], eax
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebp - 0xe8]
push edx
push eax
mov eax, dword [ebp - 0x104]
add eax, dword [ebp - 0xcc]
push ebx
push eax
mov eax, esi
call fcn.004eae10
add esp, 0x14
cmp dword [ebp - 0xd0], 0
jne 0x4ec467
mov eax, dword [ebp - 0xcc]
inc eax
mov dword [ebp - 0xcc], eax
cmp eax, dword [ebp - 0xf8]
jl 0x4eccf2
mov ebx, dword [ebp - 0xec]
mov ecx, 1
sub ecx, ebx
mov dword [ebp - 0xcc], ecx
cmp ecx, ebx
jge 0x4ecf40
mov edi, dword [ebp - 0xfc]
mov eax, ecx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
cmp byte [ebp + esi - 0x18], 0
jne 0x4ecf31
test ecx, ecx
jns 0x4eceac
mov edx, dword [ebp + esi*4 - 0x70]
cmp edx, dword [ebp + esi*4 - 0x44]
jl 0x4ecf31
test esi, esi
jne 0x4eceb9
mov eax, dword [ebp - 0x40]
xor edx, edx
xor ecx, ecx
jmp 0x4ecee5
cmp esi, dword [ebp - 0xf4]
jge 0x4ecece
xor edx, edx
test edi, edi
sete dl
add edx, dword [ebp + esi*4 - 0x70]
jmp 0x4eced4
mov edx, dword [ebp - 0xc4]
mov eax, dword [ebp + esi*4 - 0x40]
xor ecx, ecx
test edi, edi
sete cl
add ecx, dword [ebp + esi*4 - 0x44]
sub eax, ecx
mov edi, dword [ebp + esi*4 - 0x130]
lea ebx, [ebp - 0xc4]
push ebx
push eax
push ecx
push edx
push edi
call fcn.004eb6c0
add esp, 0x14
mov dword [ebp - 0xd0], eax
test eax, eax
jne 0x4ec467
mov eax, dword [ebp - 0x100]
sub eax, dword [ebp + esi*4 - 0x2c]
mov ebx, dword [ebp - 0xec]
mov ecx, dword [ebp - 0xcc]
mov dword [edi + 0x14], eax
mov edi, dword [ebp - 0xfc]
mov byte [ebp + esi - 0x18], 1
inc ecx
mov dword [ebp - 0xcc], ecx
cmp ecx, ebx
jl 0x4ece86
cmp dword [ebp + 0xc], 0
je 0x4ecfab
mov ecx, dword [ebp - 0xe8]
cmp word [ecx + 0x18], 0
jne 0x4ecfab
mov edi, dword [ebp - 0x130]
mov edx, ecx
movzx eax, byte [edx + 9]
cmp eax, dword [edi + 0x14]
jg 0x4ecfab
push 0xffffffffffffffff
push edi
call fcn.004e8120
mov edx, dword [ebp - 0xe8]
lea ecx, [ebp - 0xd0]
push ecx
push edx
mov dword [ebp - 0xd0], eax
call fcn.004ebb50
add esp, 0x10
cmp dword [ebp - 0xd0], 0
jne 0x4ecffa
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x34]
push eax
push ecx
mov eax, edi
call fcn.004ea570
add esp, 8
mov dword [ebp - 0xd0], eax
jmp 0x4ecffa
mov edi, dword [ebp - 0xe4]
cmp byte [edi + 0x11], 0
je 0x4ecffa
cmp word [ebp - 0x108], 0
jne 0x4ecffa
xor esi, esi
test ebx, ebx
jle 0x4ecffa
jmp 0x4ecfd0
mov eax, dword [ebp + esi*4 - 0x130]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0xd0]
push edx
mov edx, dword [eax + 0x38]
mov eax, dword [edx + 8]
push ecx
push 5
bswap eax
push edi
call fcn.004e7e70
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x4ecfd0
mov esi, ebx
cmp ebx, dword [ebp - 0xf4]
jge 0x4ec467
mov ecx, dword [ebp - 0xd0]
mov edi, dword [ebp - 0xf4]
mov eax, dword [ebp + esi*4 - 0x114]
test ecx, ecx
jne 0x4ed031
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x34]
push ecx
push edx
call fcn.004ea570
add esp, 8
mov ecx, eax
inc esi
cmp esi, edi
jl 0x4ed014
mov dword [ebp - 0xd0], ecx
jmp 0x4ec467
push 0x56e494
push 0x1191f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
lea eax, [edi*4 + 4]
push eax
lea ecx, [ebp - 0x114]
push 0
push ecx
mov dword [ebp - 0xd0], 0xb
call fcn.00480280
add esp, 0x20
jmp 0x4ed08b
push esi
call dword [0x58e7c4]
add esp, 4
xor edi, edi
cmp dword [ebp - 0xf4], edi
jle 0x4ed103
mov eax, dword [ebp + edi*4 - 0x114]
test eax, eax
je 0x4ed0fa
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4ed0f5
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 ebx, dword [esi]
dec eax
push edx
mov dword [ebp - 0xf8], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0xf8]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ed0fa
call fcn.004b0660
inc edi
cmp edi, dword [ebp - 0xf4]
jl 0x4ed095
xor edi, edi
cmp dword [ebp - 0xec], edi
jle 0x4ed17f
mov eax, dword [ebp + edi*4 - 0x130]
test eax, eax
je 0x4ed176
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4ed171
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 ebx, dword [esi]
dec eax
push edx
mov dword [ebp - 0xf8], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 0xf8]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ed176
call fcn.004b0660
inc edi
cmp edi, dword [ebp - 0xec]
jl 0x4ed111
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xd0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret