Function at 0x4c1370
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 0x4c13cd
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 0x4c13e3
xor esi, esi
jmp 0x4c1409
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c13ee
xor esi, esi
jmp 0x4c13ff
cmp eax, edi
jne 0x4c13fc
mov eax, dword [ebp + 0x18]
lea esi, [eax - 2]
add esi, edi
jmp 0x4c1402
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 0x4c1429
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4c143d
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 0x4c1489
push 0x58efe4
push 0x102e0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
mov esi, 0xb
add esp, 0x14
mov dword [ebp - 8], esi
jmp 0x4c150e
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 0x4c150b
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
mov dword [ebp + ebx - 0x4c], eax
cmp byte [eax], 0
jne 0x4c1504
mov ecx, dword [edx + 8]
cmp esi, dword [ecx + 4]
je 0x4c14df
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.004c3860
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
test esi, esi
je 0x4c1504
mov eax, dword [ebp + ebx - 0x4c]
test eax, eax
je 0x4c150e
push eax
call fcn.004dd140
add esp, 4
jmp 0x4c150e
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x4c150e
mov esi, dword [ebp - 8]
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4c2618
mov eax, dword [ebp + ebx - 0x4c]
cmp dword [eax + 0x14], esi
jge 0x4c153b
push eax
call fcn.004c2e30
mov esi, eax
add esp, 4
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x4c164f
mov ecx, edi
sub ebx, 4
dec edi
test ecx, ecx
je 0x4c1694
mov esi, dword [ebp + 8]
mov dl, byte [esi + 0xc]
test dl, dl
je 0x4c1597
mov ecx, dword [ebp - 0x38]
movzx eax, word [esi + 0x1c]
add ecx, edi
cmp ecx, eax
jne 0x4c1597
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 0x4c1456
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 0x4c162a
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 0x4c165b
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.004ca3b0
mov esi, dword [ebp - 0x30]
add esp, 0x10
jmp 0x4c1456
lea eax, [edi*4]
jmp 0x4c261b
push 0x58efe4
push 0x1182d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
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 0x4c262a
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.004faca0
mov esi, eax
add esp, 8
mov dword [ebp - 0xb8], esi
test esi, esi
jne 0x4c16df
mov dword [ebp - 8], 7
jmp 0x4c262a
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 0x4c194a
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 0x4c1b2a
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 0x4c180f
movzx edx, word [ebx + 0x1c]
cmp dword [ebp - 0x74], edx
jb 0x4c1b15
test edx, edx
je 0x4c17dc
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 0x4c17a1
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x18], esi
mov al, byte [ebx + 0xc]
xor edx, edx
test al, al
je 0x4c180f
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 0x4c17f1
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 0x4c186d
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 0x4c1833
mov ebx, dword [ebp - 0x30]
jmp 0x4c1873
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 0x4c193d
cmp byte [ebp - 1], 0
jne 0x4c193d
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 0x4c190e
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 0x4c1933
cmp word [edx + eax*2], 4
jae 0x4c1933
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 0x4c1920
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 0x4c1720
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 0x4c1a31
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 0x4c19a1
cmp edx, dword [ebp + ecx*4 - 0x9c]
jne 0x4c19a1
dec ecx
mov dword [ebp - 0x14], ecx
cmp byte [ebp - 1], 0
jne 0x4c19c2
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 0x4c1a16
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 0x4c19e3
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 0x4c1971
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x30], 0
test ecx, ecx
jle 0x4c1cb9
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 0x4c1b79
nop
cmp ebx, eax
jl 0x4c1a9c
lea eax, [ebx + 1]
mov dword [ebp - 0x10], eax
cmp eax, 5
jg 0x4c1c65
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 0x4c1ad1
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.004c71e0
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 0x4c1b56
cmp edi, dword [ebp - 0xc0]
jge 0x4c1b54
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x4c1b0a
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.004c71e0
add esp, 8
movzx eax, ax
mov edx, dword [ebp - 0x14]
movzx eax, ax
add eax, 2
jmp 0x4c1b56
push 0x11888
call fcn.004e9e20
add esp, 4
mov dword [ebp - 8], eax
jmp 0x4c25b4
push 0x58efe4
push 0x11870
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c25b4
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 0x4c1a70
mov edi, dword [ebp + edx - 0xe8]
cmp edi, ecx
jge 0x4c1c25
nop dword [eax + eax]
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4c1bbb
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.004c71e0
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 0x4c1c47
inc edi
mov dword [ebp + edx - 0xd4], esi
cmp byte [ebp - 1], 0
mov dword [ebp + edx - 0xe8], edi
jne 0x4c1c16
cmp edi, ecx
jge 0x4c1c14
mov eax, dword [ebp - 0xb4]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4c1c09
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.004c71e0
mov ecx, dword [ebp - 0xc0]
add esp, 8
movzx eax, ax
mov edx, dword [ebp - 0x14]
movzx eax, ax
add eax, 2
jmp 0x4c1c16
xor eax, eax
sub dword [ebp + edx - 0xd0], eax
cmp edi, ecx
jl 0x4c1b90
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 0x4c1cb9
mov edi, dword [ebp - 0x34]
jmp 0x4c1a60
cmp edi, ecx
jge 0x4c1c25
cmp dword [ebp - 0x30], 0
jle 0x4c1c5a
mov eax, dword [ebp + edx - 0xec]
jmp 0x4c1c5c
xor eax, eax
cmp edi, eax
jle 0x4c1c8f
mov eax, dword [ebp - 0x10]
jmp 0x4c1c2a
push 0x58efe4
push 0x118ed
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c25b4
push 0x58efe4
push 0x1190e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c25b4
dec eax
mov ecx, eax
mov dword [ebp - 0x30], eax
test ecx, ecx
jle 0x4c1e0e
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 0x4c1d30
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.004c71e0
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 0x4c1d53
lea eax, [ebp - 0xc0]
push esi
push eax
call fcn.004c71e0
add esp, 8
test edi, edi
je 0x4c1d93
cmp dword [ebp + 0x18], 0
mov edx, ebx
jne 0x4c1dd7
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 0x4c1dd7
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 0x4c1d30
jmp 0x4c1dda
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 0x4c1dfc
mov ebx, dword [ebp - 0x20]
lea eax, [ecx*4]
mov eax, dword [eax + ebx - 4]
jmp 0x4c1dfe
xor eax, eax
cmp edx, eax
jle 0x4c1e6e
dec ecx
mov dword [ebp - 0x30], ecx
test ecx, ecx
jg 0x4c1cd0
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 0x4c1f76
nop dword [eax + eax]
cmp esi, dword [ebp - 0x2c]
jge 0x4c1ede
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 0x4c1e9c
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4c1e9c
cmp dword [edx + 0x60], 0
je 0x4c1e98
push ecx
call fcn.0051eeb0
jmp 0x4c1ec1
push 0x58efe4
push 0x11938
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c25b4
xor eax, eax
jmp 0x4c1ec4
mov eax, dword [edx + 0x28]
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c1ec7
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4c1ebc
call fcn.004d8dd0
jmp 0x4c1ec1
call fcn.004d9f80
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 0x4c25b4
jmp 0x4c1f65
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.004bf260
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x4c25b4
mov edi, dword [ebp - 0x20]
push ebx
push edi
call fcn.005323e0
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 0x4c1f5c
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.004dbdb0
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], eax
test eax, eax
jne 0x4c25b4
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 0x4c1e30
jmp 0x4c1f78
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x4c1fc7
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 0x4c1fc2
nop word [eax + eax]
cmp dword [ebp + eax*4 - 0x13c], edx
je 0x4c210c
inc eax
cmp eax, ecx
jl 0x4c1fb0
inc ecx
cmp ecx, edi
jl 0x4c1f80
mov ecx, dword [ebp - 0xc]
xor edi, edi
test ecx, ecx
jle 0x4c2068
mov ebx, ecx
xor esi, esi
lea edx, [esi + 1]
cmp ebx, edx
jle 0x4c1ffa
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 0x4c1fe0
mov ebx, dword [ebp + esi*4 - 0x110]
mov dword [ebp + esi*4 - 0x110], 0xffffffff
cmp esi, edi
je 0x4c2056
jle 0x4c2032
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.004fde40
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.004fde40
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 0x4c1fd6
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 0x4c209f
mov edx, dword [ebp - 0x2c]
cmp edx, ecx
je 0x4c209f
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 0x4c2281
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 0x4c2284
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 0x4c2156
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 0x4c2136
mov esi, dword [ebp + edi*4 - 0x70]
jmp 0x4c213a
push 0x58efe4
push 0x11982
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c25b4
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 0x4c2100
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 0x4c2183
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 0x4c2274
cmp edi, dword [ebp - 0xc]
jge 0x4c21a5
mov eax, dword [eax + 4]
cmp eax, dword [ebp + edi*4 - 0x13c]
mov eax, dword [ebp - 0x10]
jne 0x4c21a5
cmp ecx, dword [esi + 0x38]
jb 0x4c21a5
cmp ecx, dword [esi + 0x3c]
jb 0x4c2274
cmp word [ebp - 0x40], 0
jne 0x4c21cb
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.004dbdb0
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 0x4c21ed
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.004c71e0
add esp, 8
movzx eax, ax
mov ecx, dword [ebp - 0x10]
cmp ax, word [ecx + 0x10]
jbe 0x4c2263
cmp dword [ebp - 8], 0
jne 0x4c25b4
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 0x4c226e
mov edx, dword [esi + 0x3c]
mov ecx, dword [ebp - 0x18]
cmp edx, ecx
jb 0x4c2236
add eax, ecx
cmp edx, eax
jb 0x4c22eb
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.004dbdb0
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], eax
jmp 0x4c2266
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4c25b4
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
inc ebx
cmp ebx, dword [ebp - 0xc0]
jl 0x4c20e0
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0xc]
xor edi, edi
dec eax
test eax, eax
jle 0x4c23f5
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 0x4c2315
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x4c23b6
push 0x58efe4
push 0xffc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov dword [ebp - 8], 0xb
jmp 0x4c25b4
cmp byte [ebp - 1], 0
je 0x4c239e
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 0x4c238c
jb 0x4c2351
cmp ecx, 0x7f
ja 0x4c2362
mov eax, 1
and cl, 0x7f
mov byte [ebx], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4c23b6
test edx, edx
ja 0x4c238c
jb 0x4c2370
cmp ecx, 0x3fff
ja 0x4c238c
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 0x4c23b6
push edx
push ecx
push ebx
call fcn.004dc470
add esp, 0xc
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x4c23b6
sub esi, 4
cmp eax, 4
jne 0x4c23b9
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.004d2af0
mov esi, dword [ebp - 0x1c]
add esp, 0x1c
mov dword [ebp - 8], esi
test esi, esi
jne 0x4c25b4
mov eax, dword [ebp - 0xc]
inc edi
dec eax
cmp edi, eax
jl 0x4c22a0
mov esi, dword [ebp - 0x70]
mov edi, 1
sub edi, dword [ebp - 0xc]
mov dword [ebp + 0x10], edi
cmp edi, dword [ebp - 0xc]
jge 0x4c24da
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 0x4c24ca
test edi, edi
jns 0x4c2442
mov eax, dword [ebp + ecx*4 - 0x12c]
cmp eax, dword [ebp + ecx*4 - 0xec]
jl 0x4c24ca
test ecx, ecx
jne 0x4c2452
mov esi, dword [ebp - 0xe8]
xor eax, eax
xor edx, edx
jmp 0x4c2486
cmp ecx, dword [ebp - 0x2c]
jge 0x4c2468
xor eax, eax
cmp byte [ebp - 1], al
sete al
add eax, dword [ebp + ecx*4 - 0x12c]
jmp 0x4c246e
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.004ca590
mov ecx, eax
add esp, 0x14
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
jne 0x4c25b4
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 0x4c2410
mov esi, dword [ebp - 0x70]
cmp dword [ebp + 0x14], 0
je 0x4c2531
mov ebx, dword [ebp + 8]
cmp word [ebx + 0x18], 0
jne 0x4c2531
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x4c2531
push 0xffffffffffffffff
push esi
call fcn.004c95c0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 0x70]
call fcn.004c8a60
mov ecx, dword [ebp - 0x1c]
add esp, 0x14
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4c2587
mov eax, dword [ebp - 0x70]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004cfb20
mov ecx, eax
add esp, 0xc
mov dword [ebp - 8], ecx
jmp 0x4c2587
mov ecx, dword [ebp - 0x28]
cmp byte [ecx + 0x11], 0
je 0x4c2584
cmp word [ebp - 0x40], 0
mov edi, dword [ebp - 0xc]
jne 0x4c257f
xor esi, esi
test edi, edi
jle 0x4c257f
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.004dbdb0
mov ecx, dword [ebp - 0x28]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4c2550
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
jmp 0x4c258a
mov ecx, dword [ebp - 8]
jmp 0x4c258a
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x2c]
mov esi, edi
cmp edi, ebx
jge 0x4c25b4
mov eax, dword [ebp + esi*4 - 0x4c]
test ecx, ecx
jne 0x4c25ac
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004cfb20
add esp, 0xc
mov ecx, eax
inc esi
cmp esi, ebx
jl 0x4c2593
mov dword [ebp - 8], ecx
mov ebx, dword [ebp - 0xb8]
test ebx, ebx
je 0x4c262a
cmp dword [0x5b5c38], 0
je 0x4c260c
mov eax, dword [0x5bbcb0]
test eax, eax
je 0x4c25da
push eax
call dword [0x5b5c88]
add esp, 4
push ebx
call dword [0x5b5c64]
sub dword [0x5bbc50], eax
dec dword [0x5bbc74]
push ebx
call dword [0x5b5c5c]
mov eax, dword [0x5bbcb0]
add esp, 8
test eax, eax
je 0x4c262a
push eax
call dword [0x5b5c90]
add esp, 4
jmp 0x4c262a
push ebx
call dword [0x5b5c5c]
add esp, 4
jmp 0x4c262a
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 0x4c2690
mov edx, dword [ebp + ebx*4 - 0x4c]
test edx, edx
je 0x4c268a
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4c2681
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.00534aa0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4c268a
push edx
call fcn.004fdee0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0x2c]
jl 0x4c2631
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
jle 0x4c26f6
mov edx, dword [ebp + ebx*4 - 0x70]
test edx, edx
je 0x4c26f0
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4c26e7
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.00534aa0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4c26f0
push edx
call fcn.004fdee0
add esp, 4
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x4c2697
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret