Function at 0x4dc860
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 0x4dc8e2
lea eax, [ecx + 7]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048babc
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 0x4dc8f8
xor edi, edi
jmp 0x4dc91e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4dc903
xor edi, edi
jmp 0x4dc914
cmp eax, esi
jne 0x4dc911
mov eax, dword [ebp + 0x18]
lea edi, [eax - 2]
add edi, esi
jmp 0x4dc917
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 0x4dc947
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4dc95b
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 0x4dc9b9
push 0x595f14
push 0x103c6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
add esp, 0x14
mov edx, 0xb
jmp 0x4dca4d
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 0x4dca53
mov edx, dword [ebp - 0x104]
mov eax, dword [edx + 8]
mov dword [ebp + edi - 0x24], eax
cmp byte [eax], 0
jne 0x4dca4b
mov ecx, dword [edx + 8]
cmp ebx, dword [ecx + 4]
je 0x4dca1d
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.004df0e0
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
test edx, edx
je 0x4dca4b
mov eax, dword [ebp + edi - 0x24]
test eax, eax
je 0x4dca53
push eax
call fcn.004fc010
mov edx, dword [ebp - 0xec]
add esp, 4
jmp 0x4dca53
xor edx, edx
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4dde08
mov eax, dword [ebp + edi - 0x24]
cmp dword [eax + 0x14], edx
jge 0x4dca89
push eax
call fcn.004de6b0
mov edx, eax
add esp, 4
mov dword [ebp - 0xec], edx
mov dword [ebp - 0x100], edx
test edx, edx
jne 0x4dcbe2
mov ecx, esi
sub edi, 4
dec esi
test ecx, ecx
je 0x4dcc2c
mov ebx, dword [ebp - 0x114]
mov dl, byte [ebx + 0xc]
test dl, dl
je 0x4dcaf1
mov eax, dword [ebp - 0x128]
movzx ecx, word [ebx + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x4dcaf1
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 0x4dc980
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 0x4dcbb7
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 0x4dcbee
push dword [ebp - 0xfc]
mov eax, dword [ebp - 0x148]
push ecx
add eax, edx
push eax
call fcn.0048d780
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 0x4dcbbd
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.004e6360
add esp, 0x10
jmp 0x4dc980
lea eax, [esi*4]
jmp 0x4dde0b
push 0x595f14
push 0x1191f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
push dword [ebp - 0x110]
lea eax, [ebp - 0x24]
mov dword [ebp - 0xec], 0xb
push 0
push eax
call fcn.0048e280
add esp, 0x20
jmp 0x4dde1a
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.0051c8d0
add esp, 8
mov dword [ebp - 0xdc], eax
test eax, eax
jne 0x4dcc80
mov dword [ebp - 0xec], 7
jmp 0x4dde1a
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 0x4dcf26
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 0x4dd15a
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.0048e280
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x4dcde7
movzx edx, word [edi + 0x1c]
cmp dword [ebp - 0x104], edx
jb 0x4dd142
test edx, edx
je 0x4dcdae
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 0x4dcd70
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 0x4dcde7
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 0x4dcdc3
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 0x4dce34
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 0x4dce00
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 0x4dcf13
cmp byte [ebp - 0xe5], 0
jne 0x4dcf13
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.0048d780
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 0x4dcedc
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4dcf06
cmp word [esi + edx*2], 4
jae 0x4dcf06
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 0x4dcef0
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 0x4dccd0
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 0x4dd05b
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 0x4dcf97
cmp ecx, dword [ebp + ebx*4 - 0xc0]
jne 0x4dcf97
dec ebx
mov dword [ebp - 0xf0], ebx
cmp byte [ebp - 0xe5], 0
jne 0x4dcfc1
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 0x4dd035
lea ebx, [esi + 0x24]
jmp 0x4dcff0
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 0x4dcff0
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 0x4dcf61
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 0x4dd310
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 0x4dd1af
lea esp, [esp]
cmp eax, edx
jl 0x4dd0c6
lea edx, [eax + 1]
mov dword [ebp - 0xf4], edx
cmp edx, 5
jg 0x4dd2b6
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 0x4dd0fb
lea eax, [ebp - 0xe4]
push ebx
push eax
call fcn.004e3020
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 0x4dd189
cmp esi, dword [ebp - 0xe4]
jge 0x4dd187
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dd134
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3020
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10c]
movzx eax, ax
add eax, 2
jmp 0x4dd189
push 0x1197a
call fcn.0050ab40
add esp, 4
mov dword [ebp - 0xec], eax
jmp 0x4ddda4
push 0x595f14
push 0x11962
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4ddda4
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 0x4dd0a0
mov esi, dword [ebp + ecx - 0x60]
cmp esi, ebx
jge 0x4dd257
mov edx, dword [ebp - 0xd8]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dd1e9
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3020
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 0x4dd28f
inc esi
mov dword [ebp + ecx - 0x4c], edi
cmp byte [ebp - 0xe5], 0
mov dword [ebp + ecx - 0x60], esi
jne 0x4dd245
cmp esi, ebx
jge 0x4dd243
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x4dd235
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3020
mov edx, dword [ebp - 0xd8]
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10c]
movzx eax, ax
add eax, 2
jmp 0x4dd245
xor eax, eax
sub dword [ebp + ecx - 0x48], eax
cmp esi, ebx
jl 0x4dd1c1
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 0x4dd310
mov esi, dword [ebp - 0x120]
jmp 0x4dd090
cmp esi, ebx
jge 0x4dd251
cmp dword [ebp - 0xfc], 0
jbe 0x4dd2a2
mov eax, dword [ebp + ecx - 0x64]
jmp 0x4dd2a4
xor eax, eax
cmp esi, eax
jle 0x4dd2e3
mov eax, dword [ebp - 0xf0]
mov edx, dword [ebp - 0xf4]
jmp 0x4dd25f
push 0x595f14
push 0x119df
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4ddda4
push 0x595f14
push 0x11a00
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4ddda4
lea eax, [edx - 1]
mov ecx, eax
mov dword [ebp - 0x10c], eax
test ecx, ecx
jle 0x4dd4c3
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 0x4dd38f
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.004e3020
add esp, 8
mov ebx, dword [ebp - 0xfc]
jmp 0x4dd3a0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x130], esi
cmp word [eax + esi*2], 0
jne 0x4dd3c9
lea eax, [ebp - 0xe4]
push esi
push eax
call fcn.004e3020
add esp, 8
test edi, edi
je 0x4dd41f
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp - 0x110]
mov edx, eax
jne 0x4dd471
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 0x4dd471
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 0x4dd3a0
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 0x4dd4a8
mov esi, dword [ebp - 0x104]
lea eax, [ecx*4]
mov eax, dword [eax + esi - 4]
jmp 0x4dd4aa
xor eax, eax
cmp edx, eax
jle 0x4dd524
dec ecx
mov dword [ebp - 0x10c], ecx
test ecx, ecx
jg 0x4dd323
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 0x4dd670
nop
cmp esi, dword [ebp - 0x118]
jge 0x4dd5a6
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 0x4dd555
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4dd555
cmp dword [edx + 0x60], 0
je 0x4dd551
push ecx
call fcn.00545760
jmp 0x4dd57d
push 0x595f14
push 0x11a2a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4ddda4
xor eax, eax
jmp 0x4dd580
mov eax, dword [edx + 0x28]
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4dd586
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4dd578
call fcn.004f7200
jmp 0x4dd57d
call fcn.004f84e0
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 0x4ddda4
jmp 0x4dd65c
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.004d9db0
add esp, 0x14
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x100], eax
test eax, eax
jne 0x4ddda4
push dword [ebp - 0x110]
mov edi, dword [ebp - 0x104]
push edi
call fcn.0055a700
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 0x4dd64a
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.004fa9f0
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x4ddda4
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 0x4dd4e0
jmp 0x4dd672
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x4dd6c7
jmp 0x4dd680
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 0x4dd6c2
jmp 0x4dd6b0
cmp dword [ebp + eax*4 - 0xa0], edx
je 0x4dd840
inc eax
cmp eax, ecx
jl 0x4dd6b0
inc ecx
cmp ecx, edi
jl 0x4dd680
xor ebx, ebx
mov dword [ebp - 0x104], ebx
test edi, edi
jle 0x4dd77b
xor esi, esi
lea ecx, [esi + 1]
cmp edi, ecx
jle 0x4dd710
mov ebx, dword [ebp - 0xf8]
xor edi, edi
jmp 0x4dd6f0
lea edx, [ecx*4]
mov eax, dword [ebp + edx - 0x74]
cmp eax, dword [ebp + edi - 0x74]
jae 0x4dd705
mov esi, ecx
mov edi, edx
inc ecx
cmp ecx, ebx
jl 0x4dd6f0
mov ebx, dword [ebp - 0x104]
mov edi, dword [ebp + esi*4 - 0x74]
mov dword [ebp + esi*4 - 0x74], 0xffffffff
cmp esi, ebx
je 0x4dd766
jle 0x4dd745
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.0051fe90
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.0051fe90
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 0x4dd6d7
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 0x4dd7bc
mov ecx, dword [ebp - 0x118]
cmp ecx, edi
je 0x4dd7bc
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 0x4dda03
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 0x4dda06
mov eax, esi
mov dword [ebp - 0x104], edx
mov dword [ebp - 0xf4], eax
jmp 0x4dd810
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + edx*4]
mov dword [ebp - 0xfc], ecx
cmp edx, ebx
jne 0x4dd88a
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
mov dword [ebp - 0xc], eax
inc edi
cmp edi, dword [ebp - 0xf8]
jge 0x4dd86d
mov esi, dword [ebp + edi*4 - 0x38]
jmp 0x4dd871
push 0x595f14
push 0x11a74
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4ddda4
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 0x4dd831
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x104]
cmp edx, dword [ebp + ecx - 0x60]
mov ecx, dword [ebp - 0xfc]
jne 0x4dd8c9
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 0x4dd9f0
cmp edi, dword [ebp - 0xf8]
jge 0x4dd8f1
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0xa0]
mov eax, dword [ebp - 0xf4]
jne 0x4dd8f1
cmp ecx, dword [esi + 0x38]
jb 0x4dd8f1
cmp ecx, dword [esi + 0x3c]
jb 0x4dd9f0
cmp word [ebp - 0x12c], 0
mov edx, dword [ebp - 0xf0]
jne 0x4dd932
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.004fa9f0
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 0x4dd954
push edx
lea eax, [ebp - 0xe4]
push eax
call fcn.004e3020
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0xf4]
cmp ax, word [ecx + 0x10]
jbe 0x4dd9d6
cmp dword [ebp - 0xec], 0
jne 0x4ddda4
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 0x4dd9e4
mov edx, dword [esi + 0x3c]
mov ecx, dword [ebp - 0xfc]
cmp edx, ecx
jb 0x4dd9a0
add eax, ecx
cmp edx, eax
jb 0x4dda77
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.004fa9f0
mov eax, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], eax
jmp 0x4dd9dc
mov eax, dword [ebp - 0xec]
test eax, eax
jne 0x4ddda4
mov eax, dword [ebp - 0xf4]
mov edx, dword [ebp - 0xf0]
inc edx
mov dword [ebp - 0xf0], edx
cmp edx, dword [ebp - 0xe4]
jl 0x4dd810
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0xf8]
xor edi, edi
dec eax
test eax, eax
jle 0x4ddb9e
jmp 0x4dda20
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 0x4ddaa4
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4ddb47
push 0x595f14
push 0x100ae
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d83d0
add esp, 0x14
mov dword [ebp - 0xec], 0xb
jmp 0x4ddda4
cmp byte [ebp - 0xe5], 0
je 0x4ddb2c
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 0x4ddb1a
jb 0x4ddadf
cmp ecx, 0x7f
ja 0x4ddaf0
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4ddb47
test edx, edx
ja 0x4ddb1a
jb 0x4ddafe
cmp ecx, 0x3fff
ja 0x4ddb1a
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 0x4ddb47
push edx
push ecx
push ebx
call fcn.004fb0e0
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4ddb47
sub esi, 4
cmp eax, 4
jne 0x4ddb4d
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.004f0640
mov esi, dword [ebp - 0x100]
add esp, 0x1c
mov dword [ebp - 0xec], esi
test esi, esi
jne 0x4ddda4
mov eax, dword [ebp - 0xf8]
inc edi
dec eax
cmp edi, eax
jl 0x4dda20
mov esi, dword [ebp - 0x38]
mov edi, 1
sub edi, dword [ebp - 0xf8]
mov dword [ebp - 0x124], edi
cmp edi, dword [ebp - 0xf8]
jge 0x4ddc93
jmp 0x4ddbc0
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 0x4ddc7d
test edi, edi
jns 0x4ddbec
mov eax, dword [ebp + ecx*4 - 0x90]
cmp eax, dword [ebp + ecx*4 - 0x64]
jl 0x4ddc7d
test ecx, ecx
jne 0x4ddbf9
mov esi, dword [ebp - 0x60]
xor eax, eax
xor edx, edx
jmp 0x4ddc30
cmp ecx, dword [ebp - 0x118]
jge 0x4ddc15
xor eax, eax
cmp byte [ebp - 0xe5], al
sete al
add eax, dword [ebp + ecx*4 - 0x90]
jmp 0x4ddc1b
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.004e6540
mov ecx, eax
add esp, 0x14
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x100], ecx
test ecx, ecx
jne 0x4ddda4
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 0x4ddbc0
mov esi, dword [ebp - 0x38]
cmp dword [ebp + 0x14], 0
je 0x4ddd00
mov ebx, dword [ebp - 0x114]
cmp word [ebx + 0x18], 0
jne 0x4ddd00
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x4ddd00
push 0xffffffffffffffff
push esi
call fcn.004e5740
mov dword [ebp - 0x100], eax
lea eax, [ebp - 0x100]
push eax
push ebx
push dword [ebp - 0x38]
call fcn.004e4c30
mov ecx, dword [ebp - 0x100]
add esp, 0x14
mov dword [ebp - 0xec], ecx
test ecx, ecx
jne 0x4ddd6b
mov eax, dword [ebp - 0x38]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ed210
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0xec], ecx
jmp 0x4ddd6b
mov ecx, dword [ebp - 0x108]
cmp byte [ecx + 0x11], 0
je 0x4ddd65
cmp word [ebp - 0x12c], 0
mov edi, dword [ebp - 0xf8]
jne 0x4ddd5d
xor esi, esi
test edi, edi
jle 0x4ddd5d
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.004fa9f0
mov ecx, dword [ebp - 0x108]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4ddd22
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xec], ecx
jmp 0x4ddd71
mov ecx, dword [ebp - 0xec]
jmp 0x4ddd71
mov ecx, dword [ebp - 0xec]
mov edi, dword [ebp - 0xf8]
mov ebx, dword [ebp - 0x118]
mov esi, edi
cmp edi, ebx
jge 0x4ddda4
lea ecx, [ecx]
mov eax, dword [ebp + esi*4 - 0x24]
test ecx, ecx
jne 0x4ddd99
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ed210
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, ebx
jl 0x4ddd80
mov dword [ebp - 0xec], ecx
mov ebx, dword [ebp - 0xdc]
test ebx, ebx
je 0x4dde1a
cmp dword [0x5ac1c8], 0
je 0x4dddfc
mov eax, dword [0x5b6e80]
test eax, eax
je 0x4dddca
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 0x4dde1a
push eax
call dword [0x5ac220]
add esp, 4
jmp 0x4dde1a
push ebx
call dword [0x5ac1ec]
add esp, 4
jmp 0x4dde1a
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.0048e280
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x118], ebx
jle 0x4dde86
mov edx, dword [ebp + ebx*4 - 0x24]
test edx, edx
je 0x4dde7d
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4dde74
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.0048cab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4dde7d
push edx
call fcn.0051ff30
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x118]
jl 0x4dde24
xor ebx, ebx
cmp dword [ebp - 0xf8], ebx
jle 0x4ddef2
mov edx, dword [ebp + ebx*4 - 0x38]
test edx, edx
je 0x4ddee9
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ddee0
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.0048cab0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ddee9
push edx
call fcn.0051ff30
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xf8]
jl 0x4dde90
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xec]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048babc
mov esp, ebp
pop ebp
ret