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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, ecx
mov dword [esp + 0x10], 0
push ebx
xor ebx, ebx
mov dword [esp + 0x2c], eax
push esi
mov ecx, dword [eax + 0x34]
push edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0xd4], 0
mov byte [esp + 0xd8], 0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ecx
cmp dword [ebp + 8], ebx
jne 0x4215d8
lea eax, [ebx + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x16]
movzx ecx, byte [eax + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x4215ec
xor edx, edx
jmp 0x421609
test edx, edx
je 0x4215ff
cmp edx, esi
jne 0x4215fe
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x421602
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x68], edx
mov dword [esp + 0x44], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x3c], esi
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x421635
mov eax, dword [esp + 0x34]
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x421650
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x18]
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 + 0x40], edi
mov dword [esp + 0x80], edi
mov eax, dword [esp + 0x38]
cmp edi, dword [eax + 0x2c]
jbe 0x421694
push 0x510fb4
push 0xf0b4
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0040c1c0
add esp, 0x14
mov edi, 0xb
jmp 0x421717
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push 0
push ecx
push edi
push eax
mov eax, dword [eax + 0xd0]
call eax
mov edi, eax
add esp, 0x10
mov dword [esp + 0x14], edi
test edi, edi
jne 0x42171b
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 8]
mov dword [esp + esi*4 + 0x74], eax
cmp byte [eax], 0
jne 0x421715
mov ecx, dword [edx + 8]
mov edi, dword [esp + 0x40]
cmp edi, dword [ecx + 4]
je 0x4216f0
mov eax, dword [edx + 4]
cmp edi, 1
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x34], eax
setne al
dec al
mov dword [ecx + 0x48], edx
and al, 0x64
mov dword [ecx + 4], edi
mov byte [ecx + 9], al
mov ecx, dword [esp + esi*4 + 0x74]
call fcn.0041c330
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x421715
mov ecx, dword [esp + esi*4 + 0x74]
test ecx, ecx
je 0x42171b
mov ecx, dword [ecx + 0x48]
call fcn.004172e0
jmp 0x42171b
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
test edi, edi
jne 0x421892
mov eax, dword [esp + esi*4 + 0x74]
movzx ecx, word [eax + 0x16]
movzx eax, byte [eax + 0xc]
inc eax
add eax, dword [esp + 0x1c]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x4218b2
mov edi, dword [esp + 0x34]
mov dl, byte [edi + 0xc]
test dl, dl
je 0x4217a0
mov ecx, dword [esp + 0x68]
movzx eax, word [edi + 0x1a]
add ecx, esi
cmp ecx, eax
jne 0x4217a0
mov eax, dword [edi + 0x24]
push eax
mov dword [esp + esi*4 + 0xb4], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x38]
bswap edi
push eax
mov dword [esp + 0x48], edi
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x88], edi
call eax
movzx eax, ax
add esp, 8
mov dword [esp + esi*4 + 0x9c], eax
mov eax, dword [esp + 0x34]
mov byte [eax + 0xc], 0
jmp 0x421663
mov ecx, dword [esp + 0x68]
movzx eax, dl
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, esi
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
add eax, ecx
push eax
mov dword [esp + esi*4 + 0xb4], eax
mov edi, dword [eax]
mov eax, dword [esp + 0x38]
bswap edi
push eax
mov dword [esp + 0x48], edi
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x88], edi
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], edx
mov dword [esp + esi*4 + 0x9c], edx
test byte [eax + 0x16], 0xc
je 0x42184c
mov eax, dword [esp + 0x34]
mov edi, dword [esp + esi*4 + 0xb0]
mov ecx, edi
mov ebx, dword [esp + 0x38]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x42186f
mov eax, dword [ebp + 8]
push edx
add eax, ecx
push edi
push eax
call fcn.004a4c50
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x28]
sub edi, dword [ecx + 0x38]
add edi, dword [ebp + 8]
mov dword [esp + esi*4 + 0xb0], edi
mov edi, dword [esp + 0x40]
jmp 0x421850
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
movzx eax, byte [ecx + 0xc]
push edx
mov edx, dword [esp + 0x70]
sub edx, eax
add edx, esi
call fcn.00420ab0
add esp, 8
jmp 0x421663
push 0x510fb4
push 0x104ef
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0040c1c0
add esp, 0x14
mov edi, 0xb
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0x78]
push 0
push eax
call fcn.004a4720
add esp, 0xc
xor eax, eax
xor ebx, ebx
jmp 0x4220b2
mov eax, dword [esp + 0x38]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x20]
lea ecx, [esi + esi*2]
lea ecx, [eax + ecx*2]
call fcn.00409c60
mov edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x58], edi
test edi, edi
jne 0x4218e2
lea edi, [eax + 7]
xor ebx, ebx
jmp 0x4220ae
mov ecx, dword [esp + 0x74]
lea eax, [edi + esi*4]
mov dword [esp + 0x5c], eax
xor edx, edx
lea eax, [eax + esi*2]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x2c], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x70], eax
movzx eax, byte [ecx + 3]
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], edx
cmp dword [esp + 0x44], edx
jle 0x421b05
nop
mov edi, dword [esp + edx*4 + 0x74]
mov dword [esp + 0x28], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
mov dword [esp + 0x98], eax
add esi, edx
mov eax, dword [esp + 0x74]
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x1c], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x421cae
movzx eax, byte [edi + 0xc]
movzx ecx, word [edi + 0x16]
add ecx, eax
mov eax, dword [esp + 0x5c]
add ecx, ecx
push ecx
push 0
lea eax, [eax + ebx*2]
push eax
call fcn.004a4720
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x4219f1
movzx edx, word [edi + 0x1a]
test edx, edx
je 0x4219c5
mov edi, dword [esp + 0xdc]
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 + 0x10]
add ecx, dword [esp + 0x4c]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
sub edx, 1
jne 0x421992
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], ebx
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x4219f1
mov esi, dword [esp + 0x10]
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
mov dword [esp + 0x50], ebx
cmp edx, eax
jl 0x4219d3
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
movzx eax, word [edi + 0x12]
xor edx, edx
movzx ecx, word [edi + 0x16]
add eax, dword [esp + 0x4c]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov edi, eax
sub edi, esi
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x421a46
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [esp + 0x98]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x10]
add ecx, dword [esp + 0x4c]
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
cmp edx, edi
jb 0x421a14
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x30]
mov dword [esp + edx*4 + 0xfc], ebx
cmp edx, dword [esp + 0x3c]
jge 0x421af6
cmp dword [esp + 0x60], 0
jne 0x421af6
movzx eax, word [esp + edx*4 + 0x9c]
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x2c]
push eax
push dword [esp + edx*4 + 0xb4]
add esi, edi
mov word [ecx + ebx*2], ax
add edi, eax
push esi
mov dword [esp + 0x54], edi
call fcn.004a4c50
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x5c]
movzx eax, ax
add eax, esi
mov dword [ecx + ebx*4], eax
mov eax, dword [esp + 0x70]
sub word [edx + ebx*2], ax
mov eax, dword [esp + 0x28]
cmp byte [eax + 8], 0
jne 0x421aca
mov eax, dword [eax + 0x38]
mov ecx, dword [ecx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x421ae9
cmp word [edx + ebx*2], 4
jae 0x421ae9
mov eax, dword [esp + 0x2c]
mov byte [eax + edi], 0
inc edi
inc word [edx + ebx*2]
cmp word [edx + ebx*2], 4
jb 0x421ad5
mov dword [esp + 0x48], edi
mov edx, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x50], ebx
inc edx
mov dword [esp + 0x30], edx
cmp edx, dword [esp + 0x44]
jl 0x421920
mov eax, dword [esp + 0x70]
xor edx, edx
movzx esi, ax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x24]
add eax, 0xfffffff4
add esi, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], esi
test eax, eax
jle 0x421bca
mov ecx, eax
lea esi, [esp + 0xfc]
lea edi, [esp + 0xc0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x4c]
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [esp + edx*4 + 0x74]
mov edi, ecx
mov dword [esp + 0x2c], 0
movzx eax, word [esi + 0x14]
sub edi, eax
cmp byte [esi + 0xc], 0
lea eax, [esp + 0x9c]
lea eax, [eax + edx*4]
mov dword [eax], edi
mov dword [esp + 0x3c], eax
jbe 0x421bb5
lea ebx, [esi + 0x24]
nop dword [eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x34]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x34], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x421b80
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
mov dword [eax], edi
mov eax, dword [esp + 0x44]
inc edx
mov dword [esp + 0x1c], edx
cmp edx, eax
jl 0x421b50
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x30], 0
mov ecx, eax
mov dword [esp + 0x48], ecx
test eax, eax
jle 0x421e09
xor edx, edx
lea eax, [esp + 0xc0]
mov edi, 1
mov dword [esp + 0x10], edx
sub eax, 4
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], eax
nop dword [eax]
cmp dword [esp + edx + 0x9c], esi
jle 0x421d01
nop dword [eax]
cmp edi, ecx
jl 0x421c36
lea eax, [edi + 1]
mov dword [esp + 0x48], eax
cmp eax, 5
jg 0x421f06
mov dword [esp + edx + 0xa0], 0
mov dword [esp + edx + 0xc4], ebx
mov esi, dword [esp + edx + 0xc0]
mov ecx, dword [esp + 0x5c]
lea edi, [esi - 1]
movzx eax, word [ecx + edi*2]
test ax, ax
jne 0x421c6b
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.00420d40
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
movzx eax, ax
mov dword [esp + 0x24], ebx
movzx eax, ax
add eax, 2
sub dword [esp + edx + 0x9c], eax
cmp dword [esp + 0x60], 0
jne 0x421cda
cmp esi, ebx
jge 0x421cd8
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x421ca2
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00420d40
mov ebx, dword [esp + 0x50]
movzx eax, ax
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x10]
movzx eax, ax
add eax, 2
jmp 0x421cda
push 0x510fb4
push 0x10532
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0040c1c0
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4220ae
xor eax, eax
add dword [esp + edx + 0xa0], eax
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + edx + 0xc0], edi
mov edi, dword [esp + 0x28]
cmp dword [esp + edx + 0x9c], esi
jg 0x421c10
cmp dword [esp + edx + 0xc0], ebx
jge 0x421db3
mov edi, dword [esp + 0x5c]
mov esi, dword [esp + edx + 0xc0]
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x421d3c
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00420d40
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x5c]
movzx eax, ax
movzx ecx, ax
mov eax, dword [esp + edx + 0x9c]
add ecx, 2
add eax, ecx
cmp eax, dword [esp + 0x4c]
jg 0x421da7
inc esi
mov dword [esp + edx + 0x9c], eax
cmp dword [esp + 0x60], 0
mov dword [esp + edx + 0xc0], esi
jne 0x421d98
cmp esi, ebx
jge 0x421d96
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x421d8e
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00420d40
mov ebx, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0x5c]
movzx eax, ax
movzx ecx, ax
add ecx, 2
jmp 0x421d98
xor ecx, ecx
sub dword [esp + edx + 0xa0], ecx
cmp esi, ebx
jl 0x421d12
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + edx + 0xc0]
cmp ecx, ebx
jl 0x421dc6
mov ecx, edi
mov dword [esp + 0x48], ecx
jmp 0x421de4
cmp dword [esp + 0x30], 0
jle 0x421dd6
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + edx]
jmp 0x421dd8
xor eax, eax
cmp ecx, eax
jle 0x421f34
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x30]
add edx, 4
inc eax
mov dword [esp + 0x10], edx
inc edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
cmp eax, ecx
jl 0x421c00
mov edx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
lea eax, [ecx - 1]
mov ecx, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x421fb7
nop word [eax + eax]
shl ecx, 2
mov dword [esp + 0x28], ecx
mov eax, dword [esp + ecx + 0x98]
mov edi, dword [esp + ecx + 0x9c]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xc0]
sub eax, 4
mov dword [esp + 0x30], eax
mov esi, dword [eax + ecx]
mov eax, dword [esp + 0x5c]
dec esi
mov edx, esi
sub edx, dword [esp + 0x60]
inc edx
lea ebx, [edx + edx]
cmp word [ebx + eax], 0
jne 0x421e70
lea ecx, [esp + 0x50]
call fcn.00420d40
nop dword [eax]
mov edx, dword [esp + 0x5c]
cmp word [edx + esi*2], 0
jne 0x421e8a
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00420d40
mov edx, dword [esp + 0x5c]
test edi, edi
je 0x421ecf
cmp dword [ebp + 0x10], 0
jne 0x421f62
mov ecx, dword [esp + 0x48]
mov eax, 2
mov edx, dword [esp + 0x5c]
dec ecx
cmp dword [esp + 0x1c], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x24]
sub ecx, eax
movzx eax, word [edx + esi*2]
sub ecx, eax
movzx eax, word [edx + ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x421f62
movzx eax, word [edx + ebx]
mov ecx, 0xfffffffe
add eax, 2
sub ebx, 2
add edi, eax
movzx eax, word [edx + esi*2]
mov edx, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov dword [ecx + edx], esi
sub esi, 1
jns 0x421e70
jmp 0x421f6a
push 0x510fb4
push 0x1059f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0040c1c0
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4220b2
push 0x510fb4
push 0x105c0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0040c1c0
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4220b2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + edx + 0x9c], edi
mov dword [esp + edx + 0x98], eax
cmp ecx, 1
jle 0x421f8b
mov eax, dword [esp + 0x30]
mov eax, dword [eax + edx - 4]
jmp 0x421f8d
xor eax, eax
mov esi, dword [esp + 0x30]
cmp dword [esi + edx], eax
jle 0x42202c
dec ecx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jg 0x421e20
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x74]
xor edi, edi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x1c], eax
lea eax, [edi + 1]
cmp dword [esp + 0x48], edi
jle 0x4221a8
cmp edi, dword [esp + 0x44]
jge 0x422103
mov eax, dword [esp + edi*4 + 0x74]
mov dword [esp + edi*4 + 0x84], eax
mov dword [esp + edi*4 + 0x74], 0
mov dword [esp + 0x2c], eax
mov esi, dword [eax + 0x48]
test byte [esi + 0x1c], 4
mov ecx, dword [esi + 0x14]
je 0x422069
mov eax, dword [ecx + 0x1c]
cmp eax, dword [esi + 0x18]
jb 0x422069
cmp dword [ecx + 0x68], 0
je 0x422065
mov ecx, esi
call fcn.004137b0
test eax, eax
je 0x422057
mov ecx, esi
call fcn.004161d0
mov dword [esp + 0x14], eax
mov edx, eax
jmp 0x422096
push 0x510fb4
push 0x105ea
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0040c1c0
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov edi, 0xb
xor ebx, ebx
jmp 0x4220b2
mov dword [esp + 0x14], 0
mov edx, dword [esp + 0x14]
jmp 0x422096
xor edx, edx
jmp 0x422092
mov edx, dword [ecx + 0x2c]
mov dword [esp + 0x14], edx
test edx, edx
jne 0x422096
mov eax, dword [ecx + 0x9c]
cmp eax, dword [ecx + 0xa0]
mov ecx, esi
jbe 0x42208b
call fcn.00417780
jmp 0x422090
call fcn.004176a0
mov edx, eax
mov dword [esp + 0x14], edx
inc dword [esp + 0x18]
mov dword [esp + 0x20], edx
test edx, edx
je 0x422198
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, eax
call fcn.00409d70
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x4220dc
mov ecx, dword [esp + esi*4 + 0x74]
test ecx, ecx
je 0x4220d7
mov ecx, dword [ecx + 0x48]
call fcn.004172e0
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x4220c3
xor esi, esi
test ebx, ebx
jle 0x4220fa
mov ecx, dword [esp + esi*4 + 0x84]
test ecx, ecx
je 0x4220f5
mov ecx, dword [ecx + 0x48]
call fcn.004172e0
inc esi
cmp esi, ebx
jl 0x4220e2
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x2c]
mov ecx, dword [esp + 0x40]
cmovne ecx, eax
lea eax, [esp + 0x80]
push 0
push ecx
mov ecx, dword [esp + 0x40]
push eax
call fcn.0041fd60
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4220a6
mov esi, dword [esp + 0x2c]
mov ecx, esi
mov edx, dword [esp + 0x1c]
call fcn.0041c680
mov ecx, dword [esp + 0x38]
inc dword [esp + 0x18]
mov dword [esp + edi*4 + 0x84], esi
mov dword [esp + edi*4 + 0xfc], ebx
cmp byte [ecx + 0x11], 0
je 0x42218d
mov edx, dword [esi + 4]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
push dword [eax + 4]
push 5
call fcn.0041b450
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4220a6
mov eax, dword [esp + 0x80]
mov dword [esp + 0x40], eax
inc edi
mov eax, 1
cmp edi, dword [esp + 0x48]
jl 0x421fd4
mov edi, dword [esp + 0x18]
xor ecx, ecx
test edi, edi
jle 0x4221f7
mov eax, dword [esp + ecx*4 + 0x84]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x110], edx
mov dword [esp + ecx*4 + 0xe0], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0xb0], ax
xor eax, eax
test ecx, ecx
jle 0x4221f2
nop
cmp dword [esp + eax*4 + 0x110], edx
je 0x422389
inc eax
cmp eax, ecx
jl 0x4221e0
inc ecx
cmp ecx, edi
jl 0x4221b2
xor esi, esi
mov dword [esp + 0x2c], esi
test edi, edi
jle 0x4222bf
mov ebx, dword [esp + 0x18]
xor edi, edi
lea ecx, [edi + 1]
cmp ebx, ecx
jle 0x422244
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xe0]
cmp eax, dword [esp + esi + 0xe0]
jae 0x42223b
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, ebx
jl 0x422220
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + edi*4 + 0xe0]
mov dword [esp + 0x3c], eax
mov dword [esp + edi*4 + 0xe0], 0xffffffff
cmp edi, esi
je 0x4222aa
jle 0x42227f
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0x2c]
mov eax, dword [esp + edi*4 + 0x84]
inc edx
add edx, edi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x1c], ax
call fcn.00412180
mov eax, dword [esp + esi*4 + 0x84]
mov ecx, dword [eax + 0x48]
mov ax, word [esp + edi*2 + 0xb0]
mov edi, dword [esp + 0x3c]
mov edx, edi
mov word [ecx + 0x1c], ax
call fcn.00412180
mov eax, dword [esp + esi*4 + 0x84]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x18]
inc esi
mov dword [esp + 0x2c], esi
cmp esi, edi
jl 0x422205
mov ebx, dword [esp + 0x24]
test byte [esp + 0x1c], 8
mov eax, dword [esp + edi*4 + 0x80]
mov ecx, dword [esp + 0x64]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x422307
mov ecx, dword [esp + 0x44]
cmp ecx, edi
je 0x422307
cmp edi, ecx
lea edx, [esp + 0x74]
lea eax, [esp + 0x84]
cmovle eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0x80]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x38]
cmp byte [edx + 0x11], 0
je 0x42250c
mov esi, dword [esp + 0x84]
xor edi, edi
mov dword [esp + 0x64], 0
mov eax, dword [esi + 0x38]
movzx ecx, word [esi + 0x16]
mov dword [esp + 0x2c], eax
movzx eax, byte [esi + 0xc]
add ecx, eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x1c], ecx
xor ecx, ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
test ebx, ebx
jle 0x422513
xor eax, eax
mov dword [esp + 0x40], eax
nop word [eax + eax]
mov edx, dword [esp + 0x10]
mov edx, dword [edx + edi*4]
mov dword [esp + 0x28], edx
cmp edi, dword [esp + 0x1c]
jne 0x4223e5
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [esp + 0x18]
jge 0x4223b1
mov edx, dword [esp + ecx*4 + 0x84]
jmp 0x4223b5
push 0x510fb4
push 0x10634
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0040c1c0
add esp, 0x14
mov edi, 0xb
jmp 0x4220aa
mov edx, dword [esp + ecx*4 + 0x74]
movzx eax, word [edx + 0x16]
xor ecx, ecx
cmp dword [esp + 0x60], ecx
sete cl
add ecx, eax
movzx eax, byte [edx + 0xc]
add eax, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
cmp edi, dword [esp + eax + 0xc0]
jne 0x422410
mov eax, dword [esp + 0x64]
inc eax
mov dword [esp + 0x64], eax
shl eax, 2
cmp dword [esp + 0x60], 0
mov dword [esp + 0x40], eax
mov esi, dword [esp + eax + 0x84]
je 0x4224ff
cmp ecx, dword [esp + 0x18]
jge 0x422436
mov eax, dword [esi + 4]
cmp eax, dword [esp + ecx*4 + 0x110]
jne 0x422436
mov eax, dword [esp + 0x2c]
cmp edx, eax
jb 0x422436
add eax, dword [esp + 0x3c]
cmp edx, eax
jb 0x4224fb
cmp word [esp + 0x70], 0
jne 0x422460
mov edx, dword [edx]
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x38]
push eax
push dword [esi + 4]
bswap edx
push 5
call fcn.0041b450
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x422487
mov edx, edi
lea ecx, [esp + 0x50]
call fcn.00420d40
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x50]
movzx eax, ax
cmp ax, word [esi + 0x10]
jbe 0x4224ef
cmp dword [esp + 0x14], 0
jne 0x4220a6
lea eax, [esp + 0xe0]
push eax
push dword [esp + 0x2c]
mov eax, dword [esi + 0x50]
push esi
call eax
movzx eax, word [esp + 0xfc]
add esp, 0xc
cmp eax, dword [esp + 0xec]
jae 0x4224fb
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x20]
mov ecx, dword [esi + 0x34]
push eax
movzx eax, word [esp + 0xf6]
push dword [esi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.0041b450
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x4224f3
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4220a6
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
inc edi
cmp edi, ebx
jl 0x422360
mov esi, dword [esp + 0x84]
mov ecx, dword [esp + 0x18]
xor edi, edi
lea eax, [ecx - 1]
test eax, eax
jle 0x42269e
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + edi*4 + 0xc0]
mov edx, dword [esp + 0x10]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [esp + edi*4 + 0x84]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x70]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov dword [esp + 0x98], eax
movzx eax, cx
mov ecx, dword [esp + 0x64]
add edx, eax
mov eax, dword [ebp + 8]
add eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
cmp byte [ecx + 8], 0
jne 0x42258d
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x42264d
cmp dword [esp + 0x60], 0
je 0x42262e
lea eax, [esp + 0x110]
push eax
mov eax, dword [esp + 0x40]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [esp + 0x114]
mov esi, eax
mov ecx, dword [esp + 0x110]
add eax, 4
mov dword [esp + 0x3c], eax
test edx, edx
ja 0x42261b
jb 0x4225d6
cmp ecx, 0x7f
ja 0x4225ea
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x422651
test edx, edx
ja 0x42261b
jb 0x4225f8
cmp ecx, 0x3fff
ja 0x42261b
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
shr edx, 7
or al, 0x80
mov edx, dword [esp + 0x3c]
mov byte [edx], al
mov eax, 2
mov byte [edx + 1], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x422651
push edx
push ecx
mov ecx, eax
call fcn.0040dab0
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x422651
sub esi, 4
cmp word [esp + 0x98], 4
jne 0x422651
mov eax, dword [esp + 0x34]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x1c]
add dword [esp + 0x6c], edx
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x68]
push dword [ecx + 4]
mov ecx, dword [esp + 0x3c]
push eax
push edx
mov edx, dword [esp + 0x78]
push esi
lea edx, [edx + edi]
call fcn.00420be0
mov eax, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4220a6
mov ecx, dword [esp + 0x18]
inc edi
lea eax, [ecx - 1]
cmp edi, eax
jl 0x422530
mov esi, dword [esp + 0x84]
mov eax, 1
sub eax, ecx
mov dword [esp + 0x6c], eax
cmp eax, ecx
jge 0x422795
cdq
lea edi, [esp + 0xd4]
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x422773
cmp dword [esp + 0x6c], 0
jge 0x4226e5
mov eax, dword [esp + ecx*4 + 0xf8]
cmp eax, dword [esp + ecx*4 + 0xbc]
jl 0x422773
test ecx, ecx
jne 0x4226f6
mov edx, dword [esp + 0xc0]
xor ebx, ebx
xor eax, eax
jmp 0x422725
cmp ecx, dword [esp + 0x44]
jge 0x42270c
xor ebx, ebx
cmp dword [esp + 0x60], ebx
sete bl
add ebx, dword [esp + ecx*4 + 0xf8]
mov edx, dword [esp + ecx*4 + 0xc0]
xor eax, eax
cmp dword [esp + 0x60], eax
sete al
add eax, dword [esp + ecx*4 + 0xbc]
sub edx, eax
lea esi, [ecx*4]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + esi + 0x88]
push edx
push eax
mov edx, ebx
call fcn.00421040
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x422802
mov eax, dword [esp + esi + 0x84]
mov cx, word [esp + 0x4c]
sub cx, word [esp + esi + 0x9c]
mov ebx, dword [esp + 0x50]
mov byte [edi], 1
mov word [eax + 0x14], cx
mov eax, dword [esp + 0x6c]
inc eax
mov dword [esp + 0x6c], eax
cmp eax, dword [esp + 0x18]
jl 0x4226b1
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x84]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x42280f
mov ebx, dword [esp + 0x34]
cmp word [ebx + 0x16], 0
jne 0x42280f
movzx eax, byte [ebx + 9]
cmp ax, word [esi + 0x14]
ja 0x42280f
or edx, 0xffffffff
mov ecx, esi
call fcn.0041b970
mov ecx, dword [esp + 0x84]
mov edx, ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
call fcn.004214a0
mov edi, dword [esp + 0x24]
add esp, 4
test edi, edi
jne 0x42286a
mov ecx, dword [esp + 0x84]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.00420380
add esp, 4
mov edi, eax
jmp 0x42286a
mov edi, dword [esp + 0x58]
mov dword [esp + 0x10], edi
jmp 0x4220a6
mov ecx, dword [esp + 0x38]
cmp byte [ecx + 0x11], 0
je 0x422866
cmp word [esp + 0x70], 0
mov ebx, dword [esp + 0x18]
jne 0x422860
xor esi, esi
test ebx, ebx
jle 0x422860
nop dword [eax + eax]
mov eax, dword [esp + esi*4 + 0x84]
lea edx, [esp + 0x20]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.0041b450
mov ecx, dword [esp + 0x44]
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x422830
mov edi, dword [esp + 0x20]
jmp 0x42286e
mov edi, dword [esp + 0x14]
jmp 0x42286e
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov esi, ebx
cmp ebx, eax
jge 0x4220ae
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x74]
test edi, edi
jne 0x42289e
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00420380
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jl 0x422880
jmp 0x4220ae