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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x5ab3e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0xf8], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xdc], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x114], ebx
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x108], eax
test ecx, ecx
jne 0x4dc512
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048b6e9
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
push esi
push edi
lea esi, [edx + ecx]
cmp esi, 2
jae 0x4dc528
xor edi, edi
jmp 0x4dc54e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4dc533
xor edi, edi
jmp 0x4dc544
cmp eax, esi
jne 0x4dc541
mov eax, dword [ebp + 0x18]
lea edi, [eax - 2]
add edi, esi
jmp 0x4dc547
lea edi, [eax - 1]
mov eax, dword [ebp + 0x18]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x128], edi
mov dword [ebp - 0x118], eax
mov eax, edi
sub eax, edx
mov dword [ebp - 0x134], esi
lea edx, [eax + esi]
cmp edx, ecx
jne 0x4dc577
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4dc58b
mov eax, dword [ebx + 0x40]
mov ax, word [eax + edx*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, [esi*4]
mov dword [ebp - 0x124], ecx
mov eax, dword [ecx]
bswap eax
mov dword [ebp - 0x11c], eax
mov ebx, eax
mov dword [ebp - 0x138], eax
lea ecx, [ecx]
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], edi
cmp ebx, dword [eax + 0x30]
jbe 0x4dc5e9
push 0x595f94
push 0x103c6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov edx, 0xb
jmp 0x4dc67d
mov eax, dword [eax]
lea ecx, [ebp - 0x104]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov edx, eax
add esp, 0x10
mov dword [ebp - 0xec], edx
test edx, edx
jne 0x4dc683
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 8]
mov dword [ebp + edi - 0x24], eax
cmp byte [eax], 0
jne 0x4dc67b
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x4dc64d
mov eax, dword [edx + 4]
cmp ebx, 1
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x108]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], ebx
mov byte [ecx + 9], al
mov eax, dword [ebp + edi - 0x24]
push eax
call fcn.004ded10
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
test edx, edx
je 0x4dc67b
mov eax, dword [ebp + edi - 0x24]
test eax, eax
je 0x4dc683
push eax
call fcn.004fbc40
mov edx, dword [ebp - 0xec]
add esp, 4
jmp 0x4dc683
xor edx, edx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4dda38
mov eax, dword [ebp + edi - 0x24]
cmp dword [eax + 0x14], edx
jge 0x4dc6b9
push eax
call fcn.004de2e0
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4dc812
mov ecx, esi
sub edi, 4
dec esi
test ecx, ecx
je 0x4dc85c
mov ebx, dword [ebp - 0x114]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x4dc721
mov eax, dword [ebp - 0x128]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x4dc721
mov eax, dword [ebx + 0x24]
push eax
mov dword [ebp + edi - 0x10], eax
mov ebx, dword [eax]
mov eax, dword [ebp - 0x114]
bswap ebx
push eax
mov dword [ebp - 0x11c], ebx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x138], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + edi - 0x4c], eax
mov eax, dword [ebp - 0x114]
mov byte [eax + 0xc], 0
jmp 0x4dc5b0
mov ecx, dword [ebp - 0x128]
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 - 0xf0], eax
mov dword [ebp + edi - 0x10], eax
mov ecx, dword [eax]
mov eax, dword [ebp - 0x114]
bswap ecx
push eax
mov dword [ebp - 0x11c], ecx
mov ebx, ecx
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x138], ecx
call eax
mov ecx, dword [ebp - 0x108]
add esp, 8
movzx eax, ax
mov dword [ebp - 0xfc], eax
mov dword [ebp + edi - 0x4c], eax
test byte [ecx + 0x18], 0xc
je 0x4dc7e7
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0xf0]
sub edx, dword [ecx + 0x38]
mov ecx, dword [ebp - 0x108]
add eax, edx
cmp eax, dword [ecx + 0x28]
mov ecx, dword [ebp - 0xf0]
jg 0x4dc81e
push dword [ebp - 0xfc]
mov eax, dword [ebp - 0x148]
push ecx
add eax, edx
push eax
call fcn.0048d3b0
mov edx, dword [ebp - 0x114]
add esp, 0xc
mov eax, dword [ebp - 0x148]
sub eax, dword [edx + 0x38]
add eax, dword [ebp - 0xf0]
mov dword [ebp + edi - 0x10], eax
mov eax, dword [ebp - 0xfc]
jmp 0x4dc7ed
mov edx, dword [ebp - 0x114]
lea ecx, [ebp - 0x100]
push ecx
mov ecx, dword [ebp - 0x128]
push eax
movzx eax, byte [edx + 0xc]
sub ecx, eax
add ecx, esi
push ecx
push edx
call fcn.004e5fa0
add esp, 0x10
jmp 0x4dc5b0
lea eax, [esi*4]
jmp 0x4dda3b
push 0x595f94
push 0x1191f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
push dword [ebp - 0x110]
lea eax, [ebp - 0x24]
mov dword [ebp - 0xec], 0xb
push 0
push eax
call fcn.0048deb0
add esp, 0x20
jmp 0x4dda4a
mov eax, dword [ebp - 0x108]
mov ebx, dword [ebp - 0x118]
mov esi, dword [eax + 0x24]
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.0051c500
add esp, 8
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x4dc8b0
mov dword [ebp - 0xec], 7
jmp 0x4dda4a
mov ecx, dword [ebp - 0x24]
lea eax, [eax + edi*4]
mov dword [ebp - 0xd8], eax
lea eax, [eax + edi*2]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0xe0], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x12c], eax
mov al, byte [ecx + 3]
mov byte [ebp - 0xe5], al
movzx eax, al
mov dword [ebp - 0x14c], eax
xor eax, eax
mov dword [ebp - 0xf0], eax
test ebx, ebx
jle 0x4dcb56
mov edi, edi
shl eax, 2
mov dword [ebp - 0xf4], eax
mov edi, dword [ebp + eax - 0x24]
mov dword [ebp - 0x120], edi
movzx eax, word [edi + 0x1a]
mov ebx, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
movzx edx, word [edi + 0x18]
add esi, ebx
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x140], ebx
mov ecx, dword [eax + 0x38]
mov al, byte [ebx]
mov dword [ebp - 0xfc], esi
cmp al, byte [ecx]
jne 0x4dcd8a
movzx eax, byte [edi + 0xc]
mov ecx, dword [ebp - 0xd8]
add eax, edx
add eax, eax
push eax
mov eax, dword [ebp - 0xe4]
push 0
lea eax, [ecx + eax*2]
push eax
call fcn.0048deb0
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x4dca17
movzx edx, word [edi + 0x1c]
cmp dword [ebp - 0x104], edx
jb 0x4dcd72
test edx, edx
je 0x4dc9de
mov edi, dword [ebp - 0xe4]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0x13c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xdc]
add ecx, ebx
mov dword [eax + edi*4], ecx
inc edi
sub edx, 1
jne 0x4dc9a0
mov dword [ebp - 0xe4], edi
mov edi, dword [ebp - 0x120]
mov dword [ebp - 0xfc], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x4dca17
mov ebx, dword [ebp - 0xe4]
lea ecx, [edi + 0x24]
mov esi, dword [ebp - 0xdc]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 0xc]
inc ebx
cmp edx, eax
jl 0x4dc9f3
mov esi, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], ebx
mov ebx, dword [ebp - 0x140]
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add eax, ebx
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x4dca64
mov edi, dword [ebp - 0xe4]
mov edi, edi
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [ebp - 0x130]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [ebp - 0xdc]
add ecx, ebx
mov dword [eax + edi*4], ecx
inc edi
cmp esi, edx
jb 0x4dca30
mov dword [ebp - 0xe4], edi
mov edi, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xe4]
mov dword [ebp + ecx - 0x8c], edx
cmp eax, dword [ebp - 0x134]
jge 0x4dcb43
cmp byte [ebp - 0xe5], 0
jne 0x4dcb43
movzx eax, word [ebp + ecx - 0x4c]
mov ecx, dword [ebp - 0xd8]
mov ebx, dword [ebp - 0x10c]
mov esi, dword [ebp - 0x110]
push eax
add esi, ebx
mov word [ecx + edx*2], ax
add ebx, eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x10c], ebx
push dword [ebp + eax - 0x10]
push esi
call fcn.0048d3b0
mov eax, dword [ebp - 0x12c]
add esp, 0xc
mov edx, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xdc]
movzx eax, ax
add eax, esi
mov esi, dword [ebp - 0xd8]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x12c]
sub word [esi + edx*2], ax
cmp byte [edi + 8], 0
jne 0x4dcb0c
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4dcb36
cmp word [esi + edx*2], 4
jae 0x4dcb36
mov eax, dword [ebp - 0x110]
lea esp, [esp]
mov byte [eax + ebx], 0
inc ebx
inc word [esi + edx*2]
cmp word [esi + edx*2], 4
jb 0x4dcb20
mov dword [ebp - 0x10c], ebx
mov eax, dword [ebp - 0xf0]
inc edx
mov dword [ebp - 0xe4], edx
inc eax
mov dword [ebp - 0xf0], eax
cmp eax, dword [ebp - 0x118]
jl 0x4dc900
mov eax, dword [ebp - 0x12c]
xor ebx, ebx
movzx esi, ax
xor edx, edx
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xfc], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add esi, eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], esi
test eax, eax
jle 0x4dcc8b
mov esi, dword [ebp + edx*4 - 0x24]
mov ecx, dword [ebp + edx*4 - 0x8c]
mov dword [ebp - 0x130], ecx
mov eax, dword [esi + 0x3c]
mov dword [ebp + ebx*4 - 0xd4], eax
mov dword [ebp + ebx*4 - 0xbc], ecx
test ebx, ebx
je 0x4dcbc7
cmp ecx, dword [ebp + ebx*4 - 0xc0]
jne 0x4dcbc7
dec ebx
mov dword [ebp - 0xf0], ebx
cmp byte [ebp - 0xe5], 0
jne 0x4dcbf1
mov eax, dword [ebp - 0x114]
inc ebx
mov dword [ebp - 0xf0], ebx
mov eax, dword [eax + 0x3c]
mov dword [ebp + ebx*4 - 0xd4], eax
lea eax, [ecx + 1]
mov dword [ebp + ebx*4 - 0xbc], eax
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x4c]
sub edi, dword [esi + 0x14]
lea eax, [eax + edx*4]
cmp byte [esi + 0xc], 0
mov dword [ebp - 0x134], eax
mov dword [eax], edi
mov dword [ebp - 0x110], 0
jbe 0x4dcc65
lea ebx, [esi + 0x24]
jmp 0x4dcc20
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0x110]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0x110], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4dcc20
mov eax, dword [ebp - 0x134]
mov ebx, dword [ebp - 0xf0]
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0xfc]
mov dword [eax], edi
mov eax, dword [ebp - 0x118]
inc ebx
mov dword [ebp + edx*4 - 0x60], ecx
inc edx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xf0], ebx
cmp edx, eax
jl 0x4dcb91
mov esi, dword [ebp - 0x120]
mov ebx, dword [ebp - 0xe4]
mov edx, eax
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xfc], 0
test eax, eax
jle 0x4dcf40
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0xf0], eax
mov dword [ebp - 0x10c], ecx
mov edi, edi
mov edi, dword [ebp + ecx - 0x4c]
cmp edi, esi
jle 0x4dcddf
lea esp, [esp]
cmp eax, edx
jl 0x4dccf6
lea edx, [eax + 1]
mov dword [ebp - 0xf4], edx
cmp edx, 5
jg 0x4dcee6
mov dword [ebp + ecx - 0x48], 0
mov edi, dword [ebp + ecx - 0x4c]
mov dword [ebp + ecx - 0x5c], ebx
mov esi, dword [ebp + ecx - 0x60]
mov edx, dword [ebp - 0xd8]
lea ebx, [esi - 1]
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x4dcd2b
lea eax, [ebp - 0xe4]
push ebx
push eax
call fcn.004e2c50
mov ecx, dword [ebp - 0x10c]
add esp, 8
mov edx, dword [ebp - 0xd8]
movzx eax, ax
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [ebp - 0xe5], 0
mov dword [ebp + ecx - 0x4c], edi
jne 0x4dcdb9
cmp esi, dword [ebp - 0xe4]
jge 0x4dcdb7
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dcd64
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e2c50
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10c]
movzx eax, ax
add eax, 2
jmp 0x4dcdb9
push 0x1197a
call fcn.0050a770
add esp, 4
mov dword [ebp - 0xec], eax
jmp 0x4dd9d4
push 0x595f94
push 0x11962
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dd9d4
xor eax, eax
add dword [ebp + ecx - 0x48], eax
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xf4]
mov dword [ebp + ecx - 0x60], ebx
mov ebx, dword [ebp - 0xe4]
cmp edi, dword [ebp - 0x120]
jg 0x4dccd0
mov esi, dword [ebp + ecx - 0x60]
cmp esi, ebx
jge 0x4dce87
mov edx, dword [ebp - 0xd8]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dce19
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e2c50
mov ecx, dword [ebp - 0x10c]
add esp, 8
mov edx, dword [ebp - 0xd8]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [ebp - 0x120]
jg 0x4dcebf
inc esi
mov dword [ebp + ecx - 0x4c], edi
cmp byte [ebp - 0xe5], 0
mov dword [ebp + ecx - 0x60], esi
jne 0x4dce75
cmp esi, ebx
jge 0x4dce73
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dce65
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e2c50
mov edx, dword [ebp - 0xd8]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10c]
movzx eax, ax
add eax, 2
jmp 0x4dce75
xor eax, eax
sub dword [ebp + ecx - 0x48], eax
cmp esi, ebx
jl 0x4dcdf1
mov eax, dword [ebp - 0xf0]
mov edx, eax
mov dword [ebp - 0xf4], edx
mov esi, dword [ebp - 0xfc]
add ecx, 4
inc esi
mov dword [ebp - 0x10c], ecx
inc eax
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xf0], eax
cmp esi, edx
jge 0x4dcf40
mov esi, dword [ebp - 0x120]
jmp 0x4dccc0
cmp esi, ebx
jge 0x4dce81
cmp dword [ebp - 0xfc], 0
jbe 0x4dced2
mov eax, dword [ebp + ecx - 0x64]
jmp 0x4dced4
xor eax, eax
cmp esi, eax
jle 0x4dcf13
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xf4]
jmp 0x4dce8f
push 0x595f94
push 0x119df
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dd9d4
push 0x595f94
push 0x11a00
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dd9d4
lea eax, [edx - 1]
mov ecx, eax
mov dword [ebp - 0x10c], eax
test ecx, ecx
jle 0x4dd0f3
shl ecx, 2
lea eax, [ebp - 0x4c]
add eax, ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x13c], eax
mov edi, dword [eax]
lea eax, [ebp + ecx - 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x60]
sub eax, 4
mov dword [ebp - 0x104], eax
mov ecx, dword [eax + ecx]
mov dword [ebp - 0x110], ecx
lea esi, [ecx - 1]
mov ecx, dword [ebp - 0xd8]
mov eax, esi
sub eax, dword [ebp - 0x14c]
inc eax
cmp word [ecx + eax*2], 0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0xfc], ecx
jne 0x4dcfbf
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004e2c50
add esp, 8
mov ebx, dword [ebp - 0xfc]
jmp 0x4dcfd0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x130], esi
cmp word [eax + esi*2], 0
jne 0x4dcff9
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e2c50
add esp, 8
test edi, edi
je 0x4dd04f
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x110]
mov edx, eax
jne 0x4dd0a1
mov ecx, dword [ebp - 0xf4]
mov eax, 2
mov ebx, dword [ebp - 0xfc]
dec ecx
cmp dword [ebp - 0x10c], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [ebp - 0xf0]
sub ecx, eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + esi*2]
sub ecx, eax
movzx eax, word [ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4dd0a1
movzx eax, word [ebx]
mov ecx, 0xfffffffe
mov edx, dword [ebp - 0x140]
add eax, 2
add edi, eax
sub ebx, 2
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xfc], ebx
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0x134]
add dword [ebp - 0xf0], ecx
mov ecx, dword [ebp - 0x104]
mov dword [ecx + eax], esi
sub esi, 1
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x110], eax
jns 0x4dcfd0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0xe4]
mov dword [eax], edi
mov eax, dword [ebp - 0xf0]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10c]
cmp ecx, 1
jbe 0x4dd0d8
mov esi, dword [ebp - 0x104]
lea eax, [ecx*4]
mov eax, dword [eax + esi - 4]
jmp 0x4dd0da
xor eax, eax
cmp edx, eax
jle 0x4dd154
dec ecx
mov dword [ebp - 0x10c], ecx
test ecx, ecx
jg 0x4dcf53
mov edx, dword [ebp - 0xf4]
mov eax, dword [ebp - 0x24]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [ebp - 0x110], eax
lea eax, [esi + 1]
test edx, edx
jle 0x4dd2a0
nop
cmp esi, dword [ebp - 0x118]
jge 0x4dd1d6
mov eax, dword [ebp + esi*4 - 0x24]
mov dword [ebp + esi*4 - 0x38], eax
mov dword [ebp + esi*4 - 0x24], 0
mov dword [ebp - 0x104], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4dd185
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4dd185
cmp dword [edx + 0x60], 0
je 0x4dd181
push ecx
call fcn.005453a0
jmp 0x4dd1ad
push 0x595f94
push 0x11a2a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dd9d4
xor eax, eax
jmp 0x4dd1b0
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4dd1b6
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4dd1a8
call fcn.004f6e30
jmp 0x4dd1ad
call fcn.004f8110
add esp, 4
mov dword [ebp - 0xec], eax
mov edi, dword [ebp - 0xf8]
inc edi
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xf8], edi
test eax, eax
jne 0x4dd9d4
jmp 0x4dd28c
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0x11c]
push 0
cmovne ecx, eax
lea eax, [ebp - 0x138]
push ecx
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call fcn.004d99e0
add esp, 0x14
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4dd9d4
push dword [ebp - 0x110]
mov edi, dword [ebp - 0x104]
push edi
call fcn.0055a350
mov ecx, dword [ebp - 0x108]
add esp, 8
inc dword [ebp - 0xf8]
mov dword [ebp + esi*4 - 0x38], edi
mov dword [ebp + esi*4 - 0x8c], ebx
cmp byte [ecx + 0x11], 0
je 0x4dd27a
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x114]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.004fa620
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4dd9d4
mov eax, dword [ebp - 0x138]
mov edi, dword [ebp - 0xf8]
mov dword [ebp - 0x11c], eax
inc esi
mov eax, 1
cmp esi, dword [ebp - 0xf4]
jl 0x4dd110
jmp 0x4dd2a2
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x4dd2f7
jmp 0x4dd2b0
mov eax, dword [ebp + ecx*4 - 0x38]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0xa0], edx
mov dword [ebp + ecx*4 - 0x74], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0x10], ax
xor eax, eax
test ecx, ecx
je 0x4dd2f2
jmp 0x4dd2e0
cmp dword [ebp + eax*4 - 0xa0], edx
je 0x4dd470
inc eax
cmp eax, ecx
jl 0x4dd2e0
inc ecx
cmp ecx, edi
jl 0x4dd2b0
xor ebx, ebx
mov dword [ebp - 0x104], ebx
test edi, edi
jle 0x4dd3ab
xor esi, esi
lea ecx, [esi + 1]
cmp edi, ecx
jle 0x4dd340
mov ebx, dword [ebp - 0xf8]
xor edi, edi
jmp 0x4dd320
lea edx, [ecx*4]
mov eax, dword [ebp + edx - 0x74]
cmp eax, dword [ebp + edi - 0x74]
jae 0x4dd335
mov esi, ecx
mov edi, edx
inc ecx
cmp ecx, ebx
jl 0x4dd320
mov ebx, dword [ebp - 0x104]
mov edi, dword [ebp + esi*4 - 0x74]
mov dword [ebp + esi*4 - 0x74], 0xffffffff
cmp esi, ebx
je 0x4dd396
jle 0x4dd375
mov eax, dword [ebp - 0x108]
xor edx, edx
mov ecx, dword [eax + 0x30]
mov eax, dword [ebp + esi*4 - 0x38]
inc ecx
add ecx, esi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.0051fac0
add esp, 8
mov eax, dword [ebp + ebx*4 - 0x38]
push edi
mov ecx, dword [eax + 0x48]
mov ax, word [ebp + esi*2 - 0x10]
push ecx
mov word [ecx + 0x1c], ax
call fcn.0051fac0
mov eax, dword [ebp + ebx*4 - 0x38]
add esp, 8
mov dword [eax + 4], edi
mov edi, dword [ebp - 0xf8]
inc ebx
mov dword [ebp - 0x104], ebx
cmp ebx, edi
jl 0x4dd307
test byte [ebp - 0x110], 8
mov eax, dword [ebp + edi*4 - 0x3c]
mov ecx, dword [ebp - 0x124]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x4dd3ec
mov ecx, dword [ebp - 0x118]
cmp ecx, edi
je 0x4dd3ec
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x38]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + edi*4 - 0x3c]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x108]
cmp byte [eax + 0x11], 0
je 0x4dd633
mov esi, dword [ebp - 0x38]
xor edx, edx
xor edi, edi
mov dword [ebp - 0x124], 0
mov dword [ebp - 0xf0], edx
movzx ebx, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add ebx, eax
cmp dword [ebp - 0xe4], edx
jle 0x4dd636
mov eax, esi
mov dword [ebp - 0x104], edx
mov dword [ebp - 0xf4], eax
jmp 0x4dd440
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xfc], ecx
cmp edx, ebx
jne 0x4dd4ba
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
mov dword [ebp - 0xc], eax
inc edi
cmp edi, dword [ebp - 0xf8]
jge 0x4dd49d
mov esi, dword [ebp + edi*4 - 0x38]
jmp 0x4dd4a1
push 0x595f94
push 0x11a74
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dd9d4
mov esi, dword [ebp + edi*4 - 0x24]
movzx eax, word [esi + 0x18]
add eax, dword [ebp - 0xc]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add ebx, ecx
cmp edx, ebx
je 0x4dd461
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x104]
cmp edx, dword [ebp + ecx - 0x60]
mov ecx, dword [ebp - 0xfc]
jne 0x4dd4f9
mov eax, dword [ebp - 0x124]
inc eax
mov dword [ebp - 0x124], eax
shl eax, 2
cmp byte [ebp - 0xe5], 0
mov dword [ebp - 0x104], eax
mov eax, dword [ebp + eax - 0x38]
mov dword [ebp - 0xf4], eax
je 0x4dd620
cmp edi, dword [ebp - 0xf8]
jge 0x4dd521
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0xa0]
mov eax, dword [ebp - 0xf4]
jne 0x4dd521
cmp ecx, dword [esi + 0x38]
jb 0x4dd521
cmp ecx, dword [esi + 0x3c]
jb 0x4dd620
cmp word [ebp - 0x12c], 0
mov edx, dword [ebp - 0xf0]
jne 0x4dd562
lea edx, [ebp - 0x100]
push edx
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0x108]
call fcn.004fa620
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov edx, dword [ebp - 0xf0]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xd8]
movzx eax, word [eax + edx*2]
test ax, ax
jne 0x4dd584
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.004e2c50
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xf4]
cmp ax, word [ecx + 0x10]
jbe 0x4dd606
cmp dword [ebp - 0xec], 0
jne 0x4dd9d4
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0xfc]
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [ebp - 0x68]
add esp, 0xc
cmp eax, dword [ebp - 0x6c]
jae 0x4dd614
mov edx, dword [esi + 0x3c]
mov ecx, dword [ebp - 0xfc]
cmp edx, ecx
jb 0x4dd5d0
add eax, ecx
cmp edx, eax
jb 0x4dd6a7
mov edx, dword [ebp - 0xf4]
lea eax, [ebp - 0x100]
push eax
movzx eax, word [ebp - 0x66]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.004fa620
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
jmp 0x4dd60c
mov eax, dword [ebp - 0xec]
test eax, eax
jne 0x4dd9d4
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xf0]
inc edx
mov dword [ebp - 0xf0], edx
cmp edx, dword [ebp - 0xe4]
jl 0x4dd440
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xf8]
xor edi, edi
dec eax
test eax, eax
jle 0x4dd7ce
jmp 0x4dd650
mov eax, dword [ebp + edi*4 - 0x60]
mov edx, dword [ebp - 0xdc]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [ebp + edi*4 - 0x38]
mov ebx, dword [ebp - 0x144]
add ebx, dword [ebp - 0x148]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x11c], ecx
mov ecx, dword [ebp - 0x12c]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [ebp - 0x11c]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x4dd6d4
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4dd777
push 0x595f94
push 0x100ae
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8010
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dd9d4
cmp byte [ebp - 0xe5], 0
je 0x4dd75c
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [ebp - 0xa0]
mov esi, ebx
mov ecx, dword [ebp - 0xa4]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x4dd74a
jb 0x4dd70f
cmp ecx, 0x7f
ja 0x4dd720
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4dd777
test edx, edx
ja 0x4dd74a
jb 0x4dd72e
cmp ecx, 0x3fff
ja 0x4dd74a
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 1], cl
or al, 0x80
mov byte [ebx], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4dd777
push edx
push ecx
push ebx
call fcn.004fad10
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4dd777
sub esi, 4
cmp eax, 4
jne 0x4dd77d
mov eax, dword [ebp - 0x114]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [ebp - 0x11c]
add dword [ebp - 0x144], edx
lea eax, [ebp - 0x100]
push eax
push dword [ecx + 4]
mov eax, dword [ebp - 0x128]
push ebx
push edx
push esi
add eax, edi
push eax
push dword [ebp - 0x114]
call fcn.004f0280
mov esi, dword [ebp - 0x100]
add esp, 0x1c
mov dword [ebp - 0xec], esi
test esi, esi
jne 0x4dd9d4
mov eax, dword [ebp - 0xf8]
inc edi
dec eax
cmp edi, eax
jl 0x4dd650
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, dword [ebp - 0xf8]
mov dword [ebp - 0x124], edi
cmp edi, dword [ebp - 0xf8]
jge 0x4dd8c3
jmp 0x4dd7f0
mov eax, edi
lea ebx, [ebp - 0x18]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x4dd8ad
test edi, edi
jns 0x4dd81c
mov eax, dword [ebp + ecx*4 - 0x90]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x4dd8ad
test ecx, ecx
jne 0x4dd829
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x4dd860
cmp ecx, dword [ebp - 0x118]
jge 0x4dd845
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
add eax, dword [ebp + ecx*4 - 0x90]
jmp 0x4dd84b
mov eax, dword [ebp - 0xe4]
mov esi, dword [ebp + ecx*4 - 0x60]
xor edx, edx
cmp byte [ebp - 0xe5], dl
sete dl
add edx, dword [ebp + ecx*4 - 0x64]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [ebp - 0xe4]
push ecx
push esi
push edx
push eax
push dword [ebp + edi - 0x38]
call fcn.004e6180
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x100], ecx
test ecx, ecx
jne 0x4dd9d4
mov eax, dword [ebp + edi - 0x38]
mov ecx, dword [ebp - 0x120]
sub ecx, dword [ebp + edi - 0x4c]
mov edi, dword [ebp - 0x124]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
inc edi
mov dword [ebp - 0x124], edi
cmp edi, dword [ebp - 0xf8]
jl 0x4dd7f0
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x4dd930
mov ebx, dword [ebp - 0x114]
cmp word [ebx + 0x18], 0
jne 0x4dd930
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x4dd930
push 0xffffffffffffffff
push esi
call fcn.004e5380
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x100]
push eax
push ebx
push dword [ebp - 0x38]
call fcn.004e4860
mov ecx, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], ecx
test ecx, ecx
jne 0x4dd99b
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ece50
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xec], ecx
jmp 0x4dd99b
mov ecx, dword [ebp - 0x108]
cmp byte [ecx + 0x11], 0
je 0x4dd995
cmp word [ebp - 0x12c], 0
mov edi, dword [ebp - 0xf8]
jne 0x4dd98d
xor esi, esi
test edi, edi
jle 0x4dd98d
mov eax, dword [ebp + esi*4 - 0x38]
lea edx, [ebp - 0x100]
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.004fa620
mov ecx, dword [ebp - 0x108]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4dd952
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xec], ecx
jmp 0x4dd9a1
mov ecx, dword [ebp - 0xec]
jmp 0x4dd9a1
mov ecx, dword [ebp - 0xec]
mov edi, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0x118]
mov esi, edi
cmp edi, ebx
jge 0x4dd9d4
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x24]
test ecx, ecx
jne 0x4dd9c9
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ece50
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, ebx
jl 0x4dd9b0
mov dword [ebp - 0xec], ecx
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x4dda4a
cmp dword [0x5ac1c8], 0
je 0x4dda2c
mov eax, dword [0x5b6e80]
test eax, eax
je 0x4dd9fa
push eax
call dword [0x5ac218]
add esp, 4
push ebx
call dword [0x5ac1f4]
sub dword [0x5b6e20], eax
dec dword [0x5b6e44]
push ebx
call dword [0x5ac1ec]
mov eax, dword [0x5b6e80]
add esp, 8
test eax, eax
je 0x4dda4a
push eax
call dword [0x5ac220]
add esp, 4
jmp 0x4dda4a
push ebx
call dword [0x5ac1ec]
add esp, 4
jmp 0x4dda4a
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.0048deb0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x118], ebx
jle 0x4ddab6
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x4ddaad
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ddaa4
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.0048c6e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ddaad
push edx
call fcn.0051fb60
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x118]
jl 0x4dda54
xor ebx, ebx
cmp dword [ebp - 0xf8], ebx
jle 0x4ddb22
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x4ddb19
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ddb10
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.0048c6e0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ddb19
push edx
call fcn.0051fb60
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xf8]
jl 0x4ddac0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xec]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048b6e9
mov esp, ebp
pop ebp
ret