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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x790f00]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
mov ebx, dword [esp + 0x144]
lea eax, [esp + 0x84]
push ebp
push esi
mov esi, dword [esp + 0x154]
xor ebp, ebp
push 0x40
push ebp
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x148], ebp
mov byte [esp + 0x14c], 0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
test esi, esi
jne 0x4c8217
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.006daf70
add esp, 0x13c
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
push edi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x4c822c
xor edi, edi
jmp 0x4c825e
mov eax, dword [esp + 0x154]
test eax, eax
jne 0x4c823b
xor edi, edi
jmp 0x4c8250
cmp eax, esi
jne 0x4c824d
mov eax, dword [esp + 0x160]
lea edi, [eax - 2]
add edi, esi
jmp 0x4c8257
lea edi, [eax - 1]
mov eax, dword [esp + 0x160]
mov esi, 2
sub esi, eax
mov dword [esp + 0x44], edi
lea eax, [esi + 1]
sub edi, ecx
mov dword [esp + 0x40], eax
lea ecx, [edi + esi]
cmp ecx, edx
jne 0x4c827b
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4c828f
mov eax, dword [ebx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [ebx + 0x38]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx]
bswap ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x30], ebx
nop dword [eax]
nop word [eax + eax]
lea edi, [esi*4]
test ebp, ebp
jne 0x4c9518
push ebp
lea eax, [esp + 0xd4]
add eax, edi
push eax
push ebx
push dword [esp + 0x40]
call fcn.004dcb40
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4c9518
lea ebx, [esp + 0xd0]
mov eax, dword [ebx + edi]
cmp dword [eax + 0x14], ebp
jge 0x4c8313
push eax
call fcn.004ca090
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4c8423
mov eax, dword [ebx + edi]
mov ebx, dword [esp + 0x20]
add ebx, 4
movzx eax, word [eax + 0x18]
add ebx, eax
mov eax, esi
dec esi
mov dword [esp + 0x20], ebx
test eax, eax
je 0x4c843d
mov edi, dword [esp + 0x4c]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x4c837b
mov eax, dword [esp + 0x44]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x4c837b
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0x74], eax
push edi
mov ebx, dword [eax]
mov eax, dword [edi + 0x4c]
bswap ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x38], ebx
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xf0], eax
mov byte [edi + 0xc], 0
jmp 0x4c82b0
mov ecx, dword [esp + 0x44]
mov ebp, edi
movzx eax, dl
sub ecx, eax
add ecx, esi
mov eax, dword [ebp + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [ebp + 0x1a]
movzx edi, cx
and edi, eax
add edi, dword [ebp + 0x38]
push edi
push ebp
mov dword [esp + esi*4 + 0x78], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x4c]
call eax
mov edx, dword [esp + 0x3c]
add esp, 8
movzx ebx, ax
mov dword [esp + esi*4 + 0xf0], ebx
test byte [edx + 0x18], 0xc
je 0x4c83f6
mov ecx, edi
sub ecx, dword [ebp + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x4c83f6
mov eax, dword [esp + 0x64]
push ebx
add eax, ecx
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
sub edi, dword [ebp + 0x38]
add esp, 0xc
add edi, dword [esp + 0x64]
mov dword [esp + esi*4 + 0x70], edi
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ebp + 0xc]
sub ecx, eax
push ebx
add ecx, esi
push ecx
push ebp
call fcn.004d29f0
mov ebp, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x1c], ebp
jmp 0x4c82b0
push edi
lea eax, [esp + 0xd4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edi, edi
jmp 0x4c8dd5
mov eax, dword [esp + 0x34]
lea esi, [ebx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.00515c10
mov edi, eax
add esp, 8
mov dword [esp + 0x98], edi
test edi, edi
jne 0x4c8470
lea ebp, [eax + 7]
jmp 0x4c8dd5
mov ecx, dword [esp + 0xd0]
lea eax, [edi + esi*4]
mov dword [esp + 0x9c], eax
xor edx, edx
lea eax, [eax + esi*2]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x28], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x58], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], edx
cmp dword [esp + 0x40], edx
jle 0x4c8721
mov ebx, dword [esp + 0x90]
nop dword [eax]
nop word [eax + eax]
mov edi, dword [esp + edx*4 + 0xd0]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x48], edi
movzx eax, word [edi + 0x18]
mov ebp, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x20], eax
add esi, ebp
movzx eax, word [edi + 0x1a]
mov edx, eax
mov dword [esp + 0x50], eax
mov al, byte [ebp]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], edx
mov dword [esp + 0x14], esi
cmp al, byte [ecx]
jne 0x4c86f7
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x20]
add eax, eax
push eax
mov eax, dword [esp + 0xa0]
push 0
lea eax, [eax + ebx*2]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4c85b5
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x20], edx
jb 0x4c86cd
test edx, edx
je 0x4c8583
mov edi, dword [esp + 0x68]
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x98]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
sub edx, 1
jne 0x4c8550
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x14], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x4c85b5
mov esi, dword [esp + 0x98]
lea ecx, [edi + 0x24]
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 0x4c8594
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x90], ebx
movzx eax, word [edi + 0x12]
movzx ecx, word [edi + 0x18]
add eax, ebp
lea edx, [eax + ecx*2]
cmp esi, edx
jae 0x4c85fe
mov edi, dword [esp + 0x50]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x98]
add ecx, ebp
mov dword [eax + ebx*4], ecx
inc ebx
cmp esi, edx
jb 0x4c85d0
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
dec eax
mov dword [esp + edx*4 + 0x118], ebx
cmp edx, eax
jge 0x4c86b6
cmp byte [esp + 0x13], 0
jne 0x4c86b6
movzx eax, word [esp + edx*4 + 0xf0]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push eax
push dword [esp + edx*4 + 0x74]
add esi, ebp
mov word [ecx + ebx*2], ax
add ebp, eax
push esi
mov dword [esp + 0x38], ebp
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov edx, dword [esp + 0x9c]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x98]
mov dword [esi + ebx*4], eax
mov ax, word [edx + ebx*2]
sub ax, cx
mov word [edx + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x4c868d
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4c86aa
cmp ecx, 4
jae 0x4c86aa
mov eax, dword [esp + 0x28]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x4c8696
mov dword [esp + 0x2c], ebp
mov edx, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x90], ebx
inc edx
mov dword [esp + 0x38], edx
cmp edx, dword [esp + 0x40]
jge 0x4c8721
mov ecx, dword [esp + 0xd0]
jmp 0x4c84d0
push 0x6f10ac
push 0x12ffa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x4c8dd5
push 0x6f10ac
push 0x12fe2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x4c8dd5
mov eax, dword [esp + 0x58]
xor edx, edx
movzx ebp, ax
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ebx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], ebp
test eax, eax
jle 0x4c881e
mov ecx, eax
lea esi, [esp + 0x118]
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + ebx*4 + 0xd0]
mov ecx, dword [esp + ebx*4 + 0x118]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0xa0], eax
mov dword [esp + edx*4 + 0xb8], ecx
test edx, edx
je 0x4c8793
cmp ecx, dword [esp + edx*4 + 0xb4]
jne 0x4c8793
dec edx
mov dword [esp + 0x14], edx
cmp byte [esp + 0x13], 0
jne 0x4c87b7
mov eax, dword [esp + 0x4c]
inc edx
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x3c]
mov dword [esp + edx*4 + 0xa0], eax
lea eax, [ecx + 1]
mov dword [esp + edx*4 + 0xb8], eax
mov edi, ebp
lea eax, [esp + 0xf0]
sub edi, dword [esi + 0x14]
lea eax, [eax + ebx*4]
xor ebp, ebp
mov dword [esp + 0x50], eax
cmp byte [esi + 0xc], 0
mov dword [eax], edi
jbe 0x4c8804
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
movzx eax, ax
lea ebx, [ebx + 4]
add eax, 2
inc ebp
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ebp, eax
jl 0x4c87d7
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov dword [eax], edi
mov eax, dword [esp + 0x40]
inc ebx
mov ebp, dword [esp + 0x38]
inc edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], edx
cmp ebx, eax
jl 0x4c8762
mov ebx, dword [esp + 0x90]
mov ecx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], 0
test eax, eax
jle 0x4c8a32
mov eax, 1
xor edi, edi
mov dword [esp + 0x2c], eax
nop word [eax + eax]
mov ebp, dword [esp + edi + 0xf0]
mov edx, dword [esp + 0x38]
cmp ebp, edx
jle 0x4c8941
mov esi, dword [esp + 0x90]
lea edx, [esp + 0xf4]
add edx, edi
cmp eax, ecx
jl 0x4c8892
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jg 0x4c8b4c
mov dword [edx], 0
mov dword [esp + edi + 0x108], esi
mov ebx, dword [esp + edi + 0x104]
mov edx, dword [esp + 0x9c]
lea ecx, [ebx - 1]
movzx eax, word [edx + ecx*2]
test ax, ax
jne 0x4c88c7
push ecx
lea eax, [esp + 0x94]
push eax
call fcn.004cf7a0
mov edx, dword [esp + 0xa4]
add esp, 8
movzx eax, ax
mov ebp, dword [esp + edi + 0xf0]
movzx ecx, ax
add ecx, 2
sub ebp, ecx
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0xf0], ebp
jne 0x4c890f
cmp ebx, esi
jge 0x4c890d
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x4c8905
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.004cf7a0
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x4c890f
xor ecx, ecx
lea edx, [esp + 0xf4]
add edx, edi
lea eax, [ebx - 1]
mov dword [esp + edi + 0x104], eax
mov eax, dword [esp + 0x2c]
add dword [edx], ecx
mov ecx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x38]
jg 0x4c8873
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + edi + 0x104]
cmp esi, ebx
jge 0x4c89ea
mov ecx, dword [esp + 0x9c]
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x4c897f
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004cf7a0
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
add ebp, eax
cmp ebp, edx
jg 0x4c89e6
inc esi
mov dword [esp + edi + 0xf0], ebp
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0x104], esi
jne 0x4c89d7
cmp esi, ebx
jge 0x4c89d5
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x4c89cd
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004cf7a0
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4c89d7
xor eax, eax
sub dword [esp + edi + 0xf4], eax
cmp esi, ebx
jl 0x4c8957
cmp esi, ebx
jl 0x4c89fa
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x4c8a1d
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x4c8a0b
mov eax, dword [esp + edi + 0x100]
jmp 0x4c8a0d
xor eax, eax
cmp esi, eax
jle 0x4c8b76
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x14]
inc edx
inc eax
add edi, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
cmp edx, ecx
jl 0x4c8850
lea eax, [ecx - 1]
mov ecx, 1
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x4c8c2e
lea ecx, [esp + 0xf0]
sub ecx, 4
lea edx, [esp + 0x104]
sub edx, 4
mov dword [esp + 0x48], ecx
lea edi, [esp + 0xf0]
mov dword [esp + 0x20], edx
nop dword [eax]
mov esi, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
dec esi
mov ebp, dword [edi + eax*4]
mov eax, esi
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], ecx
inc eax
mov ecx, dword [esp + 0x9c]
cmp word [ecx + eax*2], 0
lea edi, [ecx + eax*2]
mov dword [esp + 0x28], edi
jne 0x4c8aab
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004cf7a0
add esp, 8
mov ebx, dword [esp + 0x2c]
nop
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x4c8ad4
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004cf7a0
add esp, 8
movzx eax, ax
movzx edi, word [edi]
movzx edx, ax
mov dword [esp + 0x50], edx
test ebp, ebp
je 0x4c8b19
cmp dword [esp + 0x160], 0
jne 0x4c8ba0
mov ecx, dword [esp + 0x14]
mov eax, 2
dec ecx
cmp ebx, ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x1c]
sub ecx, eax
lea eax, [ebp + 2]
sub ecx, edx
add eax, edi
cmp eax, ecx
jg 0x4c8ba0
mov ecx, dword [esp + 0x1c]
add edi, 2
mov eax, 0xfffffffe
add ebp, edi
mov edi, dword [esp + 0x28]
sub eax, edx
mov edx, dword [esp + 0x20]
add ecx, eax
sub edi, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], edi
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x4c8ab0
jmp 0x4c8ba8
push 0x6f10ac
push 0x1305f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x4c8dd5
push 0x6f10ac
push 0x13080
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x4c8dd5
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0xf0]
mov esi, dword [esp + 0x48]
mov dword [ebx + eax*4], ebp
mov ebx, dword [esp + 0x90]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x4c8bcf
mov ecx, dword [edx + eax*4 - 4]
jmp 0x4c8bd1
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x4c8c04
dec eax
lea edi, [esp + 0xf0]
mov dword [esp + 0x2c], eax
mov ecx, esi
test eax, eax
jg 0x4c8a70
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
lea ecx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x2c], eax
jmp 0x4c8c50
push 0x6f10ac
push 0x130ac
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x4c8dd5
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x14], esi
jle 0x4c8e3a
nop dword [eax + eax]
cmp esi, dword [esp + 0x40]
jge 0x4c8d04
mov edi, dword [esp + esi*4 + 0xd0]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0xd0], 0
mov dword [esp + 0x28], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4c8c9d
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x4c8c9d
cmp dword [edx + 0x68], 0
je 0x4c8c99
push ecx
call fcn.00543180
jmp 0x4c8cc3
xor ebp, ebp
jmp 0x4c8cc8
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x4c8ccc
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x4c8cbe
call fcn.004ea1b0
jmp 0x4c8cc3
call fcn.004eb490
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x154]
xor ecx, ecx
sub eax, dword [esp + 0x44]
inc dword [esp + 0x18]
cmp esi, eax
mov eax, dword [edi + 0x48]
sete cl
mov dword [esp + 0x24], ebp
inc ecx
cmp dword [eax + 0x20], ecx
je 0x4c8cf7
test ebp, ebp
je 0x4c8dae
test ebp, ebp
jne 0x4c8dd1
jmp 0x4c8d99
cmp dword [esp + 0x160], 0
mov eax, dword [esp + 0x54]
push 0
cmovne eax, ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x44]
call fcn.004c5120
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4c8dd1
push dword [esp + 0x2c]
mov edi, dword [esp + 0x2c]
push edi
call fcn.0055b170
mov ecx, dword [esp + 0x3c]
add esp, 8
inc dword [esp + 0x18]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0x118], ebx
cmp byte [ecx + 0x11], 0
je 0x4c8d91
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push 5
push dword [edi + 4]
push ecx
call fcn.004ee430
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x4c8dd1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
inc esi
cmp esi, dword [esp + 0x14]
jge 0x4c8e3a
mov ecx, 1
jmp 0x4c8c50
push 0x6f10ac
push 0x130cd
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b1f90
add esp, 0x14
mov ebp, 0xb
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x4c952b
cmp dword [0x78d018], 0
je 0x4c9521
mov eax, dword [0x7935d8]
test eax, eax
je 0x4c8e04
push eax
call dword [0x78d068]
add esp, 4
push ebx
call dword [0x78d044]
sub dword [0x793570], eax
dec dword [0x793594]
push ebx
call dword [0x78d03c]
mov eax, dword [0x7935d8]
add esp, 8
test eax, eax
je 0x4c952b
push eax
call dword [0x78d070]
jmp 0x4c9528
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x4c8e5a
mov eax, dword [esp + ecx*4 + 0xdc]
mov eax, dword [eax + 4]
mov dword [esp + ecx*4 + 0x12c], eax
inc ecx
cmp ecx, edi
jl 0x4c8e44
lea ebx, [edi - 1]
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebp
test ebx, ebx
jle 0x4c8f4c
mov eax, ebx
lea esi, [ebp + 1]
mov ebx, ebp
cmp esi, edi
jge 0x4c8f3f
nop
mov eax, dword [esp + esi*4 + 0xdc]
mov ecx, esi
mov edx, dword [esp + ebx*4 + 0xdc]
mov eax, dword [eax + 4]
cmp eax, dword [edx + 4]
cmovae ecx, ebx
inc esi
mov ebx, ecx
cmp esi, edi
jl 0x4c8e80
mov dword [esp + 0x28], ebx
cmp ebx, ebp
je 0x4c8f3b
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [0x78d1fc]
mov ecx, dword [esp + ebx*4 + 0xdc]
mov esi, dword [esp + ebp*4 + 0xdc]
div dword [edi + 0x24]
mov ebx, dword [ecx + 4]
mov edx, dword [esi + 0x48]
inc eax
mov ecx, dword [ecx + 0x48]
mov ebp, dword [esi + 4]
push eax
movzx esi, word [edx + 0x1c]
movzx edi, word [ecx + 0x1c]
push edx
mov word [edx + 0x1c], di
call fcn.005194b0
mov eax, dword [esp + 0x30]
push ebp
mov eax, dword [esp + eax*4 + 0xe8]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.005194b0
mov esi, dword [esp + 0x40]
push ebx
mov eax, dword [esp + esi*4 + 0xf0]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], di
call fcn.005194b0
mov eax, dword [esp + esi*4 + 0xf4]
add esp, 0x18
mov edi, dword [esp + 0x18]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x28]
mov eax, dword [esp + eax*4 + 0xdc]
mov dword [eax + 4], ebp
mov ebp, esi
mov eax, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x30], ebp
cmp ebp, eax
jl 0x4c8e71
test byte [esp + 0x2c], 8
mov eax, dword [esp + edi*4 + 0xd8]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x4c8f95
mov ecx, dword [esp + 0x40]
cmp ecx, edi
je 0x4c8f95
lea edx, [esp + 0xd0]
lea eax, [esp + 0xdc]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0xd8]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x90]
cmp byte [eax + 0x11], 0
je 0x4c91a7
mov edi, dword [esp + 0xdc]
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], ebp
movzx edx, word [edi + 0x18]
movzx eax, byte [edi + 0xc]
add edx, eax
mov dword [esp + 0x20], edx
test esi, esi
jle 0x4c91a3
mov eax, edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x98]
mov ecx, dword [ecx + ebp*4]
mov dword [esp + 0x48], ecx
cmp ebp, edx
jne 0x4c9039
mov esi, dword [esp + 0x18]
xor eax, eax
cmp byte [esp + 0x13], al
sete al
mov dword [esp + 0x5c], eax
inc ebx
cmp ebx, esi
jge 0x4c9012
mov edi, dword [esp + ebx*4 + 0xdc]
jmp 0x4c9019
mov edi, dword [esp + ebx*4 + 0xd0]
movzx eax, word [edi + 0x18]
add eax, dword [esp + 0x5c]
movzx ecx, byte [edi + 0xc]
add ecx, eax
add edx, ecx
cmp ebp, edx
je 0x4c9004
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x28]
cmp ebp, dword [esp + esi + 0x104]
mov esi, dword [esp + 0x90]
jne 0x4c9073
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + eax + 0xdc]
mov dword [esp + 0x14], eax
je 0x4c9196
cmp ebx, dword [esp + 0x18]
jge 0x4c9097
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x12c]
mov eax, dword [esp + 0x14]
jne 0x4c9097
cmp ecx, dword [edi + 0x38]
jb 0x4c9097
cmp ecx, dword [edi + 0x3c]
jb 0x4c9196
cmp word [esp + 0x58], 0
jne 0x4c90c4
lea edx, [esp + 0x24]
push edx
push dword [eax + 4]
mov eax, dword [ecx]
push 5
bswap eax
push eax
push dword [esp + 0x44]
call fcn.004ee430
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
jmp 0x4c90c8
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x9c]
movzx ecx, word [ecx + eax*2]
test cx, cx
jne 0x4c90f0
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004cf7a0
add esp, 8
movzx ecx, ax
mov eax, dword [esp + 0x14]
cmp cx, word [eax + 0x10]
jbe 0x4c9180
test ebp, ebp
jne 0x4c8dd1
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x78]
push ecx
push ebp
push eax
mov eax, dword [eax + 0x50]
call eax
movzx eax, word [esp + 0x94]
add esp, 0xc
cmp eax, dword [esp + 0x84]
jae 0x4c918a
mov ecx, dword [edi + 0x3c]
cmp ebp, ecx
jae 0x4c914c
add eax, ebp
cmp eax, ecx
jbe 0x4c914c
push 0x1159f
call fcn.005016c0
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
jmp 0x4c9178
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
movzx eax, word [esp + 0x8e]
push dword [ecx + 4]
mov eax, dword [eax + ebp - 4]
push 3
bswap eax
push eax
push dword [ecx + 0x34]
call fcn.004ee430
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x4c8dd1
jmp 0x4c918e
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x30], ebp
cmp ebp, esi
jl 0x4c8fe1
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x4c9348
mov eax, dword [esp + 0x58]
movzx ebp, ax
mov dword [esp + 0x50], ebp
nop dword [eax]
nop word [eax + eax]
mov edi, dword [esp + ebx*4 + 0x104]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + ebx*4 + 0xdc]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x5c], ecx
mov ebx, dword [eax + edi*4]
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + edi*2]
lea edx, [eax + ebp]
mov ebp, dword [esp + 0x64]
add ebp, dword [esp + 0x60]
cmp byte [ecx + 8], 0
jne 0x4c921c
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x4c92c6
cmp byte [esp + 0x13], 0
je 0x4c92ad
lea eax, [esp + 0x78]
dec edi
push eax
mov eax, dword [esp + 0x9c]
push dword [eax + edi*4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x88]
mov ebx, ebp
mov ecx, dword [esp + 0x84]
add esp, 0xc
add ebp, 4
test edx, edx
ja 0x4c929b
jb 0x4c925e
cmp ecx, 0x7f
ja 0x4c9270
mov eax, 1
and cl, 0x7f
mov byte [ebp], cl
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x4c92c6
test edx, edx
ja 0x4c929b
jb 0x4c927e
cmp ecx, 0x3fff
ja 0x4c929b
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebp + 1], cl
or al, 0x80
mov byte [ebp], al
mov eax, 2
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x4c92c6
push edx
push ecx
push ebp
call fcn.004eed10
add esp, 0xc
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x4c92c6
sub ebx, 4
cmp eax, 4
jne 0x4c92c6
mov eax, dword [esp + 0x4c]
push ebx
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
add dword [esp + 0x60], edx
xor eax, eax
nop dword [eax]
cmp dword [esp + eax*4 + 0xb8], edi
jg 0x4c92df
inc eax
cmp eax, 6
jl 0x4c92d0
mov ecx, dword [esp + eax*4 + 0xa0]
cmp ebx, ecx
jae 0x4c92f1
lea eax, [edx + ebx]
cmp eax, ecx
ja 0x4c9339
mov eax, dword [esp + 0x5c]
push dword [eax + 4]
mov eax, dword [esp + 0x48]
push ebp
push edx
push ebx
mov ebx, dword [esp + 0x4c]
add eax, ebx
push eax
push dword [esp + 0x60]
call fcn.004de530
mov edi, dword [esp + 0x30]
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4c8dd5
inc ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jge 0x4c934c
mov ebp, dword [esp + 0x50]
jmp 0x4c91d0
push 0x6f10ac
push 0x13195
jmp 0x4c8db8
mov ebp, dword [esp + 0x1c]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jge 0x4c9434
nop
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x140], 0
jne 0x4c9423
lea ebx, [edi*4]
test ecx, ecx
jns 0x4c9396
mov eax, dword [esp + ebx + 0x114]
cmp eax, dword [esp + ebx + 0x100]
jl 0x4c9423
test edi, edi
jne 0x4c93a7
mov edx, dword [esp + 0x104]
xor eax, eax
xor ecx, ecx
jmp 0x4c93da
cmp edi, dword [esp + 0x40]
jge 0x4c93bf
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ebx + 0x114]
jmp 0x4c93c1
mov eax, esi
mov edx, dword [esp + ebx + 0x104]
xor ecx, ecx
cmp byte [esp + 0x13], cl
sete cl
add ecx, dword [esp + ebx + 0x100]
sub edx, ecx
lea ebp, [esp + 0x90]
push ebp
push edx
push ecx
push eax
push dword [esp + ebx + 0xec]
call fcn.004d2bd0
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x4c8dd1
mov eax, dword [esp + ebx + 0xdc]
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + ebx + 0xf0]
mov byte [esp + edi + 0x140], 1
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jl 0x4c9360
cmp dword [esp + 0x15c], 0
je 0x4c949c
mov ebx, dword [esp + 0x4c]
cmp word [ebx + 0x18], 0
jne 0x4c949c
mov ecx, dword [esp + 0xdc]
movzx eax, byte [ebx + 9]
cmp eax, dword [ecx + 0x14]
jg 0x4c949c
push 0xffffffffffffffff
push ecx
call fcn.004d22e0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0xec]
call fcn.004d1450
mov ebp, dword [esp + 0x38]
add esp, 0x14
test ebp, ebp
jne 0x4c94e4
mov eax, dword [esp + 0xdc]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004dad90
add esp, 0xc
mov ebp, eax
jmp 0x4c94e4
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x4c94e4
cmp word [esp + 0x58], 0
jne 0x4c94e4
xor esi, esi
test edi, edi
jle 0x4c94e4
mov eax, dword [esp + esi*4 + 0xdc]
lea edx, [esp + 0x24]
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.004ee430
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4c94b4
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov esi, edi
cmp edi, ebx
jge 0x4c8dd5
mov eax, dword [esp + esi*4 + 0xd0]
test ebp, ebp
jne 0x4c950e
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.004dad90
add esp, 0xc
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x4c94f2
jmp 0x4c8dd5
lea eax, [edi + 4]
push eax
jmp 0x4c8424
push ebx
call dword [0x78d03c]
add esp, 4
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebx, ebx
jle 0x4c9550
mov eax, dword [esp + esi*4 + 0xd0]
test eax, eax
je 0x4c954b
push dword [eax + 0x48]
call fcn.00518700
add esp, 4
inc esi
cmp esi, ebx
jl 0x4c9535
xor esi, esi
test edi, edi
jle 0x4c957b
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xdc]
test eax, eax
je 0x4c9576
push dword [eax + 0x48]
call fcn.00518700
add esp, 4
inc esi
cmp esi, edi
jl 0x4c9560
mov ecx, dword [esp + 0x148]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006daf70
add esp, 0x13c
ret