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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
mov eax, dword [0x62f570]
xor eax, esp
mov dword [esp + 0x100], eax
xor eax, eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x34]
push esi
push edi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x80], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x104], eax
mov byte [esp + 0x108], al
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ecx
cmp edx, eax
jne 0x4c550a
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.0057ffd2
mov esp, ebp
pop ebp
ret
movzx edx, word [ebx + 0x16]
movzx esi, byte [ebx + 0xc]
lea edi, [esi + edx]
cmp edi, 2
jge 0x4c551e
xor ecx, ecx
jmp 0x4c5540
cmp dword [ebp + 8], eax
jne 0x4c5527
xor ecx, ecx
jmp 0x4c5538
mov ecx, dword [ebp + 8]
cmp ecx, edi
jne 0x4c5537
mov eax, dword [ebp + 0x10]
lea ecx, [edi + eax - 2]
jmp 0x4c5538
dec ecx
mov edi, 2
sub edi, dword [ebp + 0x10]
lea eax, [edi + 1]
mov dword [esp + 0x2c], eax
mov eax, ecx
sub eax, esi
add eax, edi
mov dword [esp + 0x58], ecx
cmp eax, edx
jne 0x4c5562
movzx edx, byte [ebx + 9]
mov eax, dword [ebx + 0x38]
lea eax, [edx + eax + 8]
jmp 0x4c5579
mov edx, dword [ebx + 0x40]
mov ax, word [edx + eax*2]
mov dh, al
mov dl, ah
movzx eax, dx
movzx edx, word [ebx + 0x18]
and eax, edx
add eax, dword [ebx + 0x38]
mov esi, dword [eax]
bswap esi
add ecx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x14], ecx
jmp 0x4c5590
mov eax, dword [esp + 0x48]
cmp esi, dword [eax + 0x2c]
jbe 0x4c55c8
push 0x5fcecc
push 0xfcf9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ad9d0
mov dword [esp + 0x64], 0xb
mov eax, dword [esp + 0x64]
add esp, 0x14
jmp 0x4c5654
push 0
lea edx, [esp + 0x20]
mov ecx, eax
mov eax, dword [ecx]
push edx
push esi
push eax
mov eax, dword [eax + 0xcc]
call eax
add esp, 0x10
mov dword [esp + 0x50], eax
test eax, eax
jne 0x4c564c
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 8]
cmp byte [eax], 0
mov dword [esp + edi*4 + 0x60], eax
jne 0x4c5652
cmp esi, dword [eax + 4]
je 0x4c561e
mov edx, dword [ecx + 4]
cmp esi, 1
mov dword [eax + 0x38], edx
setne dl
dec dl
mov dword [eax + 0x48], ecx
mov ecx, dword [esp + 0x48]
and dl, 0x64
mov dword [eax + 0x34], ecx
mov dword [eax + 4], esi
mov byte [eax + 9], dl
mov esi, eax
call fcn.004bfdb0
mov dword [esp + 0x50], eax
test eax, eax
je 0x4c5652
test esi, esi
je 0x4c564c
mov eax, dword [esi + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4c5647
mov ecx, eax
call fcn.004b8a90
mov eax, dword [esp + 0x50]
jmp 0x4c5654
call fcn.004b4a10
mov eax, dword [esp + 0x50]
jmp 0x4c5654
xor eax, eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4c673f
mov eax, dword [esp + edi*4 + 0x60]
movzx edx, byte [eax + 0xc]
movzx ecx, word [eax + 0x16]
add edx, dword [esp + 0x18]
dec dword [esp + 0x14]
lea eax, [edx + ecx + 1]
mov ecx, edi
dec edi
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4c5785
mov al, byte [ebx + 0xc]
test al, al
je 0x4c56c8
movzx edx, word [ebx + 0x1a]
cmp dword [esp + 0x14], edx
jne 0x4c56c8
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
push eax
mov dword [esp + edi*4 + 0xfc], eax
mov eax, dword [ebx + 0x4c]
bswap ecx
push ebx
mov dword [esp + 0x4c], ecx
call eax
mov esi, dword [esp + 0x4c]
movzx ecx, ax
add esp, 8
mov dword [esp + edi*4 + 0x6c], ecx
mov byte [ebx + 0xc], 0
jmp 0x4c5590
mov ecx, dword [ebx + 0x40]
movzx edx, al
mov eax, dword [esp + 0x58]
sub eax, edx
add eax, edi
mov dx, word [ecx + eax*2]
mov ah, dl
mov al, dh
movzx edx, word [ebx + 0x18]
movzx ecx, ax
mov eax, dword [ebx + 0x38]
and ecx, edx
add eax, ecx
mov ecx, dword [eax]
bswap ecx
push eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x4c]
push ebx
mov dword [esp + edi*4 + 0x100], eax
call ecx
mov ecx, dword [esp + 0x50]
movzx esi, ax
add esp, 8
test byte [ecx + 0x16], 0xc
mov dword [esp + edi*4 + 0x6c], esi
je 0x4c575f
mov eax, dword [esp + edi*4 + 0xf8]
sub eax, dword [ebx + 0x38]
lea edx, [esi + eax]
cmp edx, dword [ecx + 0x24]
jg 0x4c6719
mov ecx, dword [esp + edi*4 + 0xf8]
push esi
push ecx
mov ecx, dword [esp + 0x88]
add ecx, eax
push ecx
call fcn.0058ff50
mov edx, dword [esp + 0x8c]
sub edx, dword [ebx + 0x38]
add esp, 0xc
add edx, dword [esp + edi*4 + 0xf8]
mov dword [esp + edi*4 + 0xf8], edx
movzx ecx, byte [ebx + 0xc]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x10]
push eax
sub edx, ecx
push esi
add edx, edi
push edx
mov esi, ebx
call fcn.004c49c0
mov esi, dword [esp + 0x50]
add esp, 0xc
jmp 0x4c5590
lea esi, [eax + 3]
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x20]
and esi, 0xfffffffc
lea edx, [esi + esi*2]
lea eax, [ecx + edx*2]
cdq
mov ecx, eax
or ecx, edx
je 0x4c57ad
push edx
push eax
call fcn.004ab330
add esp, 8
mov ebx, eax
jmp 0x4c57af
xor ebx, ebx
mov dword [esp + 0x3c], ebx
test ebx, ebx
jne 0x4c57c4
mov dword [esp + 0x10], 7
jmp 0x4c5b6d
lea eax, [ebx + esi*4]
lea edx, [eax + esi*2]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
movzx cx, byte [eax + 8]
add cx, cx
add cx, cx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
movzx eax, byte [eax + 3]
movzx edx, cx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0xc], 0
jle 0x4c59d3
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + ecx*4 + 0x60]
movzx edx, word [edi + 0x18]
mov eax, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov ecx, dword [esp + 0x60]
add esi, eax
mov dword [esp + 0x1c], eax
mov al, byte [eax]
mov dword [esp + 0x20], edx
mov edx, dword [ecx + 0x38]
cmp al, byte [edx]
jne 0x4c5b47
movzx edx, byte [edi + 0xc]
movzx ecx, word [edi + 0x16]
mov eax, dword [esp + 0x40]
add ecx, edx
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [eax + ecx*2]
push 0
push edx
call fcn.00589f50
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4c58c8
movzx eax, word [edi + 0x1a]
test eax, eax
jle 0x4c589a
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
mov edi, edi
mov cx, word [esi]
mov dh, cl
add esi, 2
inc eax
mov dl, ch
movzx ecx, word [esp + 0x20]
movzx edx, dx
and edx, ecx
add edx, dword [esp + 0x1c]
sub dword [esp + 0x18], 1
mov dword [ebx + eax*4 - 4], edx
jne 0x4c5870
mov dword [esp + 0x34], eax
jmp 0x4c589e
mov eax, dword [esp + 0x34]
xor ecx, ecx
cmp byte [edi + 0xc], cl
jbe 0x4c58c8
lea edx, [edi + 0x24]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
add dword [esp + 0x14], 4
mov dword [ebx + eax*4], edx
movzx edx, byte [edi + 0xc]
inc ecx
inc eax
cmp ecx, edx
jl 0x4c58ac
mov dword [esp + 0x34], eax
movzx ecx, word [edi + 0x12]
movzx eax, word [edi + 0x16]
add ecx, dword [esp + 0x1c]
lea eax, [ecx + eax*2]
mov dword [esp + 0x18], eax
cmp esi, eax
mov eax, dword [esp + 0x34]
jae 0x4c590a
mov dx, word [esi]
mov ch, dl
add esi, 2
inc eax
mov cl, dh
movzx edx, cx
movzx ecx, word [esp + 0x20]
and edx, ecx
add edx, dword [esp + 0x1c]
mov dword [ebx + eax*4 - 4], edx
cmp esi, dword [esp + 0x18]
jb 0x4c58e3
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + ecx*4 + 0xe4], eax
mov eax, dword [esp + 0x2c]
dec eax
cmp ecx, eax
jge 0x4c59c4
cmp dword [esp + 0x54], 0
jne 0x4c59c4
movzx eax, word [esp + ecx*4 + 0x6c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
mov word [edx + esi*2], ax
mov edx, dword [esp + 0x30]
movzx eax, ax
add edx, ecx
add ecx, eax
push eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + eax*4 + 0xfc]
push ecx
push edx
mov dword [esp + 0x24], edx
call fcn.0058ff50
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x4c]
movzx edx, cx
add edx, dword [esp + 0x24]
add esp, 0xc
mov dword [ebx + esi*4], edx
sub word [eax + esi*2], cx
cmp byte [edi + 8], 0
jne 0x4c5994
mov eax, dword [edi + 0x38]
mov ecx, dword [ebx + esi*4]
mov edx, dword [eax + 8]
mov dword [ecx], edx
jmp 0x4c59bb
mov eax, dword [esp + 0x40]
cmp word [eax + esi*2], 4
jae 0x4c59bb
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
mov byte [edx + ecx], 0
inc word [eax + esi*2]
inc ecx
cmp word [eax + esi*2], 4
jb 0x4c59a7
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xc]
inc esi
mov dword [esp + 0x34], esi
inc ecx
cmp ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
jl 0x4c5807
movzx eax, word [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 0x24]
lea eax, [eax + edx - 0xc]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x4c], eax
xor eax, eax
cmp edx, eax
mov dword [esp + 0xc], eax
jle 0x4c5a63
mov ecx, edx
lea esi, [esp + 0xe4]
lea edi, [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + eax*4 + 0x60]
movzx ecx, word [esi + 0x14]
mov edi, dword [esp + 0x4c]
sub edi, ecx
xor ebx, ebx
mov dword [esp + eax*4 + 0x6c], edi
cmp byte [esi + 0xc], bl
jbe 0x4c5a5a
lea edx, [esi + 0x24]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esi + 0x4c]
push ecx
push esi
call edx
movzx ecx, byte [esi + 0xc]
add dword [esp + 0x1c], 4
movzx eax, ax
inc ebx
add esp, 8
cmp ebx, ecx
lea edi, [edi + eax + 2]
jl 0x4c5a27
mov edx, dword [esp + 0xc]
mov dword [esp + edx*4 + 0x6c], edi
mov eax, edx
mov edx, dword [esp + 0x2c]
inc eax
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x4c5a07
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0xc], ebx
jle 0x4c5cd9
lea eax, [esp + 0x88]
sub eax, 4
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], eax
nop
mov eax, dword [esp + 0x4c]
cmp dword [esp + ebx + 0x6c], eax
jle 0x4c5bfe
mov edi, edi
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x30]
jl 0x4c5acb
inc eax
cmp eax, 5
mov dword [esp + 0x30], eax
jg 0x4c5de8
mov ecx, dword [esp + 0x34]
mov dword [esp + ebx + 0x70], 0
mov dword [esp + ebx + 0x8c], ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + ecx + 0x88]
mov edx, dword [esp + 0x40]
lea eax, [ebx - 1]
mov dword [esp + 0x18], eax
movzx eax, word [edx + eax*2]
test ax, ax
jne 0x4c5afb
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x34]
call fcn.004c4c70
mov ecx, dword [esp + 0x20]
movzx eax, ax
movzx eax, ax
add eax, 2
sub dword [esp + ecx + 0x6c], eax
cmp dword [esp + 0x54], 0
jne 0x4c5bdd
cmp ebx, dword [esp + 0x34]
jge 0x4c5bdb
mov eax, dword [esp + 0x40]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x4c5b39
mov edi, ebx
lea esi, [esp + 0x34]
call fcn.004c4c70
mov ecx, dword [esp + 0x20]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4c5bdd
push 0x5fcecc
push 0x111df
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ad9d0
mov dword [esp + 0x24], 0xb
add esp, 0x14
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4c6762
cmp dword [0x631928], 0
je 0x4c6758
mov ecx, dword [0x640888]
test ecx, ecx
je 0x4c5b9e
push ecx
call dword [0x631984]
mov eax, dword [esp + 0x40]
add esp, 4
push eax
call dword [0x631960]
mov edx, dword [esp + 0x40]
sub dword [0x640828], eax
dec dword [0x64084c]
add esp, 4
push edx
call dword [0x631958]
mov eax, dword [0x640888]
add esp, 4
test eax, eax
je 0x4c6762
push eax
call dword [0x63198c]
jmp 0x4c675f
xor eax, eax
add dword [esp + ecx + 0x70], eax
mov eax, dword [esp + 0x4c]
cmp dword [esp + ecx + 0x6c], eax
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
mov dword [esp + ecx + 0x88], edx
jg 0x4c5aa0
mov edx, dword [esp + 0x34]
cmp dword [esp + ebx + 0x88], edx
jge 0x4c5c8c
nop
mov edi, dword [esp + ebx + 0x88]
mov ecx, dword [esp + 0x40]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x4c5c31
lea esi, [esp + 0x34]
call fcn.004c4c70
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + ebx + 0x6c]
movzx eax, ax
movzx eax, ax
add eax, 2
add ecx, eax
cmp ecx, dword [esp + 0x4c]
jg 0x4c5c8c
inc edi
cmp dword [esp + 0x54], 0
mov dword [esp + ebx + 0x6c], ecx
mov dword [esp + ebx + 0x88], edi
jne 0x4c5c84
cmp edi, edx
jge 0x4c5c82
mov eax, dword [esp + 0x40]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x4c5c77
lea esi, [esp + 0x34]
call fcn.004c4c70
mov edx, dword [esp + 0x34]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x4c5c84
xor eax, eax
sub dword [esp + ebx + 0x70], eax
cmp edi, edx
jl 0x4c5c10
mov ecx, dword [esp + ebx + 0x88]
cmp ecx, edx
jl 0x4c5ca1
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], ecx
jmp 0x4c5cbb
cmp dword [esp + 0xc], 0
jle 0x4c5cb1
mov edx, dword [esp + 0x14]
mov eax, dword [edx + ebx]
jmp 0x4c5cb3
xor eax, eax
cmp ecx, eax
jle 0x4c5df7
mov eax, dword [esp + 0xc]
inc dword [esp + 0x1c]
inc eax
add ebx, 4
cmp eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ebx
jl 0x4c5a90
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0xc], eax
test eax, eax
jle 0x4c5e22
mov ecx, dword [esp + 0x40]
mov edi, edi
mov esi, dword [esp + eax*4 + 0x68]
mov edx, dword [esp + eax*4 + 0x6c]
mov dword [esp + 0x20], esi
lea esi, [esp + 0x88]
mov ebx, dword [esi + eax*4 - 4]
sub esi, 4
dec ebx
mov edi, ebx
sub edi, dword [esp + 0x54]
mov dword [esp + 0x14], esi
inc edi
lea esi, [edi + edi]
cmp word [esi + ecx], 0
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], esi
jne 0x4c5d41
lea esi, [esp + 0x34]
call fcn.004c4c70
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], esi
cmp word [ecx + ebx*2], 0
jne 0x4c5d63
mov edi, ebx
lea esi, [esp + 0x34]
call fcn.004c4c70
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x4c5d99
cmp dword [ebp + 0x10], 0
jne 0x4c5dcd
mov esi, dword [esp + 0x30]
dec esi
mov edi, eax
sub edi, esi
mov esi, dword [esp + 0x20]
neg edi
sbb edi, edi
and edi, 2
sub esi, edi
movzx edi, word [ecx + ebx*2]
sub esi, edi
mov edi, dword [esp + 0x1c]
movzx edi, word [edi + ecx]
lea edi, [edi + edx + 2]
cmp edi, esi
jg 0x4c5dcd
mov esi, dword [esp + 0x1c]
movzx esi, word [esi + ecx]
sub dword [esp + 0x1c], 2
lea edx, [edx + esi + 2]
movzx esi, word [ecx + ebx*2]
mov edi, 0xfffffffe
sub edi, esi
mov esi, dword [esp + 0x14]
add dword [esp + 0x20], edi
mov dword [esi + eax*4], ebx
dec ebx
mov dword [esp + 0x18], edx
test ebx, ebx
jge 0x4c5d45
cmp eax, 1
mov dword [esp + eax*4 + 0x6c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + eax*4 + 0x68], edx
jle 0x4c5e06
mov edx, dword [esp + 0x14]
mov edx, dword [edx + eax*4 - 4]
jmp 0x4c5e08
push 0x5fcecc
push 0x1124c
jmp 0x4c5b51
push 0x5fcecc
push 0x1126d
jmp 0x4c5b51
xor edx, edx
mov esi, dword [esp + 0x14]
cmp dword [esi + eax*4], edx
jle 0x4c5e9e
dec eax
mov dword [esp + 0xc], eax
test eax, eax
jg 0x4c5cf0
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x38]
movzx edx, byte [ecx]
xor ebx, ebx
cmp dword [esp + 0x30], ebx
mov dword [esp + 0x14], edx
jle 0x4c5f91
mov edi, dword [esp + 0x48]
cmp ebx, dword [esp + 0x2c]
jge 0x4c5f01
mov eax, dword [esp + ebx*4 + 0x60]
mov esi, dword [eax + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
mov dword [esp + ebx*4 + 0x9c], eax
mov dword [esp + 0x18], eax
mov dword [esp + ebx*4 + 0x60], 0
je 0x4c5ebe
mov eax, dword [ecx + 0x18]
cmp eax, dword [esi + 0x18]
jb 0x4c5ebe
cmp dword [ecx + 0x60], 0
je 0x4c5ead
mov ecx, esi
call fcn.004b6330
test eax, eax
je 0x4c5ead
push esi
call fcn.004b90e0
inc dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jmp 0x4c5f80
push 0x5fcecc
push 0x11297
jmp 0x4c5b51
inc dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x10], eax
test eax, eax
jmp 0x4c5f80
mov eax, dword [ecx + 0x28]
test eax, eax
jne 0x4c5ef2
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jbe 0x4c5eeb
push esi
call fcn.004ba5a0
inc dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jmp 0x4c5f80
mov eax, esi
call fcn.004ba4e0
inc dword [esp + 0x24]
mov dword [esp + 0x10], eax
test eax, eax
jmp 0x4c5f80
cmp dword [ebp + 0x10], 0
mov eax, 1
jne 0x4c5f10
mov eax, dword [esp + 0x44]
push 0
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.004c3be0
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4c5b6d
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push edx
call fcn.004c00a0
inc dword [esp + 0x28]
mov eax, dword [esp + 0x38]
add esp, 4
cmp byte [edi + 0x11], 0
mov dword [esp + ebx*4 + 0x9c], esi
mov dword [esp + ebx*4 + 0xe4], eax
je 0x4c5f86
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esi + 4]
push 5
mov ecx, edi
call fcn.004bee80
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x4c5b6d
inc ebx
cmp ebx, dword [esp + 0x30]
jl 0x4c5e40
mov esi, dword [esp + 0x24]
xor eax, eax
test esi, esi
jle 0x4c5fe7
jmp 0x4c5fa0
mov ecx, dword [esp + eax*4 + 0x9c]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x48]
mov cx, word [ecx + 0x1c]
mov word [esp + eax*2 + 0xf8], cx
xor ecx, ecx
mov dword [esp + eax*4 + 0xc8], edx
mov dword [esp + eax*4 + 0xb0], edx
test eax, eax
jle 0x4c5fe2
lea ecx, [ecx]
cmp dword [esp + ecx*4 + 0xc8], edx
je 0x4c60bf
inc ecx
cmp ecx, eax
jl 0x4c5fd0
inc eax
cmp eax, esi
jl 0x4c5fa0
mov dword [esp + 0xc], 0
test esi, esi
jle 0x4c61f2
mov esi, dword [esp + 0x24]
xor edi, edi
lea eax, [edi + 1]
cmp esi, eax
jle 0x4c6030
xor edx, edx
jmp 0x4c6010
lea ecx, [eax*4]
mov ebx, dword [esp + ecx + 0xb0]
cmp ebx, dword [esp + edx + 0xb0]
jae 0x4c602b
mov edi, eax
mov edx, ecx
inc eax
cmp eax, esi
jl 0x4c6010
mov edx, dword [esp + edi*4 + 0xb0]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x44], edx
mov dword [esp + edi*4 + 0xb0], 0xffffffff
cmp edi, eax
je 0x4c61e5
jle 0x4c6123
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x2c]
mov edx, dword [esp + edi*4 + 0x9c]
mov esi, dword [edx + 0x48]
mov edx, dword [esi]
lea ebx, [ecx + edi + 1]
mov ecx, dword [esi + 0x18]
xor eax, eax
push ebx
mov word [esi + 0x1c], ax
mov eax, dword [esi + 0xc]
push ecx
mov ecx, dword [eax + 0x2c]
push edx
push ecx
call dword [0x6319bc]
movzx eax, word [esi + 0x1c]
add esp, 0x10
mov dword [esi + 0x18], ebx
test al, 2
je 0x4c6123
test al, 8
je 0x4c6123
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x4c60b0
mov edx, dword [esi + 0x24]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4c60ce
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x4c60d4
push 0x5fcecc
push 0x112e1
jmp 0x4c5b51
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4c60e3
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x4c60f0
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x4c60f0
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4c6105
mov dword [ecx + 0x24], esi
jmp 0x4c6112
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4c6112
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4c6123
test byte [esi + 0x1c], 8
jne 0x4c6123
mov dword [eax + 8], esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + eax*4 + 0x9c]
mov esi, dword [ebx + 0x48]
mov cx, word [esp + edi*2 + 0xf8]
mov edi, dword [esp + 0x44]
mov edx, dword [esi + 0x18]
mov eax, dword [esi]
push edi
mov word [esi + 0x1c], cx
mov ecx, dword [esi + 0xc]
push edx
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [0x6319bc]
movzx eax, word [esi + 0x1c]
add esp, 0x10
mov dword [esi + 0x18], edi
test al, 2
je 0x4c61da
test al, 8
je 0x4c61da
mov eax, dword [esi + 0xc]
cmp dword [eax + 8], esi
jne 0x4c6176
mov ecx, dword [esi + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4c6185
mov edx, dword [esi + 0x24]
mov dword [ecx + 0x24], edx
jmp 0x4c618b
mov ecx, dword [esi + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x4c619a
mov edx, dword [esi + 0x20]
mov dword [ecx + 0x20], edx
jmp 0x4c61a7
mov ecx, dword [esi + 0x20]
mov dword [eax], ecx
test ecx, ecx
jne 0x4c61a7
mov byte [eax + 0x21], 2
mov dword [esi + 0x24], 0
mov ecx, dword [eax]
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4c61bc
mov dword [ecx + 0x24], esi
jmp 0x4c61c9
cmp byte [eax + 0x20], 0
mov dword [eax + 4], esi
je 0x4c61c9
mov byte [eax + 0x21], 1
cmp dword [eax + 8], 0
mov dword [eax], esi
jne 0x4c61da
test byte [esi + 0x1c], 8
jne 0x4c61da
mov dword [eax + 8], esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov dword [ebx + 4], edi
inc eax
cmp eax, esi
mov dword [esp + 0xc], eax
jl 0x4c5ffb
test byte [esp + 0x14], 8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + ecx*4 + 0x98]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0x28]
bswap edx
mov dword [esi], edx
jne 0x4c6234
mov edx, dword [esp + 0x2c]
cmp ecx, edx
je 0x4c6234
lea ecx, [esp + 0x9c]
jg 0x4c6224
lea ecx, [esp + 0x60]
mov ecx, dword [ecx + edx*4 - 4]
mov edx, dword [ecx + 0x38]
mov eax, dword [eax + 0x38]
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x48]
cmp byte [edx + 0x11], 0
mov eax, dword [esp + 0x9c]
je 0x4c63de
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x20], ecx
movzx ecx, word [eax + 0x16]
mov ebx, eax
movzx eax, byte [eax + 0xc]
add ecx, eax
xor edi, edi
cmp dword [esp + 0x34], edi
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], edi
jle 0x4c63de
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x3c]
mov esi, dword [edx + edi*4]
mov dword [esp + 0x44], esi
cmp edi, dword [esp + 0x18]
jne 0x4c62d4
mov eax, dword [esp + 0x14]
inc eax
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jge 0x4c62a8
mov eax, dword [esp + eax*4 + 0x9c]
jmp 0x4c62ac
mov eax, dword [esp + eax*4 + 0x60]
movzx edx, byte [eax + 0xc]
movzx ecx, word [eax + 0x16]
mov eax, dword [eax + 0x38]
mov esi, dword [esp + 0x44]
add ecx, edx
xor edx, edx
cmp dword [esp + 0x54], edx
mov dword [esp + 0x20], eax
sete dl
add edx, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x1c]
cmp edi, dword [esp + ecx + 0x88]
jne 0x4c6304
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
add eax, eax
add eax, eax
cmp dword [esp + 0x54], 0
mov ebx, dword [esp + eax + 0x9c]
mov dword [esp + 0x1c], eax
je 0x4c63d3
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
jge 0x4c6330
mov edx, dword [ebx + 4]
cmp edx, dword [esp + eax*4 + 0xc8]
jne 0x4c6330
mov eax, dword [esp + 0x20]
cmp esi, eax
jb 0x4c6330
mov ecx, dword [esp + 0x30]
add ecx, eax
cmp esi, ecx
jb 0x4c63d3
cmp word [esp + 0x50], 0
jne 0x4c6353
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, dword [esp + 0x50]
push 5
bswap eax
call fcn.004bee80
add esp, 0xc
mov edx, dword [esp + 0x40]
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4c636d
lea esi, [esp + 0x34]
call fcn.004c4c70
mov esi, dword [esp + 0x44]
movzx eax, ax
cmp ax, word [ebx + 0x10]
jbe 0x4c63c8
cmp dword [esp + 0x10], 0
jne 0x4c5b6d
mov ecx, dword [ebx + 0x50]
lea eax, [esp + 0xb0]
push eax
push esi
push ebx
call ecx
movzx edx, word [esp + 0xcc]
add esp, 0xc
cmp edx, dword [esp + 0xbc]
jae 0x4c63d3
movzx eax, word [esp + 0xc2]
mov edx, dword [ebx + 4]
mov eax, dword [eax + esi - 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebx + 0x34]
push edx
push 3
bswap eax
call fcn.004bee80
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x4c5b6d
inc edi
cmp edi, dword [esp + 0x34]
jl 0x4c627f
mov eax, dword [esp + 0x24]
xor ebx, ebx
dec eax
mov dword [esp + 0xc], ebx
test eax, eax
jle 0x4c6546
mov ecx, dword [esp + ebx*4 + 0x88]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + ecx*4]
mov eax, dword [esp + 0x40]
movzx esi, word [esp + 0x50]
mov edi, dword [esp + ebx*4 + 0x9c]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x28], edx
movzx edx, word [eax + ecx*2]
movzx eax, dx
add eax, esi
mov esi, dword [esp + 0x80]
add esi, ebx
cmp byte [edi + 8], 0
jne 0x4c6443
mov ebx, dword [esp + 0x28]
mov ecx, dword [edi + 0x38]
mov edx, dword [ebx]
mov dword [ecx + 8], edx
jmp 0x4c64fd
cmp dword [esp + 0x54], 0
je 0x4c64df
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0xc8]
push eax
mov eax, dword [edx + ecx*4 - 4]
mov ecx, dword [edi + 0x50]
push eax
push edi
call ecx
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xd4]
mov ebx, esi
add esp, 0xc
add esi, 4
mov ecx, edx
mov dword [esp + 0xfc], eax
test eax, eax
ja 0x4c64cc
jb 0x4c648f
cmp edx, 0x7f
ja 0x4c64a0
and dl, 0x7f
mov eax, 1
mov byte [esi], dl
add eax, 4
xor esi, esi
jmp 0x4c64fd
test eax, eax
ja 0x4c64cc
jb 0x4c64ae
cmp edx, 0x3fff
ja 0x4c64cc
shrd edx, eax, 7
shr eax, 7
or dl, 0x80
and cl, 0x7f
mov eax, 2
mov byte [esi], dl
mov byte [esi + 1], cl
add eax, 4
xor esi, esi
jmp 0x4c64fd
push eax
push edx
mov ecx, esi
call fcn.004af1e0
add esp, 8
add eax, 4
xor esi, esi
jmp 0x4c64fd
mov ebx, dword [esp + 0x28]
sub ebx, 4
cmp dx, 4
jne 0x4c64fd
mov eax, dword [esp + 0x5c]
mov edx, dword [eax + 0x4c]
push ebx
push eax
call edx
add esp, 8
movzx eax, ax
mov edx, dword [edi + 4]
add dword [esp + 0x84], eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x1c]
add eax, ebx
push eax
push ecx
mov eax, esi
call fcn.004c4ad0
add esp, 0x18
cmp dword [esp + 0x10], 0
jne 0x4c5b6d
mov eax, dword [esp + 0x24]
inc ebx
dec eax
cmp ebx, eax
mov dword [esp + 0xc], ebx
jl 0x4c63f1
mov edi, dword [esp + 0x24]
mov eax, 1
sub eax, edi
cmp eax, edi
mov dword [esp + 0xc], eax
jge 0x4c663d
mov ebx, dword [esp + 0x54]
mov ecx, eax
neg ecx
mov dword [esp + 0x28], ecx
lea esp, [esp]
mov esi, ecx
test eax, eax
jl 0x4c6578
mov esi, eax
cmp byte [esp + esi + 0x104], 0
jne 0x4c662b
test eax, eax
jge 0x4c659e
mov edx, dword [esp + esi*4 + 0xe0]
cmp edx, dword [esp + esi*4 + 0x84]
jl 0x4c662b
test esi, esi
jne 0x4c65af
mov eax, dword [esp + 0x88]
xor edx, edx
xor ecx, ecx
jmp 0x4c65e0
cmp esi, dword [esp + 0x2c]
jge 0x4c65c5
xor edx, edx
test ebx, ebx
sete dl
add edx, dword [esp + esi*4 + 0xe0]
jmp 0x4c65c9
mov edx, dword [esp + 0x34]
mov eax, dword [esp + esi*4 + 0x88]
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, dword [esp + esi*4 + 0x84]
sub eax, ecx
mov edi, dword [esp + esi*4 + 0x9c]
lea ebx, [esp + 0x34]
push ebx
push eax
push ecx
push edx
mov eax, edi
call fcn.004c4fc0
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4c5b6d
mov ax, word [esp + 0x4c]
sub ax, word [esp + esi*4 + 0x6c]
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x28]
mov word [edi + 0x14], ax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
mov byte [esp + esi + 0x104], 1
inc eax
dec ecx
cmp eax, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], ecx
jl 0x4c6570
cmp dword [ebp + 0xc], 0
je 0x4c669b
mov eax, dword [esp + 0x5c]
cmp word [eax + 0x16], 0
jne 0x4c669b
movzx cx, byte [eax + 9]
mov ebx, dword [esp + 0x9c]
cmp cx, word [ebx + 0x14]
ja 0x4c669b
push 0xffffffffffffffff
push ebx
call fcn.004bf410
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
push edx
call fcn.004c53e0
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x4c66dc
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x34]
push eax
mov eax, ebx
call fcn.004c4210
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x4c66dc
mov ebx, dword [esp + 0x48]
cmp byte [ebx + 0x11], 0
je 0x4c66dc
cmp word [esp + 0x50], 0
jne 0x4c66dc
xor esi, esi
test edi, edi
jle 0x4c66dc
mov ecx, dword [esp + esi*4 + 0x9c]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx + 8]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x10]
push edx
push ecx
push 5
bswap eax
mov ecx, ebx
call fcn.004bee80
inc esi
add esp, 0xc
cmp esi, edi
jl 0x4c66b3
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x2c]
jge 0x4c5b6d
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + esi*4 + 0x60]
test eax, eax
jne 0x4c670b
mov edx, dword [ecx + 4]
mov eax, ecx
mov ecx, dword [ecx + 0x34]
push edx
call fcn.004c4210
add esp, 4
inc esi
cmp esi, edi
jl 0x4c66f2
mov dword [esp + 0x10], eax
jmp 0x4c5b6d
push 0x5fcecc
push 0x1119e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004ad9d0
add esp, 0x14
mov dword [esp + 0x10], 0xb
lea eax, [edi*4 + 4]
push eax
lea ecx, [esp + 0x64]
push 0
push ecx
call fcn.00589f50
add esp, 0xc
jmp 0x4c6762
push eax
call dword [0x631958]
add esp, 4
xor edi, edi
cmp dword [esp + 0x2c], edi
jle 0x4c67cf
mov eax, dword [esp + edi*4 + 0x60]
test eax, eax
je 0x4c67c8
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4c67c3
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x34]
push 0
push eax
call fcn.0058da40
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4c67c8
call fcn.004b4a10
inc edi
cmp edi, dword [esp + 0x2c]
jl 0x4c676a
xor edi, edi
cmp dword [esp + 0x24], edi
jle 0x4c683f
mov eax, dword [esp + edi*4 + 0x9c]
test eax, eax
je 0x4c6838
mov eax, dword [eax + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4c6833
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x34]
push 0
push eax
call fcn.0058da40
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4c6838
call fcn.004b4a10
inc edi
cmp edi, dword [esp + 0x24]
jl 0x4c67d7
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ffd2
mov esp, ebp
pop ebp
ret