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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x7c], 0
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0xf0], 0
mov byte [ebp - 0xec], 0
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x28], eax
jne 0x4bff2d
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, word [ebx + 0x18]
movzx edx, byte [ebx + 0xc]
push esi
push edi
lea edi, [edx + ecx]
cmp edi, 2
jae 0x4bff43
xor esi, esi
jmp 0x4bff69
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4bff4e
xor esi, esi
jmp 0x4bff5f
cmp eax, edi
jne 0x4bff5c
mov eax, dword [ebp + 0x18]
lea esi, [eax - 2]
add esi, edi
jmp 0x4bff62
lea esi, [eax - 1]
mov eax, dword [ebp + 0x18]
mov edi, 2
sub edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], eax
mov eax, esi
sub eax, edx
mov dword [ebp - 0x58], edi
lea edx, [eax + edi]
cmp edx, ecx
jne 0x4bff89
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4bff9d
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 ebx, [edi*4]
mov dword [ebp - 0x50], ecx
mov eax, dword [ecx]
bswap eax
mov dword [ebp - 0x24], eax
mov esi, eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x28]
cmp esi, dword [eax + 0x2c]
jbe 0x4bffe9
push 0x58dd34
push 0x102e0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
mov esi, 0xb
add esp, 0x14
mov dword [ebp - 8], esi
jmp 0x4c006e
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push 0
push ecx
push esi
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c006b
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
mov dword [ebp + ebx - 0x4c], eax
cmp byte [eax], 0
jne 0x4c0064
mov ecx, dword [edx + 8]
cmp esi, dword [ecx + 4]
je 0x4c003f
mov eax, dword [edx + 4]
cmp esi, 1
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], esi
mov byte [ecx + 9], al
mov eax, dword [ebp + ebx - 0x4c]
push eax
call fcn.004c23c0
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
je 0x4c0064
mov eax, dword [ebp + ebx - 0x4c]
test eax, eax
je 0x4c006e
push eax
call fcn.004dbca0
add esp, 4
jmp 0x4c006e
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x4c006e
mov esi, dword [ebp - 8]
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4c1178
mov eax, dword [ebp + ebx - 0x4c]
cmp dword [eax + 0x14], esi
jge 0x4c009b
push eax
call fcn.004c1990
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4c01af
mov ecx, edi
sub ebx, 4
dec edi
test ecx, ecx
je 0x4c01f4
mov esi, dword [ebp + 8]
mov dl, byte [esi + 0xc]
test dl, dl
je 0x4c00f7
mov ecx, dword [ebp - 0x38]
movzx eax, word [esi + 0x1c]
add ecx, edi
cmp ecx, eax
jne 0x4c00f7
mov eax, dword [esi + 0x24]
push eax
mov dword [ebp + ebx - 0xfc], eax
mov esi, dword [eax]
mov eax, dword [ebp + 8]
bswap esi
push eax
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x4c]
mov dword [ebp - 0x5c], esi
call eax
movzx eax, ax
add esp, 8
mov dword [ebp + ebx - 0xd4], eax
mov eax, dword [ebp + 8]
mov byte [eax + 0xc], 0
jmp 0x4bffb6
mov ecx, dword [ebp - 0x38]
movzx eax, dl
sub ecx, eax
mov eax, dword [esi + 0x40]
add ecx, edi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [esi + 0x1a]
mov esi, dword [esi + 0x38]
movzx ecx, cx
and ecx, eax
add esi, ecx
push esi
mov dword [ebp + ebx - 0xfc], esi
mov eax, dword [esi]
bswap eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax + 0x4c]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov dword [ebp + ebx - 0xd4], edx
test byte [eax + 0x16], 0xc
je 0x4c018a
mov eax, dword [ebp + 8]
mov ecx, esi
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
mov edx, dword [ebp - 0x28]
cmp eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x18]
jg 0x4c01bb
mov eax, dword [ebp + 0x10]
push edx
add eax, ecx
push esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
mov edx, dword [ebp - 0x18]
sub esi, dword [eax + 0x38]
add esi, dword [ebp + 0x10]
mov dword [ebp + ebx - 0xfc], esi
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
push eax
push edx
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0xc]
sub ecx, eax
add ecx, edi
push ecx
push edx
call fcn.004c8f10
mov esi, dword [ebp - 0x30]
add esp, 0x10
jmp 0x4bffb6
lea eax, [edi*4]
jmp 0x4c117b
push 0x58dd34
push 0x1182d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
lea eax, [ebx + 4]
mov dword [ebp - 8], 0xb
push eax
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x20
jmp 0x4c118a
mov eax, dword [ebp - 0x28]
mov esi, dword [eax + 0x20]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, dword [ebp - 0x2c]
add edi, 3
and edi, 0xfffffffc
lea ebx, [edi + edi*2]
lea eax, [esi + ebx*2]
cdq
push edx
push eax
call fcn.004f9810
mov esi, eax
add esp, 8
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x4c023f
mov dword [ebp - 8], 7
jmp 0x4c118a
mov ecx, dword [ebp - 0x4c]
lea eax, [esi + edi*4]
mov dword [ebp - 0xb4], eax
lea eax, [esi + ebx*2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xbc], ecx
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [ebp - 0x40], eax
mov al, byte [ecx + 3]
mov byte [ebp - 1], al
movzx eax, al
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x2c], eax
jle 0x4c04aa
nop
shl eax, 2
mov dword [ebp - 0x54], eax
mov ebx, dword [ebp + eax - 0x4c]
mov dword [ebp - 0x30], ebx
movzx eax, word [ebx + 0x1a]
mov edi, dword [ebx + 0x38]
mov ecx, eax
movzx esi, word [ebx + 0x12]
movzx edx, word [ebx + 0x18]
add esi, edi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x14], edi
mov ecx, dword [eax + 0x38]
mov al, byte [edi]
mov dword [ebp - 0x18], esi
cmp al, byte [ecx]
jne 0x4c068a
movzx eax, byte [ebx + 0xc]
mov ecx, dword [ebp - 0xb4]
add eax, edx
add eax, eax
push eax
mov eax, dword [ebp - 0xc0]
push 0
lea eax, [ecx + eax*2]
push eax
call sub.msvcrt.dll_memset
mov al, byte [ebx + 0xc]
add esp, 0xc
test al, al
je 0x4c036f
movzx edx, word [ebx + 0x1c]
cmp dword [ebp - 0x74], edx
jb 0x4c0675
test edx, edx
je 0x4c033c
mov ebx, dword [ebp - 0x78]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, bx
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0xc0]
add ecx, edi
mov edi, dword [ebp - 0xb8]
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0xc0], eax
sub edx, 1
jne 0x4c0301
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov al, byte [ebx + 0xc]
xor edx, edx
test al, al
je 0x4c036f
mov edi, dword [ebp - 0xc0]
lea ecx, [ebx + 0x24]
mov esi, dword [ebp - 0xb8]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + edi*4], eax
inc edx
movzx eax, byte [ebx + 0xc]
inc edi
cmp edx, eax
jl 0x4c0351
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0xc0], edi
mov edi, dword [ebp - 0x14]
movzx eax, word [ebx + 0x12]
xor edx, edx
movzx ecx, word [ebx + 0x18]
add eax, edi
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x4c03cd
mov ebx, dword [ebp - 0x14]
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [ebp - 0x80]
movzx eax, ax
movzx ecx, cx
and ecx, eax
mov eax, dword [ebp - 0xc0]
add ecx, ebx
mov ebx, dword [ebp - 0xb8]
mov dword [ebx + eax*4], ecx
inc eax
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0xc0], eax
cmp edx, edi
jb 0x4c0393
mov ebx, dword [ebp - 0x30]
jmp 0x4c03d3
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0x54]
mov dword [ebp + edx - 0x128], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x58]
jge 0x4c049d
cmp byte [ebp - 1], 0
jne 0x4c049d
mov ecx, dword [ebp - 0xc0]
mov esi, dword [ebp - 0xb4]
movzx eax, word [ebp + edx - 0xd4]
mov edi, dword [ebp - 0x34]
push eax
push dword [ebp + edx - 0xfc]
mov word [esi + ecx*2], ax
mov esi, dword [ebp - 0x20]
add esi, edi
add edi, eax
push esi
mov dword [ebp - 0x34], edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x40]
add esp, 0xc
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xb4]
movzx eax, ax
add eax, esi
mov esi, dword [ebp - 0xb8]
mov dword [esi + ecx*4], eax
mov eax, ecx
mov ecx, dword [ebp - 0x40]
sub word [edx + eax*2], cx
cmp byte [ebx + 8], 0
jne 0x4c046e
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebx + 0x38]
mov ecx, dword [esi + ecx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc0]
jmp 0x4c0493
cmp word [edx + eax*2], 4
jae 0x4c0493
mov ecx, dword [ebp - 0x20]
nop dword [eax + eax]
mov byte [ecx + edi], 0
inc edi
inc word [edx + eax*2]
cmp word [edx + eax*2], 4
jb 0x4c0480
mov dword [ebp - 0x34], edi
inc eax
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x2c]
jl 0x4c0280
mov eax, dword [ebp - 0x40]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [ebp - 0x28]
add edi, 0xfffffff4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [eax + 0x24]
add edi, eax
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x2c], ecx
jle 0x4c0591
mov esi, dword [ebp + ebx*4 - 0x4c]
mov edx, dword [ebp + ebx*4 - 0x128]
mov dword [ebp - 0x54], edx
mov eax, dword [esi + 0x3c]
mov dword [ebp + ecx*4 - 0xb0], eax
mov dword [ebp + ecx*4 - 0x98], edx
test ecx, ecx
je 0x4c0501
cmp edx, dword [ebp + ecx*4 - 0x9c]
jne 0x4c0501
dec ecx
mov dword [ebp - 0x14], ecx
cmp byte [ebp - 1], 0
jne 0x4c0522
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + 0x3c]
mov dword [ebp + ecx*4 - 0xb0], eax
lea eax, [edx + 1]
mov dword [ebp + ecx*4 - 0x98], eax
sub edi, dword [esi + 0x14]
lea eax, [ebp - 0xd4]
cmp byte [esi + 0xc], 0
lea eax, [eax + ebx*4]
mov dword [ebp - 0x58], eax
mov dword [eax], edi
mov dword [ebp - 0x20], 0
jbe 0x4c0576
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [ebp - 0x20]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [ebp - 0x20], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4c0543
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x18]
mov dword [eax], edi
mov edi, dword [ebp - 0x34]
inc ecx
mov dword [ebp + ebx*4 - 0xe8], edx
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
cmp ebx, dword [ebp - 0x2c]
jl 0x4c04d1
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0
test ecx, ecx
jle 0x4c0819
mov ecx, dword [ebp - 0xc0]
mov ebx, 1
xor edx, edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edx
nop dword [eax + eax]
mov esi, dword [ebp + edx - 0xd4]
cmp esi, edi
jle 0x4c06d9
nop
cmp ebx, eax
jl 0x4c05fc
lea eax, [ebx + 1]
mov dword [ebp - 0x10], eax
cmp eax, 5
jg 0x4c07c5
mov dword [ebp + edx - 0xd0], 0
mov esi, dword [ebp + edx - 0xd4]
mov dword [ebp + edx - 0xe4], ecx
mov edi, dword [ebp + edx - 0xe8]
mov ecx, dword [ebp - 0xb4]
lea ebx, [edi - 1]
movzx eax, word [ecx + ebx*2]
test ax, ax
jne 0x4c0631
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.004c5d40
mov edx, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0xb4]
movzx eax, ax
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [ebp - 1], 0
mov dword [ebp + edx - 0xd4], esi
jne 0x4c06b6
cmp edi, dword [ebp - 0xc0]
jge 0x4c06b4
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x4c066a
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.004c5d40
add esp, 8
movzx eax, ax
mov edx, dword [ebp - 0x14]
movzx eax, ax
add eax, 2
jmp 0x4c06b6
push 0x11888
call fcn.004e8980
add esp, 4
mov dword [ebp - 8], eax
jmp 0x4c1114
push 0x58dd34
push 0x11870
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c1114
xor eax, eax
add dword [ebp + edx - 0xd0], eax
mov ecx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x10]
mov dword [ebp + edx - 0xe8], ebx
mov ebx, dword [ebp - 0x18]
cmp esi, dword [ebp - 0x34]
jg 0x4c05d0
mov edi, dword [ebp + edx - 0xe8]
cmp edi, ecx
jge 0x4c0785
nop dword [eax + eax]
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4c071b
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.004c5d40
mov ecx, dword [ebp - 0xc0]
add esp, 8
mov edx, dword [ebp - 0x14]
movzx eax, ax
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [ebp - 0x34]
jg 0x4c07a7
inc edi
mov dword [ebp + edx - 0xd4], esi
cmp byte [ebp - 1], 0
mov dword [ebp + edx - 0xe8], edi
jne 0x4c0776
cmp edi, ecx
jge 0x4c0774
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4c0769
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.004c5d40
mov ecx, dword [ebp - 0xc0]
add esp, 8
movzx eax, ax
mov edx, dword [ebp - 0x14]
movzx eax, ax
add eax, 2
jmp 0x4c0776
xor eax, eax
sub dword [ebp + edx - 0xd0], eax
cmp edi, ecx
jl 0x4c06f0
mov eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x30]
add edx, 4
inc edi
mov dword [ebp - 0x14], edx
inc ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x18], ebx
cmp edi, eax
jge 0x4c0819
mov edi, dword [ebp - 0x34]
jmp 0x4c05c0
cmp edi, ecx
jge 0x4c0785
cmp dword [ebp - 0x30], 0
jle 0x4c07ba
mov eax, dword [ebp + edx - 0xec]
jmp 0x4c07bc
xor eax, eax
cmp edi, eax
jle 0x4c07ef
mov eax, dword [ebp - 0x10]
jmp 0x4c078a
push 0x58dd34
push 0x118ed
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c1114
push 0x58dd34
push 0x1190e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c1114
dec eax
mov ecx, eax
mov dword [ebp - 0x30], eax
test ecx, ecx
jle 0x4c096e
nop word [eax + eax]
shl ecx, 2
lea eax, [ebp - 0xd4]
add eax, ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x78], eax
mov edi, dword [eax]
lea eax, [ebp + ecx - 0xd8]
mov dword [ebp - 0x74], eax
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xe8]
sub eax, 4
mov dword [ebp - 0x20], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [ebp - 0xb4]
lea esi, [ebx - 1]
mov eax, esi
sub eax, dword [ebp - 0x3c]
inc eax
cmp word [ecx + eax*2], 0
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x18], ecx
jne 0x4c0890
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.004c5d40
add esp, 8
nop dword [eax]
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], esi
cmp word [eax + esi*2], 0
jne 0x4c08b3
lea eax, [ebp - 0xc0]
push esi
push eax
call fcn.004c5d40
add esp, 8
test edi, edi
je 0x4c08f3
cmp dword [ebp + 0x18], 0
mov edx, ebx
jne 0x4c0937
mov ecx, dword [ebp - 0x10]
mov eax, 2
dec ecx
cmp dword [ebp - 0x30], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4c0937
mov edx, dword [ebp - 0x18]
mov ecx, 0xfffffffe
mov ebx, dword [ebp - 0x20]
movzx eax, word [edx]
sub edx, 2
add eax, 2
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x80]
add edi, eax
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [ebp - 0x14]
add eax, ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [ebp - 0x54]
jns 0x4c0890
jmp 0x4c093a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x78]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x74]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, 1
jle 0x4c095c
mov ebx, dword [ebp - 0x20]
lea eax, [ecx*4]
mov eax, dword [eax + ebx - 4]
jmp 0x4c095e
xor eax, eax
cmp edx, eax
jle 0x4c09ce
dec ecx
mov dword [ebp - 0x30], ecx
test ecx, ecx
jg 0x4c0830
mov eax, dword [ebp - 0x4c]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx ebx, byte [eax]
lea eax, [esi + 1]
mov dword [ebp - 0x3c], ebx
cmp dword [ebp - 0x10], esi
jle 0x4c0ad6
nop dword [eax + eax]
cmp esi, dword [ebp - 0x2c]
jge 0x4c0a3e
mov eax, dword [ebp + esi*4 - 0x4c]
mov dword [ebp + esi*4 - 0x70], eax
mov dword [ebp + esi*4 - 0x4c], 0
mov dword [ebp - 0x20], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4c09fc
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4c09fc
cmp dword [edx + 0x60], 0
je 0x4c09f8
push ecx
call fcn.0051da20
jmp 0x4c0a21
push 0x58dd34
push 0x11938
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c1114
xor eax, eax
jmp 0x4c0a24
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c0a27
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4c0a1c
call fcn.004d7930
jmp 0x4c0a21
call fcn.004d8ae0
add esp, 4
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0xc]
inc edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], edi
test eax, eax
jne 0x4c1114
jmp 0x4c0ac5
cmp dword [ebp + 0x18], 0
mov ecx, dword [ebp - 0x24]
push 0
cmovne ecx, eax
lea eax, [ebp - 0x5c]
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call fcn.004bddc0
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4c1114
mov edi, dword [ebp - 0x20]
push ebx
push edi
call fcn.00530f60
mov ecx, dword [ebp - 0x28]
add esp, 8
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc0]
mov dword [ebp + esi*4 - 0x70], edi
cmp byte [ecx + 0x11], 0
mov dword [ebp + esi*4 - 0x128], eax
je 0x4c0abc
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.004da910
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c1114
mov eax, dword [ebp - 0x5c]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
inc esi
mov eax, 1
cmp esi, dword [ebp - 0x10]
jl 0x4c0990
jmp 0x4c0ad8
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x4c0b27
nop
mov eax, dword [ebp + ecx*4 - 0x70]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [ebp + ecx*4 - 0x13c], edx
mov dword [ebp + ecx*4 - 0x110], edx
mov ax, word [eax + 0x1c]
mov word [ebp + ecx*2 - 0xfc], ax
xor eax, eax
test ecx, ecx
jle 0x4c0b22
nop word [eax + eax]
cmp dword [ebp + eax*4 - 0x13c], edx
je 0x4c0c6c
inc eax
cmp eax, ecx
jl 0x4c0b10
inc ecx
cmp ecx, edi
jl 0x4c0ae0
mov ecx, dword [ebp - 0xc]
xor edi, edi
test ecx, ecx
jle 0x4c0bc8
mov ebx, ecx
xor esi, esi
lea edx, [esi + 1]
cmp ebx, edx
jle 0x4c0b5a
nop
mov eax, dword [ebp + edx*4 - 0x110]
mov ecx, edx
cmp eax, dword [ebp + esi*4 - 0x110]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, ebx
jl 0x4c0b40
mov ebx, dword [ebp + esi*4 - 0x110]
mov dword [ebp + esi*4 - 0x110], 0xffffffff
cmp esi, edi
je 0x4c0bb6
jle 0x4c0b92
mov eax, dword [ebp - 0x28]
xor edx, edx
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp + esi*4 - 0x70]
inc ecx
add ecx, esi
push ecx
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], dx
call fcn.004fc9b0
add esp, 8
mov eax, dword [ebp + edi*4 - 0x70]
push ebx
mov ecx, dword [eax + 0x48]
mov ax, word [ebp + esi*2 - 0xfc]
push ecx
mov word [ecx + 0x1c], ax
call fcn.004fc9b0
mov eax, dword [ebp + edi*4 - 0x70]
add esp, 8
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0xc]
inc edi
cmp edi, ebx
jl 0x4c0b36
mov ebx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + ecx*4 - 0x74]
mov edx, dword [ebp - 0x50]
mov eax, dword [eax + 4]
bswap eax
mov dword [edx], eax
test bl, 8
jne 0x4c0bff
mov edx, dword [ebp - 0x2c]
cmp edx, ecx
je 0x4c0bff
lea eax, [ebp - 0x70]
lea esi, [ebp - 0x4c]
cmovge eax, esi
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + ecx*4 - 0x74]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0x11], 0
je 0x4c0de1
mov esi, dword [ebp - 0x70]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x50], 0
movzx edx, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add edx, eax
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0xc0], ebx
jle 0x4c0de4
mov eax, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
mov ecx, dword [ebp - 0xb8]
mov ecx, dword [ecx + ebx*4]
mov dword [ebp - 0x18], ecx
cmp ebx, edx
jne 0x4c0cb6
xor eax, eax
cmp byte [ebp - 1], al
sete al
mov dword [ebp - 0x3c], eax
nop dword [eax + eax]
inc edi
cmp edi, dword [ebp - 0xc]
jge 0x4c0c96
mov esi, dword [ebp + edi*4 - 0x70]
jmp 0x4c0c9a
push 0x58dd34
push 0x11982
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c1114
mov esi, dword [ebp + edi*4 - 0x4c]
movzx eax, word [esi + 0x18]
add eax, dword [ebp - 0x3c]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add edx, ecx
cmp ebx, edx
je 0x4c0c60
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x20]
cmp ebx, dword [ebp + edx - 0xe8]
mov edx, dword [ebp - 0x24]
jne 0x4c0ce3
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
shl eax, 2
cmp byte [ebp - 1], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + eax - 0x70]
mov dword [ebp - 0x10], eax
je 0x4c0dd4
cmp edi, dword [ebp - 0xc]
jge 0x4c0d05
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0x13c]
mov eax, dword [ebp - 0x10]
jne 0x4c0d05
cmp ecx, dword [esi + 0x38]
jb 0x4c0d05
cmp ecx, dword [esi + 0x3c]
jb 0x4c0dd4
cmp word [ebp - 0x40], 0
jne 0x4c0d2b
lea edx, [ebp - 0x1c]
push edx
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [ebp - 0x28]
call fcn.004da910
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4c0d4d
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.004c5d40
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10]
cmp ax, word [ecx + 0x10]
jbe 0x4c0dc3
cmp dword [ebp - 8], 0
jne 0x4c1114
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x18]
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [ebp - 0x104]
add esp, 0xc
cmp eax, dword [ebp - 0x108]
jae 0x4c0dce
mov edx, dword [esi + 0x3c]
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jb 0x4c0d96
add eax, ecx
cmp edx, eax
jb 0x4c0e4b
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x102]
push dword [edx + 4]
mov eax, dword [eax + ecx - 4]
push 3
bswap eax
push eax
push dword [edx + 0x34]
call fcn.004da910
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], eax
jmp 0x4c0dc6
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4c1114
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [ebp - 0xc0]
jl 0x4c0c40
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0xc]
xor edi, edi
dec eax
test eax, eax
jle 0x4c0f55
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + edi*4 - 0xe8]
mov edx, dword [ebp - 0xb8]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [ebp + edi*4 - 0x70]
mov ebx, dword [ebp - 0x7c]
add ebx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x40]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [ebp - 0x24]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x4c0e75
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4c0f16
push 0x58dd34
push 0xffc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b8510
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c1114
cmp byte [ebp - 1], 0
je 0x4c0efe
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [ebp - 0x13c]
mov esi, ebx
mov ecx, dword [ebp - 0x140]
add esp, 0xc
add ebx, 4
test edx, edx
ja 0x4c0eec
jb 0x4c0eb1
cmp ecx, 0x7f
ja 0x4c0ec2
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4c0f16
test edx, edx
ja 0x4c0eec
jb 0x4c0ed0
cmp ecx, 0x3fff
ja 0x4c0eec
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 0x4c0f16
push edx
push ecx
push ebx
call fcn.004dafd0
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4c0f16
sub esi, 4
cmp eax, 4
jne 0x4c0f19
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [ebp - 0x24]
add dword [ebp - 0x7c], edx
lea eax, [ebp - 0x1c]
push eax
push dword [ecx + 4]
mov eax, dword [ebp - 0x38]
push ebx
push edx
push esi
add eax, edi
push eax
push dword [ebp + 8]
call fcn.004d1650
mov esi, dword [ebp - 0x1c]
add esp, 0x1c
mov dword [ebp - 8], esi
test esi, esi
jne 0x4c1114
mov eax, dword [ebp - 0xc]
inc edi
dec eax
cmp edi, eax
jl 0x4c0e00
mov esi, dword [ebp - 0x70]
mov edi, 1
sub edi, dword [ebp - 0xc]
mov dword [ebp + 0x10], edi
cmp edi, dword [ebp - 0xc]
jge 0x4c103a
nop dword [eax]
mov eax, edi
lea ebx, [ebp - 0xf0]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x4c102a
test edi, edi
jns 0x4c0fa2
mov eax, dword [ebp + ecx*4 - 0x12c]
cmp eax, dword [ebp + ecx*4 - 0xec]
jl 0x4c102a
test ecx, ecx
jne 0x4c0fb2
mov esi, dword [ebp - 0xe8]
xor eax, eax
xor edx, edx
jmp 0x4c0fe6
cmp ecx, dword [ebp - 0x2c]
jge 0x4c0fc8
xor eax, eax
cmp byte [ebp - 1], al
sete al
add eax, dword [ebp + ecx*4 - 0x12c]
jmp 0x4c0fce
mov eax, dword [ebp - 0xc0]
mov esi, dword [ebp + ecx*4 - 0xe8]
xor edx, edx
cmp byte [ebp - 1], dl
sete dl
add edx, dword [ebp + ecx*4 - 0xec]
sub esi, edx
lea edi, [ecx*4]
lea ecx, [ebp - 0xc0]
push ecx
push esi
push edx
push eax
push dword [ebp + edi - 0x70]
call fcn.004c90f0
mov ecx, eax
add esp, 0x14
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x4c1114
mov eax, dword [ebp + edi - 0x70]
mov ecx, dword [ebp - 0x34]
sub ecx, dword [ebp + edi - 0xd4]
mov edi, dword [ebp + 0x10]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
inc edi
mov dword [ebp + 0x10], edi
cmp edi, dword [ebp - 0xc]
jl 0x4c0f70
mov esi, dword [ebp - 0x70]
cmp dword [ebp + 0x14], 0
je 0x4c1091
mov ebx, dword [ebp + 8]
cmp word [ebx + 0x18], 0
jne 0x4c1091
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x4c1091
push 0xffffffffffffffff
push esi
call fcn.004c8120
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x70]
call fcn.004c75c0
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4c10e7
mov eax, dword [ebp - 0x70]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ce680
mov ecx, eax
add esp, 0xc
mov dword [ebp - 8], ecx
jmp 0x4c10e7
mov ecx, dword [ebp - 0x28]
cmp byte [ecx + 0x11], 0
je 0x4c10e4
cmp word [ebp - 0x40], 0
mov edi, dword [ebp - 0xc]
jne 0x4c10df
xor esi, esi
test edi, edi
jle 0x4c10df
nop word [eax + eax]
mov eax, dword [ebp + esi*4 - 0x70]
lea edx, [ebp - 0x1c]
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.004da910
mov ecx, dword [ebp - 0x28]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4c10b0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
jmp 0x4c10ea
mov ecx, dword [ebp - 8]
jmp 0x4c10ea
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x2c]
mov esi, edi
cmp edi, ebx
jge 0x4c1114
mov eax, dword [ebp + esi*4 - 0x4c]
test ecx, ecx
jne 0x4c110c
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004ce680
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, ebx
jl 0x4c10f3
mov dword [ebp - 8], ecx
mov ebx, dword [ebp - 0xb8]
test ebx, ebx
je 0x4c118a
cmp dword [0x5b4c38], 0
je 0x4c116c
mov eax, dword [0x5bac60]
test eax, eax
je 0x4c113a
push eax
call dword [0x5b4c88]
add esp, 4
push ebx
call dword [0x5b4c64]
sub dword [0x5bac00], eax
dec dword [0x5bac24]
push ebx
call dword [0x5b4c5c]
mov eax, dword [0x5bac60]
add esp, 8
test eax, eax
je 0x4c118a
push eax
call dword [0x5b4c90]
add esp, 4
jmp 0x4c118a
push ebx
call dword [0x5b4c5c]
add esp, 4
jmp 0x4c118a
lea eax, [ebx + 4]
push eax
lea eax, [ebp - 0x4c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
xor ebx, ebx
cmp dword [ebp - 0x2c], ebx
jle 0x4c11f0
mov edx, dword [ebp + ebx*4 - 0x4c]
test edx, edx
je 0x4c11ea
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4c11e1
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.00533620
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4c11ea
push edx
call fcn.004fca50
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x2c]
jl 0x4c1191
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
jle 0x4c1256
mov edx, dword [ebp + ebx*4 - 0x70]
test edx, edx
je 0x4c1250
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4c1247
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.00533620
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4c1250
push edx
call fcn.004fca50
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x4c11f7
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret