Function at 0x4dc8b0
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 0x4dc932
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048bb19
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 0x4dc948
xor edi, edi
jmp 0x4dc96e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4dc953
xor edi, edi
jmp 0x4dc964
cmp eax, esi
jne 0x4dc961
mov eax, dword [ebp + 0x18]
lea edi, [eax - 2]
add edi, esi
jmp 0x4dc967
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 0x4dc997
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4dc9ab
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 0x4dca09
push 0x596084
push 0x103c6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
add esp, 0x14
mov edx, 0xb
jmp 0x4dca9d
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 0x4dcaa3
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 8]
mov dword [ebp + edi - 0x24], eax
cmp byte [eax], 0
jne 0x4dca9b
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x4dca6d
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.004df130
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
test edx, edx
je 0x4dca9b
mov eax, dword [ebp + edi - 0x24]
test eax, eax
je 0x4dcaa3
push eax
call fcn.004fc070
mov edx, dword [ebp - 0xec]
add esp, 4
jmp 0x4dcaa3
xor edx, edx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4dde58
mov eax, dword [ebp + edi - 0x24]
cmp dword [eax + 0x14], edx
jge 0x4dcad9
push eax
call fcn.004de700
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4dcc32
mov ecx, esi
sub edi, 4
dec esi
test ecx, ecx
je 0x4dcc7c
mov ebx, dword [ebp - 0x114]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x4dcb41
mov eax, dword [ebp - 0x128]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x4dcb41
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 0x4dc9d0
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 0x4dcc07
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 0x4dcc3e
push dword [ebp - 0xfc]
mov eax, dword [ebp - 0x148]
push ecx
add eax, edx
push eax
call fcn.0048d7e0
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 0x4dcc0d
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.004e63c0
add esp, 0x10
jmp 0x4dc9d0
lea eax, [esi*4]
jmp 0x4dde5b
push 0x596084
push 0x1191f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
push dword [ebp - 0x110]
lea eax, [ebp - 0x24]
mov dword [ebp - 0xec], 0xb
push 0
push eax
call fcn.0048e2e0
add esp, 0x20
jmp 0x4dde6a
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.0051c920
add esp, 8
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x4dccd0
mov dword [ebp - 0xec], 7
jmp 0x4dde6a
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 0x4dcf76
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 0x4dd1aa
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.0048e2e0
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x4dce37
movzx edx, word [edi + 0x1c]
cmp dword [ebp - 0x104], edx
jb 0x4dd192
test edx, edx
je 0x4dcdfe
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 0x4dcdc0
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 0x4dce37
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 0x4dce13
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 0x4dce84
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 0x4dce50
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 0x4dcf63
cmp byte [ebp - 0xe5], 0
jne 0x4dcf63
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.0048d7e0
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 0x4dcf2c
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4dcf56
cmp word [esi + edx*2], 4
jae 0x4dcf56
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 0x4dcf40
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 0x4dcd20
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 0x4dd0ab
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 0x4dcfe7
cmp ecx, dword [ebp + ebx*4 - 0xc0]
jne 0x4dcfe7
dec ebx
mov dword [ebp - 0xf0], ebx
cmp byte [ebp - 0xe5], 0
jne 0x4dd011
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 0x4dd085
lea ebx, [esi + 0x24]
jmp 0x4dd040
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 0x4dd040
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 0x4dcfb1
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 0x4dd360
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 0x4dd1ff
lea esp, [esp]
cmp eax, edx
jl 0x4dd116
lea edx, [eax + 1]
mov dword [ebp - 0xf4], edx
cmp edx, 5
jg 0x4dd306
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 0x4dd14b
lea eax, [ebp - 0xe4]
push ebx
push eax
call fcn.004e3070
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 0x4dd1d9
cmp esi, dword [ebp - 0xe4]
jge 0x4dd1d7
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dd184
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3070
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10c]
movzx eax, ax
add eax, 2
jmp 0x4dd1d9
push 0x1197a
call fcn.0050aba0
add esp, 4
mov dword [ebp - 0xec], eax
jmp 0x4dddf4
push 0x596084
push 0x11962
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dddf4
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 0x4dd0f0
mov esi, dword [ebp + ecx - 0x60]
cmp esi, ebx
jge 0x4dd2a7
mov edx, dword [ebp - 0xd8]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dd239
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3070
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 0x4dd2df
inc esi
mov dword [ebp + ecx - 0x4c], edi
cmp byte [ebp - 0xe5], 0
mov dword [ebp + ecx - 0x60], esi
jne 0x4dd295
cmp esi, ebx
jge 0x4dd293
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dd285
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3070
mov edx, dword [ebp - 0xd8]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10c]
movzx eax, ax
add eax, 2
jmp 0x4dd295
xor eax, eax
sub dword [ebp + ecx - 0x48], eax
cmp esi, ebx
jl 0x4dd211
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 0x4dd360
mov esi, dword [ebp - 0x120]
jmp 0x4dd0e0
cmp esi, ebx
jge 0x4dd2a1
cmp dword [ebp - 0xfc], 0
jbe 0x4dd2f2
mov eax, dword [ebp + ecx - 0x64]
jmp 0x4dd2f4
xor eax, eax
cmp esi, eax
jle 0x4dd333
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xf4]
jmp 0x4dd2af
push 0x596084
push 0x119df
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dddf4
push 0x596084
push 0x11a00
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dddf4
lea eax, [edx - 1]
mov ecx, eax
mov dword [ebp - 0x10c], eax
test ecx, ecx
jle 0x4dd513
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 0x4dd3df
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004e3070
add esp, 8
mov ebx, dword [ebp - 0xfc]
jmp 0x4dd3f0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x130], esi
cmp word [eax + esi*2], 0
jne 0x4dd419
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3070
add esp, 8
test edi, edi
je 0x4dd46f
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x110]
mov edx, eax
jne 0x4dd4c1
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 0x4dd4c1
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 0x4dd3f0
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 0x4dd4f8
mov esi, dword [ebp - 0x104]
lea eax, [ecx*4]
mov eax, dword [eax + esi - 4]
jmp 0x4dd4fa
xor eax, eax
cmp edx, eax
jle 0x4dd574
dec ecx
mov dword [ebp - 0x10c], ecx
test ecx, ecx
jg 0x4dd373
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 0x4dd6c0
nop
cmp esi, dword [ebp - 0x118]
jge 0x4dd5f6
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 0x4dd5a5
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4dd5a5
cmp dword [edx + 0x60], 0
je 0x4dd5a1
push ecx
call fcn.005457d0
jmp 0x4dd5cd
push 0x596084
push 0x11a2a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dddf4
xor eax, eax
jmp 0x4dd5d0
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4dd5d6
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4dd5c8
call fcn.004f7250
jmp 0x4dd5cd
call fcn.004f8530
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 0x4dddf4
jmp 0x4dd6ac
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.004d9df0
add esp, 0x14
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4dddf4
push dword [ebp - 0x110]
mov edi, dword [ebp - 0x104]
push edi
call fcn.0055a770
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 0x4dd69a
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.004faa40
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4dddf4
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 0x4dd530
jmp 0x4dd6c2
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x4dd717
jmp 0x4dd6d0
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 0x4dd712
jmp 0x4dd700
cmp dword [ebp + eax*4 - 0xa0], edx
je 0x4dd890
inc eax
cmp eax, ecx
jl 0x4dd700
inc ecx
cmp ecx, edi
jl 0x4dd6d0
xor ebx, ebx
mov dword [ebp - 0x104], ebx
test edi, edi
jle 0x4dd7cb
xor esi, esi
lea ecx, [esi + 1]
cmp edi, ecx
jle 0x4dd760
mov ebx, dword [ebp - 0xf8]
xor edi, edi
jmp 0x4dd740
lea edx, [ecx*4]
mov eax, dword [ebp + edx - 0x74]
cmp eax, dword [ebp + edi - 0x74]
jae 0x4dd755
mov esi, ecx
mov edi, edx
inc ecx
cmp ecx, ebx
jl 0x4dd740
mov ebx, dword [ebp - 0x104]
mov edi, dword [ebp + esi*4 - 0x74]
mov dword [ebp + esi*4 - 0x74], 0xffffffff
cmp esi, ebx
je 0x4dd7b6
jle 0x4dd795
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.0051fee0
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.0051fee0
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 0x4dd727
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 0x4dd80c
mov ecx, dword [ebp - 0x118]
cmp ecx, edi
je 0x4dd80c
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 0x4dda53
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 0x4dda56
mov eax, esi
mov dword [ebp - 0x104], edx
mov dword [ebp - 0xf4], eax
jmp 0x4dd860
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xfc], ecx
cmp edx, ebx
jne 0x4dd8da
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
mov dword [ebp - 0xc], eax
inc edi
cmp edi, dword [ebp - 0xf8]
jge 0x4dd8bd
mov esi, dword [ebp + edi*4 - 0x38]
jmp 0x4dd8c1
push 0x596084
push 0x11a74
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dddf4
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 0x4dd881
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x104]
cmp edx, dword [ebp + ecx - 0x60]
mov ecx, dword [ebp - 0xfc]
jne 0x4dd919
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 0x4dda40
cmp edi, dword [ebp - 0xf8]
jge 0x4dd941
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0xa0]
mov eax, dword [ebp - 0xf4]
jne 0x4dd941
cmp ecx, dword [esi + 0x38]
jb 0x4dd941
cmp ecx, dword [esi + 0x3c]
jb 0x4dda40
cmp word [ebp - 0x12c], 0
mov edx, dword [ebp - 0xf0]
jne 0x4dd982
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.004faa40
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 0x4dd9a4
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.004e3070
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xf4]
cmp ax, word [ecx + 0x10]
jbe 0x4dda26
cmp dword [ebp - 0xec], 0
jne 0x4dddf4
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 0x4dda34
mov edx, dword [esi + 0x3c]
mov ecx, dword [ebp - 0xfc]
cmp edx, ecx
jb 0x4dd9f0
add eax, ecx
cmp edx, eax
jb 0x4ddac7
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.004faa40
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
jmp 0x4dda2c
mov eax, dword [ebp - 0xec]
test eax, eax
jne 0x4dddf4
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xf0]
inc edx
mov dword [ebp - 0xf0], edx
cmp edx, dword [ebp - 0xe4]
jl 0x4dd860
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xf8]
xor edi, edi
dec eax
test eax, eax
jle 0x4ddbee
jmp 0x4dda70
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 0x4ddaf4
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4ddb97
push 0x596084
push 0x100ae
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d8420
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4dddf4
cmp byte [ebp - 0xe5], 0
je 0x4ddb7c
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 0x4ddb6a
jb 0x4ddb2f
cmp ecx, 0x7f
ja 0x4ddb40
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4ddb97
test edx, edx
ja 0x4ddb6a
jb 0x4ddb4e
cmp ecx, 0x3fff
ja 0x4ddb6a
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 0x4ddb97
push edx
push ecx
push ebx
call fcn.004fb140
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4ddb97
sub esi, 4
cmp eax, 4
jne 0x4ddb9d
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.004f06a0
mov esi, dword [ebp - 0x100]
add esp, 0x1c
mov dword [ebp - 0xec], esi
test esi, esi
jne 0x4dddf4
mov eax, dword [ebp - 0xf8]
inc edi
dec eax
cmp edi, eax
jl 0x4dda70
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, dword [ebp - 0xf8]
mov dword [ebp - 0x124], edi
cmp edi, dword [ebp - 0xf8]
jge 0x4ddce3
jmp 0x4ddc10
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 0x4ddccd
test edi, edi
jns 0x4ddc3c
mov eax, dword [ebp + ecx*4 - 0x90]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x4ddccd
test ecx, ecx
jne 0x4ddc49
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x4ddc80
cmp ecx, dword [ebp - 0x118]
jge 0x4ddc65
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
add eax, dword [ebp + ecx*4 - 0x90]
jmp 0x4ddc6b
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.004e65a0
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x100], ecx
test ecx, ecx
jne 0x4dddf4
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 0x4ddc10
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x4ddd50
mov ebx, dword [ebp - 0x114]
cmp word [ebx + 0x18], 0
jne 0x4ddd50
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x4ddd50
push 0xffffffffffffffff
push esi
call fcn.004e5790
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x100]
push eax
push ebx
push dword [ebp - 0x38]
call fcn.004e4c80
mov ecx, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], ecx
test ecx, ecx
jne 0x4dddbb
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ed270
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xec], ecx
jmp 0x4dddbb
mov ecx, dword [ebp - 0x108]
cmp byte [ecx + 0x11], 0
je 0x4dddb5
cmp word [ebp - 0x12c], 0
mov edi, dword [ebp - 0xf8]
jne 0x4dddad
xor esi, esi
test edi, edi
jle 0x4dddad
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.004faa40
mov ecx, dword [ebp - 0x108]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4ddd72
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xec], ecx
jmp 0x4dddc1
mov ecx, dword [ebp - 0xec]
jmp 0x4dddc1
mov ecx, dword [ebp - 0xec]
mov edi, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0x118]
mov esi, edi
cmp edi, ebx
jge 0x4dddf4
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x24]
test ecx, ecx
jne 0x4ddde9
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ed270
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, ebx
jl 0x4dddd0
mov dword [ebp - 0xec], ecx
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x4dde6a
cmp dword [0x5ac1c8], 0
je 0x4dde4c
mov eax, dword [0x5b6e80]
test eax, eax
je 0x4dde1a
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 0x4dde6a
push eax
call dword [0x5ac220]
add esp, 4
jmp 0x4dde6a
push ebx
call dword [0x5ac1ec]
add esp, 4
jmp 0x4dde6a
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.0048e2e0
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x118], ebx
jle 0x4dded6
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x4ddecd
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ddec4
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.0048cb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ddecd
push edx
call fcn.0051ff80
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x118]
jl 0x4dde74
xor ebx, ebx
cmp dword [ebp - 0xf8], ebx
jle 0x4ddf42
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x4ddf39
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ddf30
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.0048cb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ddf39
push edx
call fcn.0051ff80
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xf8]
jl 0x4ddee0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xec]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048bb19
mov esp, ebp
pop ebp
ret