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

Disassembly:
sub esp, 0x13c
mov eax, dword [0x716f80]
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 + 0x30], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x148], ebp
mov byte [esp + 0x14c], 0
call fcn.00656e20
mov eax, dword [ebx + 0x34]
add esp, 0xc
mov dword [esp + 0x30], eax
test esi, esi
jne 0x470047
lea eax, [esi + 7]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0065469c
add esp, 0x13c
ret
movzx edx, word [ebx + 0x18]
movzx ecx, byte [ebx + 0xc]
push edi
lea esi, [ecx + edx]
cmp esi, 2
jae 0x47005c
xor edi, edi
jmp 0x47008e
mov eax, dword [esp + 0x154]
test eax, eax
jne 0x47006b
xor edi, edi
jmp 0x470080
cmp eax, esi
jne 0x47007d
mov eax, dword [esp + 0x160]
lea edi, [eax - 2]
add edi, esi
jmp 0x470087
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 0x4700ab
movzx ecx, byte [ebx + 9]
add ecx, 8
jmp 0x4700bf
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 + 0x50], ebx
mov dword [esp + 0x30], ebx
nop dword [eax]
nop word [eax + eax]
lea edi, [esi*4]
test ebp, ebp
jne 0x471348
push ebp
lea eax, [esp + 0xd4]
add eax, edi
push eax
push ebx
push dword [esp + 0x40]
call fcn.004856d0
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x471348
lea ebx, [esp + 0xd0]
mov eax, dword [ebx + edi]
cmp dword [eax + 0x14], ebp
jge 0x470143
push eax
call fcn.00471fb0
mov ebp, eax
add esp, 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x470253
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 0x47026d
mov edi, dword [esp + 0x4c]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x4701ab
mov eax, dword [esp + 0x44]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x4701ab
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 + 0x58], 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 0x4700e0
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 + 0x58], 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 0x470226
mov ecx, edi
sub ecx, dword [ebp + 0x38]
lea eax, [ebx + ecx]
cmp eax, dword [edx + 0x28]
jg 0x470226
mov eax, dword [esp + 0x64]
push ebx
add eax, ecx
push edi
push eax
call fcn.006568a0
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.0047aec0
mov ebp, dword [esp + 0x34]
add esp, 0x10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x1c], ebp
jmp 0x4700e0
push edi
lea eax, [esp + 0xd4]
push 0
push eax
call fcn.00656e20
add esp, 0xc
xor edi, edi
jmp 0x470c05
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.004c19b0
mov edi, eax
add esp, 8
mov dword [esp + 0x98], edi
test edi, edi
jne 0x4702a0
lea ebp, [eax + 7]
jmp 0x470c05
mov ecx, dword [esp + 0xd0]
lea eax, [edi + esi*4]
mov ebx, dword [esp + 0x40]
xor edx, edx
mov dword [esp + 0x9c], eax
lea eax, [eax + esi*2]
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x54], eax
mov al, byte [ecx + 2]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x94], ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], edx
test ebx, ebx
jle 0x47052b
mov ebx, dword [esp + 0x90]
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 + 0x58], 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 0x470613
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 fcn.00656e20
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4703e5
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x20], edx
jb 0x4704fd
test edx, edx
je 0x4703b3
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 0x470380
mov edi, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x14], esi
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x4703e5
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 0x4703c4
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 0x47042e
mov edi, dword [esp + 0x58]
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 0x470400
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 0x4704e6
cmp byte [esp + 0x13], 0
jne 0x4704e6
movzx eax, word [esp + edx*4 + 0xf0]
mov ecx, dword [esp + 0x9c]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
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 + 0x34], ebp
call fcn.006568a0
mov ecx, dword [esp + 0x60]
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 0x4704bd
mov eax, dword [edi + 0x38]
mov ecx, dword [esi + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4704da
cmp ecx, 4
jae 0x4704da
mov eax, dword [esp + 0x2c]
mov byte [eax + ebp], 0
inc ebp
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x4704c6
mov dword [esp + 0x28], 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 0x470527
mov ecx, dword [esp + 0xd0]
jmp 0x470300
push 0x68cf8c
push 0x13434
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00458bb0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x470c05
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
xor edx, edx
movzx ebp, ax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 0x28]
add eax, 0xfffffff4
add ebp, eax
xor eax, eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], eax
test ebx, ebx
jle 0x47065b
mov ecx, ebx
lea esi, [esp + 0x118]
lea edi, [esp + 0x104]
rep movsd dword es:[edi], dword [esi]
nop dword [eax + eax]
lea ebx, [eax*4]
mov esi, dword [esp + ebx + 0xd0]
mov ecx, dword [esp + ebx + 0x118]
mov eax, dword [esi + 0x3c]
mov dword [esp + edx*4 + 0xa0], eax
mov dword [esp + edx*4 + 0xb8], ecx
test edx, edx
je 0x4705a8
cmp ecx, dword [esp + edx*4 + 0xb4]
jne 0x4705a8
dec edx
mov dword [esp + 0x14], edx
cmp byte [esp + 0x13], 0
jne 0x4705cc
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
xor ebp, ebp
sub edi, dword [esi + 0x14]
cmp byte [esi + 0xc], 0
mov dword [esp + ebx + 0xf0], edi
jbe 0x47063d
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 0x4705e3
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + eax*4 + 0xf0], edi
jmp 0x470641
push 0x68cf8c
push 0x1341c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00458bb0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x470c05
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
inc eax
mov ebp, dword [esp + 0x38]
inc edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
cmp eax, ebx
jl 0x470570
mov ecx, ebx
mov dword [esp + 0x20], 0
test ebx, ebx
mov dword [esp + 0x14], ecx
mov ebx, dword [esp + 0x90]
jle 0x47086b
mov eax, 1
xor edi, edi
mov dword [esp + 0x28], eax
mov ebp, dword [esp + edi + 0xf0]
mov edx, dword [esp + 0x38]
cmp ebp, edx
jle 0x470774
mov esi, dword [esp + 0x90]
lea edx, [esp + 0xf4]
add edx, edi
cmp eax, ecx
jl 0x4706c5
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jg 0x47097e
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 0x4706fa
push ecx
lea eax, [esp + 0x94]
push eax
call fcn.004777c0
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 0x470742
cmp ebx, esi
jge 0x470740
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x470738
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.004777c0
add esp, 8
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x470742
xor ecx, ecx
lea edx, [esp + 0xf4]
add edx, edi
lea eax, [ebx - 1]
mov dword [esp + edi + 0x104], eax
mov eax, dword [esp + 0x28]
add dword [edx], ecx
mov ecx, dword [esp + 0x14]
cmp ebp, dword [esp + 0x38]
jg 0x4706a6
mov ebx, dword [esp + 0x90]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + edi + 0x104]
cmp esi, ebx
jge 0x470823
mov ecx, dword [esp + 0x9c]
nop word [eax + eax]
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x4707b8
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004777c0
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 0x47081f
inc esi
mov dword [esp + edi + 0xf0], ebp
cmp byte [esp + 0x13], 0
mov dword [esp + edi + 0x104], esi
jne 0x470810
cmp esi, ebx
jge 0x47080e
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x470806
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004777c0
mov ecx, dword [esp + 0xa4]
add esp, 8
mov edx, dword [esp + 0x38]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x470810
xor eax, eax
sub dword [esp + edi + 0xf4], eax
cmp esi, ebx
jl 0x470790
cmp esi, ebx
jl 0x470833
mov eax, dword [esp + 0x28]
mov ecx, eax
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x470856
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x470844
mov eax, dword [esp + edi + 0x100]
jmp 0x470846
xor eax, eax
cmp esi, eax
jle 0x4709a8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc edx
inc eax
add edi, 4
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
cmp edx, ecx
jl 0x470683
lea eax, [ecx - 1]
mov edx, 1
mov dword [esp + 0x28], eax
test eax, eax
jle 0x470a60
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
mov esi, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
dec esi
mov edi, 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 ebp, [ecx + eax*2]
mov dword [esp + 0x2c], ebp
jne 0x4708dd
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004777c0
add esp, 8
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x9c]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x470905
lea eax, [esp + 0x90]
push esi
push eax
call fcn.004777c0
add esp, 8
movzx eax, ax
movzx ebp, word [ebp]
movzx edx, ax
mov dword [esp + 0x58], edx
test edi, edi
je 0x47094b
cmp dword [esp + 0x160], 0
jne 0x4709d2
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 0x4709d2
mov ecx, dword [esp + 0x1c]
add ebp, 2
mov eax, 0xfffffffe
add edi, ebp
mov ebp, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x20]
add ecx, eax
sub ebp, 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], ebp
mov dword [edx + ebx*4], esi
sub esi, 1
jns 0x4708e1
jmp 0x4709da
push 0x68cf8c
push 0x13499
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00458bb0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x470c05
push 0x68cf8c
push 0x134ba
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00458bb0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x470c05
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
lea ebx, [esp + 0xf0]
mov esi, dword [esp + 0x48]
mov dword [ebx + eax*4], edi
mov ebx, dword [esp + 0x90]
mov dword [esi + eax*4], ecx
cmp eax, 1
jle 0x470a01
mov ecx, dword [edx + eax*4 - 4]
jmp 0x470a03
xor ecx, ecx
cmp dword [edx + eax*4], ecx
jle 0x470a36
dec eax
lea edi, [esp + 0xf0]
mov dword [esp + 0x28], eax
mov ecx, esi
test eax, eax
jg 0x4708a2
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
lea edx, [esi + 1]
movzx eax, byte [eax]
mov dword [esp + 0x28], eax
jmp 0x470a80
push 0x68cf8c
push 0x134e6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00458bb0
add esp, 0x14
mov ebp, 0xb
xor edi, edi
jmp 0x470c05
mov eax, dword [esp + 0xd0]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x28], eax
test ecx, ecx
jle 0x470c6a
nop dword [eax + eax]
cmp esi, dword [esp + 0x40]
jge 0x470b34
mov edi, dword [esp + esi*4 + 0xd0]
mov dword [esp + esi*4 + 0xdc], edi
mov dword [esp + esi*4 + 0xd0], 0
mov dword [esp + 0x2c], edi
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x470acd
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x470acd
cmp dword [edx + 0x68], 0
je 0x470ac9
push ecx
call fcn.004ef960
jmp 0x470af3
xor ebp, ebp
jmp 0x470af8
mov ebp, dword [edx + 0x2c]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x470afc
mov eax, dword [edx + 0x9c]
push ecx
cmp eax, dword [edx + 0xa8]
jbe 0x470aee
call fcn.00495030
jmp 0x470af3
call fcn.00496320
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 0x470b27
test ebp, ebp
je 0x470bde
test ebp, ebp
jne 0x470c01
jmp 0x470bc9
cmp dword [esp + 0x160], 0
mov eax, dword [esp + 0x50]
push 0
cmovne eax, edx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x44]
call fcn.0046ce10
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x470c01
push dword [esp + 0x28]
mov edi, dword [esp + 0x30]
push edi
call fcn.00508b40
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 0x470bc1
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.004998d0
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x470c01
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], eax
inc esi
cmp esi, dword [esp + 0x14]
jge 0x470c6a
mov edx, 1
jmp 0x470a80
push 0x68cf8c
push 0x13507
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00458bb0
add esp, 0x14
mov ebp, 0xb
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x47135b
cmp dword [0x713018], 0
je 0x471351
mov eax, dword [0x7181b8]
test eax, eax
je 0x470c34
push eax
call dword [0x713068]
add esp, 4
push ebx
call dword [0x713044]
sub dword [0x718150], eax
dec dword [0x718174]
push ebx
call dword [0x71303c]
mov eax, dword [0x7181b8]
add esp, 8
test eax, eax
je 0x47135b
push eax
call dword [0x713070]
jmp 0x471358
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x470c8a
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 0x470c74
lea ebx, [edi - 1]
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebp
test ebx, ebx
jle 0x470d7c
mov eax, ebx
lea esi, [ebp + 1]
mov ebx, ebp
cmp esi, edi
jge 0x470d6f
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 0x470cb0
mov dword [esp + 0x2c], ebx
cmp ebx, ebp
je 0x470d6b
mov edi, dword [esp + 0x34]
xor edx, edx
mov eax, dword [0x713208]
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.004c5470
mov eax, dword [esp + 0x34]
push ebp
mov eax, dword [esp + eax*4 + 0xe8]
mov eax, dword [eax + 0x48]
push eax
mov word [eax + 0x1c], si
call fcn.004c5470
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.004c5470
mov eax, dword [esp + esi*4 + 0xf4]
add esp, 0x18
mov edi, dword [esp + 0x18]
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x2c]
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 0x470ca1
test byte [esp + 0x28], 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 0x470dc5
mov ecx, dword [esp + 0x40]
cmp ecx, edi
je 0x470dc5
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 0x470fd7
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 0x470fd3
mov eax, edi
mov dword [esp + 0x2c], 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 0x470e69
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 0x470e42
mov edi, dword [esp + ebx*4 + 0xdc]
jmp 0x470e49
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 0x470e34
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov esi, dword [esp + 0x2c]
cmp ebp, dword [esp + esi + 0x104]
mov esi, dword [esp + 0x90]
jne 0x470ea3
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x3c], eax
shl eax, 2
cmp byte [esp + 0x13], 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + eax + 0xdc]
mov dword [esp + 0x14], eax
je 0x470fc6
cmp ebx, dword [esp + 0x18]
jge 0x470ec7
mov eax, dword [eax + 4]
cmp eax, dword [esp + ebx*4 + 0x12c]
mov eax, dword [esp + 0x14]
jne 0x470ec7
cmp ecx, dword [edi + 0x38]
jb 0x470ec7
cmp ecx, dword [edi + 0x3c]
jb 0x470fc6
cmp word [esp + 0x54], 0
jne 0x470ef4
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.004998d0
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov dword [esp + 0x1c], ebp
jmp 0x470ef8
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 0x470f20
push eax
lea eax, [esp + 0x94]
push eax
call fcn.004777c0
add esp, 8
movzx ecx, ax
mov eax, dword [esp + 0x14]
cmp cx, word [eax + 0x10]
jbe 0x470fb0
test ebp, ebp
jne 0x470c01
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 0x470fba
mov ecx, dword [edi + 0x3c]
cmp ebp, ecx
jae 0x470f7c
add eax, ebp
cmp eax, ecx
jbe 0x470f7c
push 0x119c2
call fcn.004ad240
mov ebp, eax
add esp, 4
mov dword [esp + 0x24], ebp
jmp 0x470fa8
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.004998d0
mov ebp, dword [esp + 0x38]
add esp, 0x14
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x470c01
jmp 0x470fbe
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 0x470e11
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
test eax, eax
jle 0x471178
mov eax, dword [esp + 0x54]
movzx ebp, ax
mov dword [esp + 0x58], 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 0x47104c
mov ecx, dword [ecx + 0x38]
mov eax, dword [ebx]
mov dword [ecx + 8], eax
jmp 0x4710f6
cmp byte [esp + 0x13], 0
je 0x4710dd
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 0x4710cb
jb 0x47108e
cmp ecx, 0x7f
ja 0x4710a0
mov eax, 1
and cl, 0x7f
mov byte [ebp], cl
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x4710f6
test edx, edx
ja 0x4710cb
jb 0x4710ae
cmp ecx, 0x3fff
ja 0x4710cb
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 0x4710f6
push edx
push ecx
push ebp
call fcn.0049a1b0
add esp, 0xc
xor ebp, ebp
lea edx, [eax + 4]
jmp 0x4710f6
sub ebx, 4
cmp eax, 4
jne 0x4710f6
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 0x47110f
inc eax
cmp eax, 6
jl 0x471100
mov ecx, dword [esp + eax*4 + 0xa0]
cmp ebx, ecx
jae 0x471121
lea eax, [edx + ebx]
cmp eax, ecx
ja 0x471169
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.004871b0
mov edi, dword [esp + 0x30]
mov ebp, eax
add esp, 0x18
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x470c05
inc ebx
lea eax, [edi - 1]
mov dword [esp + 0x3c], ebx
cmp ebx, eax
jge 0x47117c
mov ebp, dword [esp + 0x58]
jmp 0x471000
push 0x68cf8c
push 0x135cf
jmp 0x470be8
mov ebp, dword [esp + 0x1c]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x3c], ecx
cmp ecx, edi
jge 0x471264
nop
mov eax, ecx
cdq
mov edi, eax
xor edi, edx
sub edi, edx
cmp byte [esp + edi + 0x140], 0
jne 0x471253
lea ebx, [edi*4]
test ecx, ecx
jns 0x4711c6
mov eax, dword [esp + ebx + 0x114]
cmp eax, dword [esp + ebx + 0x100]
jl 0x471253
test edi, edi
jne 0x4711d7
mov edx, dword [esp + 0x104]
xor eax, eax
xor ecx, ecx
jmp 0x47120a
cmp edi, dword [esp + 0x40]
jge 0x4711ef
xor eax, eax
cmp byte [esp + 0x13], al
sete al
add eax, dword [esp + ebx + 0x114]
jmp 0x4711f1
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.0047b070
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x24], ebp
test ebp, ebp
jne 0x470c01
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 0x471190
cmp dword [esp + 0x15c], 0
je 0x4712cc
mov ebx, dword [esp + 0x4c]
cmp word [ebx + 0x18], 0
jne 0x4712cc
mov ecx, dword [esp + 0xdc]
movzx eax, byte [ebx + 9]
cmp eax, dword [ecx + 0x14]
jg 0x4712cc
push 0xffffffffffffffff
push ecx
call fcn.0047a780
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push ebx
push dword [esp + 0xec]
call fcn.00479870
mov ebp, dword [esp + 0x38]
add esp, 0x14
test ebp, ebp
jne 0x471314
mov eax, dword [esp + 0xdc]
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.00483920
add esp, 0xc
mov ebp, eax
jmp 0x471314
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x471314
cmp word [esp + 0x54], 0
jne 0x471314
xor esi, esi
test edi, edi
jle 0x471314
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.004998d0
mov ecx, dword [esp + 0x48]
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4712e4
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x40]
mov esi, edi
cmp edi, ebx
jge 0x470c05
mov eax, dword [esp + esi*4 + 0xd0]
test ebp, ebp
jne 0x47133e
push dword [eax + 4]
push eax
push dword [eax + 0x34]
call fcn.00483920
add esp, 0xc
mov ebp, eax
inc esi
cmp esi, ebx
jl 0x471322
jmp 0x470c05
lea eax, [edi + 4]
push eax
jmp 0x470254
push ebx
call dword [0x71303c]
add esp, 4
mov ebx, dword [esp + 0x40]
xor esi, esi
test ebx, ebx
jle 0x471380
mov eax, dword [esp + esi*4 + 0xd0]
test eax, eax
je 0x47137b
push dword [eax + 0x48]
call fcn.004c4690
add esp, 4
inc esi
cmp esi, ebx
jl 0x471365
xor esi, esi
test edi, edi
jle 0x4713ab
nop word [eax + eax]
mov eax, dword [esp + esi*4 + 0xdc]
test eax, eax
je 0x4713a6
push dword [eax + 0x48]
call fcn.004c4690
add esp, 4
inc esi
cmp esi, edi
jl 0x471390
mov ecx, dword [esp + 0x148]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065469c
add esp, 0x13c
ret