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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
mov eax, ecx
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x84], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x128], 0
mov byte [esp + 0x12c], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x3c], ecx
push edi
test esi, esi
jne 0x422331
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x16]
movzx ecx, byte [eax + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x422345
xor edx, edx
jmp 0x422362
test edx, edx
je 0x422358
cmp edx, esi
jne 0x422357
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x42235b
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
mov dword [esp + 0x74], edx
lea eax, [esi + 1]
sub edx, ecx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x1c], eax
lea ecx, [edx + esi]
cmp ecx, edi
mov edi, dword [esp + 0x3c]
jne 0x422387
movzx ecx, byte [edi + 9]
add ecx, 8
jmp 0x42239b
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x18]
movzx ecx, cx
and ecx, eax
add ecx, dword [edi + 0x38]
lea eax, [esp + 0x10c]
push 0
lea eax, [eax + esi*4]
mov dword [esp + 0x74], ecx
push 0
mov edx, dword [ecx]
mov ecx, dword [esp + 0x48]
bswap edx
push eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], edx
call fcn.0041b430
add esp, 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x42365b
lea eax, [edi + 0x4c]
nop dword [eax]
mov dword [esp + 0x80], eax
mov eax, dword [esp + esi*4 + 0x10c]
movzx ecx, word [eax + 0x16]
movzx eax, byte [eax + 0xc]
inc eax
add eax, dword [esp + 0x24]
add ecx, eax
mov eax, esi
dec esi
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4225df
mov dl, byte [edi + 0xc]
test dl, dl
je 0x422472
mov eax, dword [esp + 0x74]
movzx ecx, word [edi + 0x1a]
add eax, esi
cmp eax, ecx
jne 0x422472
mov eax, dword [edi + 0x24]
lea edi, [esi*4]
push eax
push dword [esp + 0x40]
mov dword [esp + edi + 0xc0], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x88]
bswap ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ecx
mov eax, dword [eax]
call eax
movzx eax, ax
add esp, 8
mov dword [esp + edi + 0x90], eax
mov eax, dword [esp + 0x3c]
mov byte [eax + 0xc], 0
add eax, 0x4c
mov dword [esp + 0x80], eax
jmp 0x422558
mov ecx, dword [esp + 0x74]
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]
mov edi, dword [edi + 0x38]
movzx ecx, cx
and ecx, eax
lea eax, [esi*4]
add edi, ecx
mov dword [esp + 0x30], eax
lea ecx, [esp + 0xb8]
add eax, ecx
mov dword [esp + 0x28], eax
push edi
push dword [esp + 0x40]
mov dword [eax], edi
mov eax, dword [edi]
bswap eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
mov eax, dword [eax]
call eax
movzx edx, ax
add esp, 8
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], edx
mov dword [esp + esi*4 + 0x90], edx
test byte [eax + 0x16], 0xc
je 0x422533
mov eax, dword [esp + 0x3c]
mov ecx, edi
mov ebx, dword [esp + 0x40]
sub ecx, dword [eax + 0x38]
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x422598
mov eax, dword [esp + 0x88]
push edx
add eax, ecx
push edi
push eax
call fcn.004f79b0
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
sub edi, dword [ecx + 0x38]
add edi, dword [esp + 0x88]
mov dword [eax], edi
jmp 0x422537
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x2c]
push eax
movzx eax, byte [ecx + 0xc]
push edx
mov edx, dword [esp + 0x7c]
sub edx, eax
add edx, esi
call fcn.00421570
add esp, 8
lea edi, [esi*4]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x10c]
mov ecx, dword [esp + 0x40]
add eax, edi
push 0
push 0
push eax
call fcn.0041b430
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
test edi, edi
jne 0x42365b
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x80]
jmp 0x4223e0
push 0x54b514
push 0x1058f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
mov eax, dword [esp + 0x44]
add esp, 0x14
mov dword [esp + 0x18], 0xb
add eax, 4
push eax
lea eax, [esp + 0x110]
push 0
push eax
call fcn.004f7f30
add esp, 0xc
xor eax, eax
jmp 0x422a59
mov eax, dword [esp + 0x40]
lea esi, [ecx + 3]
and esi, 0xfffffffc
mov eax, dword [eax + 0x20]
lea ecx, [esi + esi*2]
lea eax, [eax + ecx*2]
cdq
push edx
push eax
call fcn.004051e0
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x58], eax
test eax, eax
jne 0x422616
mov dword [esp + 0x18], 7
jmp 0x422a59
mov ecx, dword [esp + 0x10c]
lea eax, [eax + esi*4]
mov dword [esp + 0x5c], eax
lea eax, [eax + esi*2]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x84], eax
mov al, byte [ecx + 3]
mov byte [esp + 0x17], al
movzx eax, al
mov dword [esp + 0x7c], eax
xor eax, eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x30], eax
test esi, esi
jle 0x422863
shl eax, 2
mov dword [esp + 0x60], eax
mov edi, dword [esp + eax + 0x10c]
mov dword [esp + 0x64], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
mov ecx, eax
movzx esi, word [edi + 0x12]
mov dword [esp + 0x8c], eax
add esi, edx
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x24], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x422a2f
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.004f7f30
add esp, 0xc
cmp byte [edi + 0xc], 0
jbe 0x422741
movzx edx, word [edi + 0x1a]
test edx, edx
je 0x422715
mov edi, dword [esp + 0x68]
nop word [eax + eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x28]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x10]
add ecx, edi
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
sub edx, 1
jne 0x4226e0
mov edi, dword [esp + 0x64]
mov dword [esp + 0x24], esi
mov dword [esp + 0x44], ebx
xor edx, edx
cmp byte [edi + 0xc], dl
jbe 0x422741
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 0x422723
mov esi, dword [esp + 0x24]
mov dword [esp + 0x44], ebx
movzx eax, word [edi + 0x12]
mov edx, dword [esp + 0x68]
add eax, edx
movzx ecx, word [edi + 0x16]
lea eax, [eax + ecx*2]
mov dword [esp + 0x28], eax
cmp esi, eax
jae 0x422793
mov edi, eax
nop dword [eax]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
mov eax, dword [esp + 0x8c]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x10]
add ecx, edx
mov dword [eax + ebx*4], ecx
inc ebx
mov dword [esp + 0x50], ebx
cmp esi, edi
jb 0x422760
mov edi, dword [esp + 0x64]
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x30]
mov dword [esp + ecx + 0xc4], ebx
cmp eax, dword [esp + 0x6c]
jge 0x422852
cmp byte [esp + 0x17], 0
jne 0x422852
movzx eax, word [esp + ecx + 0x90]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x38]
push eax
mov word [ecx + ebx*2], ax
mov ecx, dword [esp + 0x38]
add esi, ecx
add ecx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], ecx
push dword [esp + eax + 0xbc]
push esi
call fcn.004f79b0
mov ecx, dword [esp + 0x90]
add esp, 0xc
mov edx, dword [esp + 0x10]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x5c]
mov dword [edx + ebx*4], eax
mov ax, word [esi + ebx*2]
sub ax, cx
mov word [esi + ebx*2], ax
cmp byte [edi + 8], 0
movzx ecx, ax
jne 0x422824
mov eax, dword [edi + 0x38]
mov ecx, dword [edx + ebx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x422845
cmp ecx, 4
jae 0x422845
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov byte [ecx + eax], 0
inc eax
inc word [esi + ebx*2]
cmp word [esi + ebx*2], 4
jb 0x422831
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], ebx
mov esi, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x30], eax
cmp eax, esi
jl 0x422661
mov eax, dword [esp + 0x84]
xor edx, edx
movzx ecx, ax
mov eax, dword [esp + 0x40]
add ecx, 0xfffffff4
mov dword [esp + 0x24], edx
add ecx, dword [eax + 0x24]
mov dword [esp + 0x68], ecx
test esi, esi
jle 0x422916
mov ecx, esi
lea edi, [esp + 0xa4]
lea esi, [esp + 0xc4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x68]
nop
mov esi, dword [esp + edx*4 + 0x10c]
mov edi, ecx
mov dword [esp + 0x38], 0
movzx eax, word [esi + 0x14]
sub edi, eax
cmp byte [esi + 0xc], 0
lea eax, [esp + 0x90]
lea eax, [eax + edx*4]
mov dword [eax], edi
mov dword [esp + 0x6c], eax
jbe 0x422905
lea ebx, [esi + 0x24]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x40]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x40], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4228d0
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
mov dword [eax], edi
mov esi, dword [esp + 0x1c]
inc edx
mov dword [esp + 0x24], edx
cmp edx, esi
jl 0x4228a0
mov ebx, dword [esp + 0x44]
lea edx, [esp + 0xa4]
mov dword [esp + 0x24], 0
sub edx, 4
mov eax, esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
test esi, esi
jle 0x422c55
mov esi, 1
xor edx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
nop dword [eax]
lea eax, [esp + 0x90]
add eax, edx
mov dword [esp + 0x28], eax
mov edi, dword [eax]
cmp edi, ecx
jle 0x422aea
lea ecx, [esp + 0x94]
add ecx, edx
lea eax, [esp + 0x90]
mov dword [esp + 0x38], ecx
lea eax, [eax + edx]
cmp esi, dword [esp + 0x60]
jl 0x4229a1
inc esi
mov dword [esp + 0x60], esi
cmp esi, 5
jg 0x422be1
mov dword [ecx], 0
mov edi, dword [eax]
mov dword [esp + edx + 0xa8], ebx
lea eax, [esp + 0xa4]
add eax, edx
mov dword [esp + 0x10], eax
mov esi, dword [eax]
mov eax, dword [esp + 0x5c]
lea edx, [esi - 1]
movzx eax, word [eax + edx*2]
mov dword [esp + 0x6c], edx
test ax, ax
jne 0x4229dc
lea ecx, [esp + 0x50]
call fcn.00421960
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x38]
movzx eax, ax
mov dword [esp + 0x44], ebx
mov edx, dword [esp + 0x28]
movzx eax, ax
add eax, 2
sub edi, eax
cmp byte [esp + 0x17], 0
mov dword [edx], edi
jne 0x422ac6
cmp esi, ebx
jge 0x422ac4
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x422a20
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00421960
mov ebx, dword [esp + 0x50]
movzx eax, ax
mov dword [esp + 0x44], ebx
mov ecx, dword [esp + 0x38]
movzx eax, ax
add eax, 2
jmp 0x422ac6
push 0x54b514
push 0x105d0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov dword [esp + 0x18], 0xb
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
test eax, eax
je 0x42367a
cmp dword [0x55a418], 0
je 0x423670
mov eax, dword [0x560268]
test eax, eax
je 0x422a85
push eax
call dword [0x55a474]
add esp, 4
push dword [esp + 0x10]
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push dword [esp + 0x10]
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x42367a
push eax
call dword [0x55a47c]
jmp 0x423677
xor eax, eax
mov edx, dword [esp + 0x10]
add dword [ecx], eax
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 0x30]
mov dword [edx], eax
mov edx, dword [esp + 0x34]
cmp edi, dword [esp + 0x68]
jg 0x422970
mov ecx, dword [esp + 0x10]
jmp 0x422af7
lea ecx, [esp + 0xa4]
add ecx, edx
mov dword [esp + 0x10], ecx
mov esi, dword [ecx]
cmp esi, ebx
jge 0x422b94
mov edx, dword [esp + 0x5c]
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x422b24
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00421960
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
movzx eax, ax
movzx eax, ax
add eax, 2
add edi, eax
cmp edi, dword [esp + 0x68]
jg 0x422b88
mov edx, dword [esp + 0x28]
inc esi
cmp byte [esp + 0x17], 0
mov dword [ecx], esi
mov dword [edx], edi
mov edx, dword [esp + 0x5c]
jne 0x422b73
cmp esi, ebx
jge 0x422b71
movzx eax, word [edx + esi*2]
test ax, ax
jne 0x422b69
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00421960
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
movzx eax, ax
movzx eax, ax
add eax, 2
jmp 0x422b73
xor eax, eax
mov edx, dword [esp + 0x34]
sub dword [esp + edx + 0x94], eax
cmp esi, ebx
jl 0x422b01
jmp 0x422b8c
mov edx, dword [esp + 0x34]
mov dword [esp + 0x44], ebx
cmp esi, ebx
jl 0x422ba4
mov esi, dword [esp + 0x30]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x60], eax
jmp 0x422bc3
mov ecx, dword [esp + 0x24]
test ecx, ecx
jle 0x422bb5
mov eax, dword [esp + 0x64]
mov eax, dword [edx + eax]
jmp 0x422bb7
xor eax, eax
cmp esi, eax
jle 0x422c22
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x60]
inc ecx
add edx, 4
inc esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], esi
cmp ecx, eax
jge 0x422c14
mov ecx, dword [esp + 0x68]
jmp 0x422950
push 0x54b514
push 0x1063d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
add esp, 0x14
mov dword [esp + 0x18], 0xb
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
jmp 0x422a59
mov edx, dword [esp + 0x58]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x64]
jmp 0x422c59
push 0x54b514
push 0x1065e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x10], eax
jmp 0x422a59
mov dword [esp + 0x64], edx
dec eax
mov ecx, eax
mov dword [esp + 0x30], eax
test ecx, ecx
jle 0x422dda
nop dword [eax + eax]
shl ecx, 2
lea eax, [esp + 0x90]
add eax, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], eax
mov ebx, dword [edx + ecx]
mov edi, dword [eax]
lea eax, [esp + ecx + 0x8c]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
lea esi, [ebx - 1]
mov edx, esi
mov dword [esp + 0x34], eax
sub edx, dword [esp + 0x7c]
inc edx
mov dword [esp + 0x28], edi
lea eax, [edx + edx]
cmp word [eax + ecx], 0
mov dword [esp + 0x24], eax
jne 0x422cc7
lea ecx, [esp + 0x50]
call fcn.00421960
mov ecx, dword [esp + 0x5c]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x38], esi
mov dword [esp + 0x8c], esi
jne 0x422ce8
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00421960
mov ecx, dword [esp + 0x5c]
test edi, edi
je 0x422d33
cmp dword [ebp + 0x10], 0
mov edx, ebx
jne 0x422d85
movzx eax, word [ecx + esi*2]
mov edi, 0
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x34]
dec ebx
sub ecx, eax
cmp dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x5c]
mov eax, 2
cmove eax, edi
mov edi, dword [esp + 0x28]
sub ecx, eax
mov eax, dword [esp + 0x24]
movzx eax, word [eax + ebx]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x422d85
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
movzx eax, word [edx + ecx]
sub edx, 2
add eax, 2
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x38]
add edi, eax
movzx eax, word [ecx + esi*2]
mov ecx, 0xfffffffe
sub ecx, eax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x34]
add eax, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [esp + 0x8c]
jns 0x422cc3
jmp 0x422d89
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
mov dword [ecx], edi
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
cmp ecx, 1
jbe 0x422daf
mov ebx, dword [esp + 0x64]
lea eax, [ecx*4]
mov eax, dword [ebx + eax - 4]
jmp 0x422db1
xor eax, eax
cmp edx, eax
jle 0x422e4a
mov edx, dword [esp + 0x64]
dec ecx
mov dword [esp + 0x30], ecx
test ecx, ecx
jg 0x422c70
mov eax, dword [esp + 0x58]
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x10c]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx eax, byte [eax]
mov dword [esp + 0x38], eax
lea eax, [esi + 1]
cmp dword [esp + 0x60], esi
jle 0x422f8d
nop word [eax + eax]
mov edi, dword [esp + 0x1c]
cmp esi, edi
jge 0x422ede
mov eax, dword [esp + esi*4 + 0x10c]
mov dword [esp + esi*4 + 0x118], eax
mov dword [esp + esi*4 + 0x10c], 0
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x422e95
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x422e95
cmp dword [edx + 0x60], 0
je 0x422e7d
call fcn.00414010
jmp 0x422ebe
push 0x54b514
push 0x10688
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00407d30
mov eax, dword [esp + 0x6c]
add esp, 0x14
mov dword [esp + 0x18], 0xb
mov dword [esp + 0x10], eax
jmp 0x422a59
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x20]
inc edi
mov dword [esp + 0x20], edi
jmp 0x422f73
mov edi, dword [edx + 0x28]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x422f84
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x422eb9
call fcn.00415cd0
jmp 0x422ebe
call fcn.00415c50
mov edi, dword [esp + 0x20]
mov edx, eax
inc edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x20], edi
test edx, edx
jne 0x422a55
jmp 0x422f73
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x4c]
cmovne ecx, eax
lea eax, [esp + 0x48]
push 0
push ecx
mov ecx, dword [esp + 0x48]
push eax
call fcn.0041fc40
mov edx, eax
add esp, 0xc
mov dword [esp + 0x18], edx
mov dword [esp + 0x2c], edx
test edx, edx
jne 0x423667
mov edi, dword [esp + 0x28]
mov ecx, edi
mov edx, dword [esp + 0x38]
call fcn.0041b2d0
mov ecx, dword [esp + 0x40]
inc dword [esp + 0x20]
mov dword [esp + esi*4 + 0x118], edi
mov dword [esp + esi*4 + 0xc4], ebx
cmp byte [ecx + 0x11], 0
je 0x422f67
mov edx, dword [edi + 4]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x40]
push dword [eax + 4]
push 5
call fcn.00419f80
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x422a55
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x4c], edx
inc esi
cmp esi, dword [esp + 0x60]
jge 0x422f8f
mov eax, 1
jmp 0x422e00
inc dword [esp + 0x20]
jmp 0x422a55
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x4230a1
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0x118]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0xf0], edx
mov dword [esp + ecx*4 + 0xd8], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0xb8], ax
xor eax, eax
test ecx, ecx
jle 0x422fe2
nop dword [eax]
cmp dword [esp + eax*4 + 0xf0], edx
je 0x42316c
inc eax
cmp eax, ecx
jl 0x422fd0
inc ecx
cmp ecx, edi
jl 0x422fa0
mov eax, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x28], edi
xor esi, esi
lea ecx, [esi + 1]
cmp eax, ecx
jle 0x423024
mov ebx, dword [esp + 0x20]
xor edi, edi
lea edx, [ecx*4]
mov eax, dword [esp + edx + 0xd8]
cmp eax, dword [esp + edi + 0xd8]
jae 0x42301b
mov esi, ecx
mov edi, edx
inc ecx
cmp ecx, ebx
jl 0x423000
mov edi, dword [esp + 0x28]
mov eax, dword [esp + esi*4 + 0xd8]
mov dword [esp + 0x7c], eax
mov dword [esp + esi*4 + 0xd8], 0xffffffff
cmp esi, edi
je 0x42308a
jle 0x42305f
mov eax, dword [esp + 0x40]
mov edx, dword [eax + 0x2c]
mov eax, dword [esp + esi*4 + 0x118]
inc edx
add edx, esi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x1c], ax
call fcn.0040fae0
mov eax, dword [esp + edi*4 + 0x118]
mov ecx, dword [eax + 0x48]
mov ax, word [esp + esi*2 + 0xb8]
mov esi, dword [esp + 0x7c]
mov edx, esi
mov word [ecx + 0x1c], ax
call fcn.0040fae0
mov eax, dword [esp + edi*4 + 0x118]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x20]
inc edi
mov dword [esp + 0x28], edi
cmp edi, eax
jl 0x422ff1
mov ebx, dword [esp + 0x44]
mov edi, eax
test byte [esp + 0x38], 8
mov eax, dword [esp + edi*4 + 0x114]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax + 4]
bswap eax
mov dword [ecx], eax
jne 0x4230ea
mov ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x4230ea
lea edx, [esp + 0x10c]
lea eax, [esp + 0x118]
cmovge eax, edx
mov eax, dword [eax + ecx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + edi*4 + 0x114]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov edx, dword [esp + 0x40]
cmp byte [edx + 0x11], 0
je 0x4232dc
mov edi, dword [esp + 0x118]
xor esi, esi
mov dword [esp + 0x70], 0
mov eax, dword [edi + 0x38]
movzx ecx, word [edi + 0x16]
mov dword [esp + 0x28], eax
movzx eax, byte [edi + 0xc]
add ecx, eax
mov eax, dword [edx + 0x24]
xor edx, edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x30], edx
test ebx, ebx
jle 0x4232dc
xor eax, eax
mov dword [esp + 0x4c], eax
nop dword [eax]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + esi*4]
mov dword [esp + 0x48], ecx
cmp esi, dword [esp + 0x24]
jne 0x4231b2
inc edx
mov dword [esp + 0x30], edx
lea eax, [edx*4]
cmp edx, dword [esp + 0x20]
jge 0x42317b
mov edx, dword [esp + eax + 0x118]
jmp 0x423182
push 0x54b514
push 0x106d2
jmp 0x422a39
mov edx, dword [esp + eax + 0x10c]
movzx eax, byte [edx + 0xc]
movzx ecx, word [edx + 0x16]
add ecx, eax
xor eax, eax
cmp byte [esp + 0x17], al
sete al
add eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x38]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x4c]
cmp esi, dword [esp + eax + 0xa4]
jne 0x4231dd
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
shl eax, 2
cmp byte [esp + 0x17], 0
mov dword [esp + 0x4c], eax
mov edi, dword [esp + eax + 0x118]
je 0x4232cf
cmp edx, dword [esp + 0x20]
jge 0x423203
mov eax, dword [edi + 4]
cmp eax, dword [esp + edx*4 + 0xf0]
jne 0x423203
mov eax, dword [esp + 0x28]
cmp ecx, eax
jb 0x423203
add eax, dword [esp + 0x7c]
cmp ecx, eax
jb 0x4232cb
cmp word [esp + 0x84], 0
jne 0x423230
mov edx, dword [ecx]
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x40]
push eax
push dword [edi + 4]
bswap edx
push 5
call fcn.00419f80
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
movzx eax, word [eax + esi*2]
test ax, ax
jne 0x423257
mov edx, esi
lea ecx, [esp + 0x50]
call fcn.00421960
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x50]
movzx eax, ax
cmp ax, word [edi + 0x10]
jbe 0x4232bf
cmp dword [esp + 0x18], 0
jne 0x422a55
lea eax, [esp + 0xd8]
push eax
push dword [esp + 0x4c]
mov eax, dword [edi + 0x50]
push edi
call eax
movzx eax, word [esp + 0xf4]
add esp, 0xc
cmp eax, dword [esp + 0xe4]
jae 0x4232cb
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x2c]
mov ecx, dword [edi + 0x34]
push eax
movzx eax, word [esp + 0xee]
push dword [edi + 4]
push 3
mov edx, dword [eax + edx - 4]
bswap edx
call fcn.00419f80
mov edx, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x18], edx
jmp 0x4232c3
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x422a55
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
inc esi
cmp esi, ebx
jl 0x423140
mov eax, dword [esp + 0x20]
xor edi, edi
dec eax
test eax, eax
jle 0x423457
nop dword [eax + eax]
mov eax, dword [esp + edi*4 + 0xa4]
mov edx, dword [esp + 0x10]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [esp + edi*4 + 0x118]
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x84]
movzx eax, word [edx + eax*2]
movzx edx, ax
mov dword [esp + 0x6c], eax
movzx eax, cx
mov ecx, dword [esp + 0x70]
add edx, eax
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x78]
mov dword [esp + 0x48], eax
cmp byte [ecx + 8], 0
jne 0x423351
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x42340c
cmp byte [esp + 0x17], 0
je 0x4233eb
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esp + 0x80]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x100]
add esp, 0xc
mov eax, dword [esp + 0x48]
mov esi, eax
mov ecx, dword [esp + 0xf0]
test edx, edx
ja 0x4233d7
jb 0x423396
cmp ecx, 0x7f
ja 0x4233a8
and cl, 0x7f
mov byte [eax + 4], cl
mov eax, 1
lea edx, [eax + 4]
xor eax, eax
jmp 0x423410
test edx, edx
ja 0x4233d7
jb 0x4233b6
cmp ecx, 0x3fff
ja 0x4233d7
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov edx, dword [esp + 0x48]
or al, 0x80
mov byte [edx + 4], al
mov eax, 2
mov byte [edx + 5], cl
lea edx, [eax + 4]
xor eax, eax
jmp 0x423410
push edx
push ecx
lea ecx, [eax + 4]
call fcn.00409570
add esp, 8
lea edx, [eax + 4]
xor eax, eax
jmp 0x423410
sub esi, 4
cmp word [esp + 0x6c], 4
jne 0x423410
mov eax, dword [esp + 0x80]
push esi
push dword [esp + 0x40]
mov eax, dword [eax]
call eax
add esp, 8
movzx edx, ax
mov eax, dword [esp + 0x48]
add dword [esp + 0x78], edx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x74]
push dword [ecx + 4]
mov ecx, dword [esp + 0x44]
push eax
push edx
mov edx, dword [esp + 0x84]
push esi
lea edx, [edx + edi]
call fcn.004216a0
mov esi, dword [esp + 0x40]
add esp, 0x14
mov dword [esp + 0x18], esi
test esi, esi
jne 0x422a55
mov eax, dword [esp + 0x20]
inc edi
dec eax
cmp edi, eax
jl 0x4232f0
mov edi, dword [esp + 0x20]
mov ecx, 1
sub ecx, edi
mov dword [esp + 0x78], ecx
cmp ecx, edi
jge 0x423553
nop
mov eax, ecx
lea edi, [esp + 0x12c]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add edi, ecx
cmp byte [edi], 0
jne 0x423536
cmp dword [esp + 0x78], 0
lea esi, [ecx*4]
jge 0x4234ad
mov eax, dword [esp + esi + 0xc0]
cmp eax, dword [esp + esi + 0xa0]
jl 0x423536
test ecx, ecx
jne 0x4234be
mov ecx, dword [esp + 0xa4]
xor ebx, ebx
xor eax, eax
jmp 0x4234ed
cmp ecx, dword [esp + 0x1c]
jge 0x4234d4
xor ebx, ebx
cmp byte [esp + 0x17], bl
sete bl
add ebx, dword [esp + esi + 0xc0]
mov ecx, dword [esp + esi + 0xa4]
xor eax, eax
cmp byte [esp + 0x17], al
sete al
add eax, dword [esp + esi + 0xa0]
sub ecx, eax
lea edx, [esp + 0x50]
push edx
push ecx
mov ecx, dword [esp + esi + 0x120]
mov edx, ebx
push eax
call fcn.00421c90
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x422c07
mov eax, dword [esp + esi + 0x118]
mov cx, word [esp + 0x68]
sub cx, word [esp + esi + 0x90]
mov ebx, dword [esp + 0x50]
mov byte [edi], 1
mov word [eax + 0x14], cx
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x78], ecx
cmp ecx, edi
jl 0x423470
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0xc], 0
je 0x4235c6
mov ebx, dword [esp + 0x3c]
cmp word [ebx + 0x16], 0
jne 0x4235c6
mov ecx, dword [esp + 0x118]
movzx eax, byte [ebx + 9]
cmp ax, word [ecx + 0x14]
ja 0x4235c6
or edx, 0xffffffff
call fcn.0041a670
mov ecx, dword [esp + 0x118]
mov edx, ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
call fcn.004221d0
mov edx, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x18], edx
test edx, edx
jne 0x423619
mov ecx, dword [esp + 0x118]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.00420890
mov edx, eax
add esp, 4
mov dword [esp + 0x18], edx
jmp 0x423619
mov ecx, dword [esp + 0x40]
cmp byte [ecx + 0x11], 0
je 0x423615
cmp word [esp + 0x84], 0
jne 0x423615
xor esi, esi
test edi, edi
jle 0x423615
mov eax, dword [esp + esi*4 + 0x118]
lea edx, [esp + 0x2c]
push edx
push dword [eax + 4]
mov eax, dword [eax + 0x38]
push 5
mov edx, dword [eax + 8]
bswap edx
call fcn.00419f80
mov ecx, dword [esp + 0x4c]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x4235e1
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
jmp 0x423619
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov esi, edi
cmp edi, ebx
jge 0x422a55
nop word [eax + eax]
mov ecx, dword [esp + esi*4 + 0x10c]
test edx, edx
jne 0x42364d
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00420890
add esp, 4
mov edx, eax
inc esi
cmp esi, ebx
jl 0x423630
mov dword [esp + 0x18], edx
jmp 0x422a55
lea eax, [esi*4 + 4]
jmp 0x4225c5
mov eax, dword [esp + 0x10]
jmp 0x422a5d
push eax
call dword [0x55a448]
add esp, 4
xor ebx, ebx
test edi, edi
jle 0x4236e3
mov edx, dword [esp + ebx*4 + 0x10c]
test edx, edx
je 0x4236de
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4236d7
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [esp + 0x2c]
add esp, 0x10
jmp 0x4236de
mov ecx, edx
call fcn.0040f8d0
inc ebx
cmp ebx, edi
jl 0x423680
xor ebx, ebx
cmp dword [esp + 0x20], ebx
jle 0x423751
nop dword [eax + eax]
mov edx, dword [esp + ebx*4 + 0x118]
test edx, edx
je 0x42374a
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x423743
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.004f4a20
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x42374a
mov ecx, edx
call fcn.0040f8d0
inc ebx
cmp ebx, dword [esp + 0x20]
jl 0x4236f0
mov ecx, dword [esp + 0x134]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret