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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x5876e0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
mov eax, ecx
mov dword [esp + 0x10], 0
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x44], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x78], esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x120], 0
mov byte [esp + 0x124], 0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x38], ecx
push edi
test esi, esi
jne 0x47306a
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0050904e
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x12]
movzx ecx, byte [eax + 1]
lea esi, [ecx + edi]
cmp esi, 2
jge 0x47307e
xor edx, edx
jmp 0x47309b
test edx, edx
je 0x473091
cmp edx, esi
jne 0x473090
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x473094
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x70], edx
mov dword [esp + 0x44], eax
mov eax, edx
sub eax, ecx
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x4730c3
mov eax, dword [esp + 0x48]
movzx ecx, byte [eax + 5]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x4730de
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x14]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edi, dword [ecx]
bswap edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov edi, edi
mov eax, dword [esp + 0x3c]
cmp edi, dword [eax + 0x30]
jbe 0x473121
push 0x571334
push 0xe1c3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
add esp, 0x14
mov edi, 0xb
jmp 0x4731d4
lea ecx, [esp + 0x1c]
mov edx, edi
push 0
push ecx
mov ecx, dword [eax]
call fcn.00467a70
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4731d8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0x80], eax
cmp byte [eax], 0
jne 0x4731d2
mov ecx, dword [edx + 8]
mov edi, dword [esp + 0x34]
cmp edi, dword [ecx + 0x54]
je 0x473181
mov eax, dword [edx + 4]
cmp edi, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 0x54], edi
mov byte [ecx + 5], al
mov ecx, dword [esp + esi*4 + 0x80]
call fcn.0046d7b0
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x4731d2
mov ecx, dword [esp + esi*4 + 0x80]
test ecx, ecx
je 0x4731d8
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x4731c0
call fcn.004668d0
mov ecx, edi
call fcn.00467a40
mov edi, dword [esp + 0x10]
jmp 0x4731d8
call fcn.00462670
mov ecx, edi
call fcn.00467a40
mov edi, dword [esp + 0x10]
jmp 0x4731d8
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x24], edi
test edi, edi
jne 0x4744be
mov eax, dword [esp + esi*4 + 0x80]
movzx ecx, word [eax + 0x12]
movzx eax, byte [eax + 1]
inc eax
add eax, dword [esp + 0x18]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x18], ecx
test eax, eax
je 0x473366
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x70]
movzx ecx, word [edx + 0x16]
lea eax, [edi + esi]
cmp eax, ecx
jne 0x473259
cmp byte [edx + 1], 0
je 0x473259
mov eax, dword [edx + 0x20]
push eax
mov dword [esp + esi*4 + 0x114], eax
push edx
mov edi, dword [eax]
mov eax, dword [edx + 0x4c]
bswap edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0xa0], eax
mov eax, dword [esp + 0x48]
mov byte [eax + 1], 0
jmp 0x4730f0
movzx eax, byte [edx + 1]
mov ecx, edi
sub ecx, eax
mov eax, dword [edx + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x14]
movzx ecx, cx
and ecx, eax
mov eax, dword [edx + 0x38]
add eax, ecx
push eax
mov dword [esp + esi*4 + 0x114], eax
push edx
mov edi, dword [eax]
mov eax, dword [edx + 0x4c]
bswap edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], edx
mov dword [esp + esi*4 + 0xa0], edx
test byte [eax + 0x18], 4
je 0x4732ff
mov eax, dword [esp + 0x48]
mov edi, dword [esp + esi*4 + 0x110]
mov ecx, edi
mov ebx, dword [esp + 0x3c]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x28]
mov ebx, 0
jg 0x473322
mov eax, dword [esp + 0x7c]
push edx
add eax, ecx
push edi
push eax
call fcn.00511d80
mov ecx, dword [esp + 0x54]
add esp, 0xc
mov edx, dword [esp + 0x40]
sub edi, dword [ecx + 0x38]
add edi, dword [esp + 0x7c]
mov dword [esp + esi*4 + 0x110], edi
mov edi, dword [esp + 0x34]
jmp 0x473303
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ecx + 1]
push edx
mov edx, dword [esp + 0x78]
sub edx, eax
add edx, esi
call fcn.004721f0
add esp, 8
jmp 0x4730f0
push 0x571334
push 0xf5c8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
add esp, 0x14
lea eax, [esi*4 + 4]
mov ebx, 0xb
push eax
lea eax, [esp + 0x84]
push 0
push eax
call fcn.00509d10
add esp, 0xc
xor eax, eax
jmp 0x47448e
mov eax, dword [esp + 0x3c]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x24]
lea ecx, [esi + esi*2]
lea ecx, [eax + ecx*2]
call fcn.00459a10
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
test eax, eax
jne 0x473392
lea ebx, [eax + 7]
jmp 0x47448e
mov ecx, dword [esp + 0x80]
lea eax, [eax + esi*4]
mov dword [esp + 0x58], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x50], ecx
movzx eax, byte [ecx + 4]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x6c], eax
movzx eax, byte [ecx + 3]
mov dword [esp + 0x60], eax
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [esp + 0x44], eax
jle 0x4735d4
shl eax, 2
mov dword [esp + 0x40], eax
mov edi, dword [esp + eax + 0x80]
mov dword [esp + 0x78], edi
movzx eax, word [edi + 0x14]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0xe]
mov dword [esp + 0x74], eax
add esi, edx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x473787
movzx eax, byte [edi + 1]
movzx ecx, word [edi + 0x12]
add ecx, eax
mov eax, dword [esp + 0x58]
add ecx, ecx
push ecx
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.00509d10
add esp, 0xc
cmp byte [edi + 1], 0
jbe 0x4734ae
movzx edx, word [edi + 0x16]
test edx, edx
jle 0x47347d
mov edi, dword [esp + 0x2c]
mov ax, word [esi]
add esi, 2
mov ebx, dword [esp + 0x74]
mov ch, al
mov cl, ah
movzx eax, cx
movzx ecx, bx
mov ebx, dword [esp + 0x20]
and eax, ecx
mov ecx, dword [esp + 0x14]
add eax, edi
mov dword [ecx + ebx*4], eax
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebx
dec edx
jne 0x473446
mov edi, dword [esp + 0x78]
mov dword [esp + 0x18], esi
xor edx, edx
cmp byte [edi + 1], dl
jbe 0x4734ae
mov esi, dword [esp + 0x14]
lea ecx, [edi + 0x20]
jmp 0x473490
mov eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [esi + ebx*4], eax
inc edx
movzx eax, byte [edi + 1]
inc ebx
mov dword [esp + 0x4c], ebx
cmp edx, eax
jl 0x473490
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
movzx eax, word [edi + 0xe]
xor edx, edx
add eax, dword [esp + 0x2c]
movzx ecx, word [edi + 0x12]
lea eax, [eax + ecx*2]
mov ecx, eax
sub ecx, esi
inc ecx
shr ecx, 1
cmp esi, eax
cmova ecx, edx
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x47350c
mov edi, ecx
mov ax, word [esi]
lea esi, [esi + 2]
mov ebx, dword [esp + 0x74]
mov ch, al
mov cl, ah
inc edx
movzx eax, cx
movzx ecx, bx
mov ebx, dword [esp + 0x20]
and eax, ecx
mov ecx, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
mov dword [ecx + ebx*4], eax
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebx
cmp edx, edi
jb 0x4734d5
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + ecx + 0xe4], ebx
cmp dword [esp + 0x30], eax
jge 0x4735c1
cmp dword [esp + 0x60], 0
jne 0x4735c1
movzx eax, word [esp + ecx + 0xa0]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x1c]
push eax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x60]
add esi, ecx
add ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], ecx
push dword [esp + eax + 0x114]
push esi
call fcn.00511d80
mov eax, dword [esp + 0x78]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x58]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x6c]
sub word [edx + ebx*2], ax
cmp byte [edi + 4], 0
jne 0x473595
mov eax, dword [edi + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4735b8
cmp word [edx + ebx*2], 4
jae 0x4735b8
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + eax], 0
inc eax
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x4735a4
mov dword [esp + 0x5c], eax
inc ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebx
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x44]
jl 0x4733d2
mov eax, dword [esp + 0x6c]
xor ecx, ecx
movzx edx, ax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add edx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], edx
test eax, eax
jle 0x473698
lea ecx, [ecx]
mov esi, dword [esp + ecx*4 + 0x80]
mov edi, edx
movzx eax, word [esi + 0x10]
sub edi, eax
lea eax, [esp + 0xa0]
lea eax, [eax + ecx*4]
mov dword [eax], edi
mov dword [esp + 0x74], eax
js 0x4737af
cmp byte [esi + 1], 0
mov dword [esp + 0x78], 0
jbe 0x473679
mov ebx, dword [esp + 0x78]
lea ecx, [esi + 0x20]
mov dword [esp + 0x1c], ecx
mov edi, edi
push dword [ecx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x24]
inc ebx
movzx eax, ax
add ecx, 4
add eax, 2
mov dword [esp + 0x24], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 1]
cmp ebx, eax
jl 0x473640
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x5c]
mov dword [eax], edi
mov eax, dword [esp + ecx*4 + 0xe4]
mov dword [esp + ecx*4 + 0xb4], eax
inc ecx
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
cmp ecx, eax
jl 0x473600
mov dword [esp + 0x30], 0
mov ecx, eax
mov dword [esp + 0x2c], ecx
test eax, eax
jle 0x473908
xor edx, edx
lea eax, [esp + 0xb4]
mov edi, 1
mov dword [esp + 0x14], edx
sub eax, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
jmp 0x4736d0
mov eax, dword [esp + 0x5c]
cmp dword [esp + edx + 0xa0], eax
jle 0x473800
cmp edi, ecx
jl 0x473707
lea ecx, [edi + 1]
mov dword [esp + 0x2c], ecx
cmp ecx, 5
jg 0x4739e7
mov dword [esp + edx + 0xa4], 0
mov dword [esp + edx + 0xb8], ebx
mov esi, dword [esp + edx + 0xb4]
mov ecx, dword [esp + 0x58]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x47373c
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.004724d0
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
movzx eax, ax
mov dword [esp + 0x20], ebx
movzx eax, ax
add eax, 2
sub dword [esp + edx + 0xa0], eax
cmp dword [esp + 0x60], 0
jne 0x4737d9
cmp esi, ebx
jge 0x4737d7
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x47377b
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.004724d0
mov ebx, dword [esp + 0x4c]
movzx eax, ax
mov dword [esp + 0x20], ebx
mov edx, dword [esp + 0x14]
movzx eax, ax
add eax, 2
jmp 0x4737d9
push 0x571334
push 0xf60b
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
add esp, 0x14
mov ebx, 0xb
jmp 0x47448a
push 0x571334
push 0xf66d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
add esp, 0x14
mov ebx, 0xb
jmp 0x47448a
xor eax, eax
add dword [esp + edx + 0xa4], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
mov dword [esp + edx + 0xb4], edi
mov edi, dword [esp + 0x18]
cmp dword [esp + edx + 0xa0], eax
jg 0x4736e1
cmp dword [esp + edx + 0xb4], ebx
jge 0x4738b2
mov edi, dword [esp + 0x58]
mov esi, dword [esp + edx + 0xb4]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x47383b
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.004724d0
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
movzx eax, ax
movzx ecx, ax
mov eax, dword [esp + edx + 0xa0]
add ecx, 2
add eax, ecx
cmp eax, dword [esp + 0x5c]
jg 0x4738a6
inc esi
mov dword [esp + edx + 0xa0], eax
cmp dword [esp + 0x60], 0
mov dword [esp + edx + 0xb4], esi
jne 0x473897
cmp esi, ebx
jge 0x473895
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x473889
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.004724d0
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x58]
movzx eax, ax
mov edx, dword [esp + 0x14]
movzx ecx, ax
add ecx, 2
jmp 0x473897
xor ecx, ecx
sub dword [esp + edx + 0xa4], ecx
cmp esi, ebx
jl 0x473811
mov edi, dword [esp + 0x18]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + edx + 0xb4]
cmp ecx, ebx
jl 0x4738c5
mov ecx, edi
mov dword [esp + 0x2c], ecx
jmp 0x4738e3
cmp dword [esp + 0x30], 0
jle 0x4738d5
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + edx]
jmp 0x4738d7
xor eax, eax
cmp ecx, eax
jle 0x473a13
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add edx, 4
inc eax
mov dword [esp + 0x14], edx
inc edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], edi
cmp eax, ecx
jl 0x4736d0
mov edx, dword [esp + 0x54]
mov dword [esp + 0x14], edx
dec ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jle 0x473a94
jmp 0x473920
shl ecx, 2
mov dword [esp + 0x18], ecx
mov eax, dword [esp + ecx + 0x9c]
mov edi, dword [esp + ecx + 0xa0]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xb4]
sub eax, 4
mov dword [esp + 0x30], eax
mov esi, dword [eax + ecx]
mov eax, dword [esp + 0x58]
dec esi
mov edx, esi
sub edx, dword [esp + 0x60]
inc edx
lea ebx, [edx + edx]
cmp word [ebx + eax], 0
jne 0x473970
lea ecx, [esp + 0x4c]
call fcn.004724d0
lea esp, [esp]
mov edx, dword [esp + 0x58]
cmp word [edx + esi*2], 0
jne 0x47398a
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.004724d0
mov edx, dword [esp + 0x58]
test edi, edi
je 0x4739b6
cmp dword [ebp + 0x10], 0
jne 0x473a3f
movzx eax, word [edx + esi*2]
mov ecx, dword [esp + 0x20]
sub ecx, eax
movzx eax, word [ebx + edx]
add eax, 2
sub ecx, 2
add eax, edi
cmp eax, ecx
jg 0x473a3f
movzx eax, word [ebx + edx]
mov ecx, 0xfffffffe
add eax, 2
sub ebx, 2
add edi, eax
movzx eax, word [edx + esi*2]
mov edx, dword [esp + 0x18]
sub ecx, eax
mov eax, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov dword [ecx + edx], esi
dec esi
jns 0x473970
jmp 0x473a47
push 0x571334
push 0xf679
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
add esp, 0x14
mov ebx, 0xb
mov eax, dword [esp + 0x54]
jmp 0x47448e
push 0x571334
push 0xf69a
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
mov eax, dword [esp + 0x68]
add esp, 0x14
mov ebx, 0xb
jmp 0x47448e
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [esp + edx + 0xa0], edi
mov dword [esp + edx + 0x9c], eax
cmp ecx, 1
jle 0x473a68
mov eax, dword [esp + 0x30]
mov eax, dword [eax + edx - 4]
jmp 0x473a6a
xor eax, eax
mov esi, dword [esp + 0x30]
cmp dword [esi + edx], eax
jle 0x473b17
dec ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jg 0x473920
mov eax, dword [esp + 0x54]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x80]
xor edi, edi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x40], eax
lea eax, [edi + 1]
cmp dword [esp + 0x2c], edi
jle 0x473c25
cmp edi, dword [esp + 0x44]
jge 0x473b86
mov eax, dword [esp + edi*4 + 0x80]
mov dword [esp + edi*4 + 0x8c], eax
mov dword [esp + edi*4 + 0x80], 0
mov dword [esp + 0x1c], eax
mov esi, dword [eax + 0x48]
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x473b69
test byte [esi + 0x18], 4
je 0x473b47
mov eax, dword [ecx + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x473b47
cmp dword [ecx + 0x68], edx
je 0x473b43
mov ecx, esi
call fcn.00463e10
test eax, eax
je 0x473b43
mov ecx, esi
call fcn.00466e70
jmp 0x473b63
push 0x571334
push 0xf6c4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
mov eax, dword [esp + 0x68]
add esp, 0x14
mov ebx, 0xb
jmp 0x47448e
xor edx, edx
jmp 0x473b65
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0xa0]
mov ecx, esi
jbe 0x473b5e
call fcn.004682f0
jmp 0x473b63
call fcn.00468230
mov edx, eax
mov dword [esp + 0x10], edx
inc dword [esp + 0x28]
mov dword [esp + 0x24], edx
test edx, edx
je 0x473c15
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x47448e
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x1c]
mov ecx, dword [esp + 0x34]
cmovne ecx, eax
lea eax, [esp + 0x38]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push eax
call fcn.004713a0
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
test eax, eax
jne 0x474486
mov esi, dword [esp + 0x1c]
mov ecx, esi
mov edx, dword [esp + 0x40]
call fcn.0046dac0
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x28]
mov dword [esp + edi*4 + 0x8c], esi
mov dword [esp + edi*4 + 0xe4], ebx
cmp byte [ecx + 0x11], 0
je 0x473c0d
mov edx, dword [esi + 0x54]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x4c]
push dword [eax + 0x54]
push 5
call fcn.0046c9a0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x474486
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
inc edi
mov eax, 1
cmp edi, dword [esp + 0x2c]
jl 0x473ab4
mov esi, dword [esp + 0x28]
xor ecx, ecx
test esi, esi
jle 0x473c77
nop
mov eax, dword [esp + ecx*4 + 0x8c]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0xf8], edx
mov dword [esp + ecx*4 + 0xc8], edx
mov ax, word [eax + 0x18]
mov word [esp + ecx*2 + 0x110], ax
xor eax, eax
test ecx, ecx
jle 0x473c72
lea ecx, [ecx]
cmp dword [esp + eax*4 + 0xf8], edx
je 0x473d60
inc eax
cmp eax, ecx
jl 0x473c60
inc ecx
cmp ecx, esi
jl 0x473c30
xor edi, edi
mov dword [esp + 0x34], edi
test esi, esi
jle 0x473ed9
xor ebx, ebx
lea ecx, [ebx + 1]
cmp esi, ecx
jle 0x473cc8
mov edi, dword [esp + 0x28]
xor esi, esi
jmp 0x473ca0
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xc8]
cmp eax, dword [esp + esi + 0xc8]
jae 0x473cbb
mov ebx, ecx
mov esi, edx
inc ecx
cmp ecx, edi
jl 0x473ca0
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + ebx*4 + 0xc8]
mov dword [esp + 0x1c], eax
mov dword [esp + ebx*4 + 0xc8], 0xffffffff
cmp ebx, edi
je 0x473ec8
jle 0x473de7
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x30]
mov eax, dword [esp + ebx*4 + 0x8c]
inc esi
add esi, ebx
push esi
mov edi, dword [eax + 0x48]
xor eax, eax
push dword [edi + 0x14]
mov word [edi + 0x18], ax
mov eax, dword [edi + 0x1c]
push dword [edi]
push dword [eax + 0x2c]
call dword [0x58c1c8]
movzx eax, word [edi + 0x18]
add esp, 0x10
mov dword [edi + 0x14], esi
test al, 2
je 0x473de3
test al, 8
je 0x473de3
mov ecx, dword [edi + 0x1c]
cmp dword [ecx + 8], edi
jne 0x473d51
mov eax, dword [edi + 0x24]
test eax, eax
je 0x473d4e
test byte [eax + 0x18], 8
je 0x473d4e
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x473d41
mov dword [ecx + 8], eax
mov edx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
test edx, edx
je 0x473d88
mov dword [edx + 0x24], eax
jmp 0x473d8b
push 0x571334
push 0xf70e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045be30
add esp, 0x14
mov ebx, 0xb
jmp 0x47448a
mov dword [ecx + 4], eax
mov edx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
test edx, edx
je 0x473d9a
mov dword [edx + 0x20], eax
jmp 0x473da9
mov dword [ecx], eax
test eax, eax
jne 0x473da9
cmp byte [ecx + 0x20], al
je 0x473da9
mov byte [ecx + 0x21], 2
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov eax, dword [ecx]
mov dword [edi + 0x20], eax
test eax, eax
je 0x473dc5
mov dword [eax + 0x24], edi
jmp 0x473dd2
cmp byte [ecx + 0x20], 0
mov dword [ecx + 4], edi
je 0x473dd2
mov byte [ecx + 0x21], 1
cmp dword [ecx + 8], 0
mov dword [ecx], edi
jne 0x473de3
test byte [edi + 0x18], 8
jne 0x473de3
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x34]
mov eax, dword [esp + edi*4 + 0x8c]
mov esi, dword [eax + 0x48]
mov ax, word [esp + ebx*2 + 0x110]
mov ebx, dword [esp + 0x1c]
push ebx
push dword [esi + 0x14]
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x1c]
push dword [esi]
push dword [eax + 0x2c]
call dword [0x58c1c8]
movzx eax, word [esi + 0x18]
add esp, 0x10
mov dword [esi + 0x14], ebx
test al, 2
je 0x473eba
test al, 8
je 0x473eba
mov ecx, dword [esi + 0x1c]
cmp dword [ecx + 8], esi
jne 0x473e50
mov eax, dword [esi + 0x24]
test eax, eax
je 0x473e4d
lea esp, [esp]
test byte [eax + 0x18], 8
je 0x473e4d
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x473e40
mov dword [ecx + 8], eax
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
test edx, edx
je 0x473e5f
mov dword [edx + 0x24], eax
jmp 0x473e62
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
test edx, edx
je 0x473e71
mov dword [edx + 0x20], eax
jmp 0x473e80
mov dword [ecx], eax
test eax, eax
jne 0x473e80
cmp byte [ecx + 0x20], al
je 0x473e80
mov byte [ecx + 0x21], 2
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov eax, dword [ecx]
mov dword [esi + 0x20], eax
test eax, eax
je 0x473e9c
mov dword [eax + 0x24], esi
jmp 0x473ea9
cmp byte [ecx + 0x20], 0
mov dword [ecx + 4], esi
je 0x473ea9
mov byte [ecx + 0x21], 1
cmp dword [ecx + 8], 0
mov dword [ecx], esi
jne 0x473eba
test byte [esi + 0x18], 8
jne 0x473eba
mov dword [ecx + 8], esi
mov eax, dword [esp + edi*4 + 0x8c]
mov esi, dword [esp + 0x28]
mov dword [eax + 0x54], ebx
inc edi
mov dword [esp + 0x34], edi
cmp edi, esi
jl 0x473c85
mov ebx, dword [esp + 0x20]
test byte [esp + 0x40], 8
mov eax, dword [esp + esi*4 + 0x88]
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 0x54]
bswap eax
mov dword [ecx], eax
jne 0x473f24
mov ecx, dword [esp + 0x44]
cmp ecx, esi
je 0x473f24
cmp esi, ecx
lea edx, [esp + 0x80]
lea eax, [esp + 0x8c]
cmovle eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + esi*4 + 0x88]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x3c]
cmp byte [edx + 0x11], 0
je 0x4740fa
mov esi, dword [esp + 0x8c]
xor edi, edi
mov dword [esp + 0x64], 0
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x12]
mov dword [esp + 0x1c], eax
movzx eax, byte [esi + 1]
add ecx, eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
test ebx, ebx
jle 0x474101
xor eax, eax
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x14]
mov edx, dword [edx + edi*4]
mov dword [esp + 0x30], edx
cmp edi, dword [esp + 0x18]
jne 0x473fcf
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, dword [esp + 0x28]
jge 0x473f98
mov edx, dword [esp + ecx*4 + 0x8c]
jmp 0x473f9f
mov edx, dword [esp + ecx*4 + 0x80]
movzx eax, byte [edx + 1]
movzx ecx, word [edx + 0x12]
add ecx, eax
xor eax, eax
cmp dword [esp + 0x60], eax
sete al
add eax, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
cmp edi, dword [esp + eax + 0xb4]
jne 0x473ffa
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
shl eax, 2
cmp dword [esp + 0x60], 0
mov dword [esp + 0x2c], eax
mov esi, dword [esp + eax + 0x8c]
je 0x4740ed
cmp ecx, dword [esp + 0x28]
jge 0x474020
mov eax, dword [esi + 0x54]
cmp eax, dword [esp + ecx*4 + 0xf8]
jne 0x474020
mov eax, dword [esp + 0x1c]
cmp edx, eax
jb 0x474020
add eax, dword [esp + 0x40]
cmp edx, eax
jb 0x4740e9
cmp word [esp + 0x6c], 0
jne 0x47404a
mov edx, dword [edx]
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push eax
push dword [esi + 0x54]
bswap edx
push 5
call fcn.0046c9a0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x474071
mov edx, edi
lea ecx, [esp + 0x4c]
call fcn.004724d0
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x4c]
movzx eax, ax
cmp ax, word [esi + 0xc]
jbe 0x4740dd
cmp dword [esp + 0x10], 0
jne 0x474486
lea eax, [esp + 0xc8]
push eax
push dword [esp + 0x34]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [esp + 0xe4]
add esp, 0xc
cmp eax, dword [esp + 0xd4]
jae 0x4740e9
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x24]
mov ecx, dword [esi + 0x34]
push eax
movzx eax, word [esp + 0xde]
push dword [esi + 0x54]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.0046c9a0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x4740e1
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x474486
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
inc edi
cmp edi, ebx
jl 0x473f73
mov esi, dword [esp + 0x8c]
mov eax, dword [esp + 0x28]
xor edi, edi
dec eax
test eax, eax
jle 0x47428b
mov eax, dword [esp + edi*4 + 0x8c]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [esp + edi*4 + 0xb4]
mov esi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x58]
movzx ecx, word [ecx + eax*2]
movzx edx, cx
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x6c]
movzx eax, cx
mov ecx, dword [esp + 0x38]
add edx, eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
cmp byte [ecx + 4], 0
mov ecx, dword [esp + 0x64]
jne 0x474173
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x474239
cmp dword [esp + 0x60], 0
je 0x47421f
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esp + 0x20]
push dword [eax - 4]
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [eax + 0x50]
call eax
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0xfc]
mov esi, eax
mov ecx, dword [esp + 0xf8]
add eax, 4
mov dword [esp + 0x114], edx
mov dword [esp + 0x64], eax
test edx, edx
ja 0x47420c
jb 0x4741c7
cmp ecx, 0x7f
ja 0x4741db
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x47423d
test edx, edx
ja 0x47420c
jb 0x4741e9
cmp ecx, 0x3fff
ja 0x47420c
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
shr edx, 7
or al, 0x80
mov edx, dword [esp + 0x64]
mov byte [edx], al
mov eax, 2
mov byte [edx + 1], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x47423d
push edx
push ecx
mov ecx, eax
call fcn.0045d860
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x47423d
sub esi, 4
cmp cx, 4
jne 0x47423d
mov eax, dword [esp + 0x48]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x18]
add dword [esp + 0x68], edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x3c]
push dword [ecx + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push edx
mov edx, dword [esp + 0x80]
push esi
lea edx, [edx + edi]
call fcn.00472320
mov eax, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
jne 0x474486
mov eax, dword [esp + 0x28]
inc edi
dec eax
cmp edi, eax
jl 0x474110
mov esi, dword [esp + 0x8c]
mov edi, dword [esp + 0x28]
mov eax, 1
sub eax, edi
mov dword [esp + 0x68], eax
cmp eax, edi
jge 0x47438a
cdq
lea edi, [esp + 0x124]
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x474366
cmp dword [esp + 0x68], 0
jge 0x4742d6
mov eax, dword [esp + ecx*4 + 0xe0]
cmp eax, dword [esp + ecx*4 + 0xb0]
jl 0x474366
test ecx, ecx
jne 0x4742e7
mov edx, dword [esp + 0xb4]
xor ebx, ebx
xor eax, eax
jmp 0x474316
cmp ecx, dword [esp + 0x44]
jge 0x4742fd
xor ebx, ebx
cmp dword [esp + 0x60], ebx
sete bl
add ebx, dword [esp + ecx*4 + 0xe0]
mov edx, dword [esp + ecx*4 + 0xb4]
xor eax, eax
cmp dword [esp + 0x60], eax
sete al
add eax, dword [esp + ecx*4 + 0xb0]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + esi + 0x90]
push edx
push eax
mov edx, ebx
call fcn.00472b10
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esp + 0x24], ebx
test ebx, ebx
jne 0x473a0a
mov eax, dword [esp + esi + 0x8c]
mov cx, word [esp + 0x5c]
sub cx, word [esp + esi + 0xa0]
mov ebx, dword [esp + 0x4c]
mov byte [edi], 1
mov word [eax + 0x10], cx
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x28]
inc eax
mov dword [esp + 0x68], eax
cmp eax, edi
jl 0x4742a2
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0xc], 0
je 0x4743fc
mov ebx, dword [esp + 0x48]
cmp word [ebx + 0x12], 0
jne 0x4743fc
movzx eax, byte [ebx + 5]
cmp ax, word [esi + 0x10]
ja 0x4743fc
mov ecx, esi
call fcn.0046cf70
mov ecx, dword [esp + 0x8c]
mov edx, ebx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
call fcn.00472f10
mov edi, dword [esp + 0x28]
add esp, 4
mov dword [esp + 0x10], edi
test edi, edi
jne 0x47444c
mov ecx, dword [esp + 0x8c]
mov edx, ecx
push dword [ecx + 0x54]
mov ecx, dword [ecx + 0x34]
call fcn.00471a00
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
jmp 0x47444c
mov ecx, dword [esp + 0x3c]
cmp byte [ecx + 0x11], 0
je 0x474448
cmp word [esp + 0x6c], 0
jne 0x474448
xor esi, esi
test edi, edi
jle 0x474448
mov eax, dword [esp + esi*4 + 0x8c]
lea edx, [esp + 0x24]
push edx
push dword [eax + 0x54]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.0046c9a0
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x474414
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
jmp 0x47444c
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
cmp esi, ebx
jge 0x474486
jmp 0x474460
mov ecx, dword [esp + esi*4 + 0x80]
test edi, edi
jne 0x47447d
push dword [ecx + 0x54]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00471a00
add esp, 4
mov edi, eax
inc esi
cmp esi, ebx
jl 0x474460
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
call fcn.00459b20
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x4744f5
nop
mov ecx, dword [esp + esi*4 + 0x80]
test ecx, ecx
je 0x4744f0
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x4744e0
call fcn.004668d0
jmp 0x4744e5
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x84]
push 0
push eax
call fcn.00509d10
mov ebx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
jmp 0x47448e
call fcn.00462670
mov ecx, edi
call fcn.00467a40
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x4744a0
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
jle 0x474533
nop
mov ecx, dword [esp + esi*4 + 0x8c]
test ecx, ecx
je 0x47452e
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x18], 0x40
mov edi, dword [ecx + 0x10]
je 0x47451e
call fcn.004668d0
jmp 0x474523
call fcn.00462670
mov ecx, edi
call fcn.00467a40
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x474500
mov ecx, dword [esp + 0x12c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050904e
mov esp, ebp
pop ebp
ret