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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x535008]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
xor ebx, ebx
mov dword [esp + 0x14], 0
mov eax, ecx
mov dword [esp + 0x38], ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x144], ebx
mov byte [esp + 0x148], bl
mov dword [esp + 0x74], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x30], ecx
push edi
test esi, esi
jne 0x459215
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0051023c
mov esp, ebp
pop ebp
ret
movzx edi, word [eax + 0x18]
movzx ecx, byte [eax + 0xc]
lea esi, [ecx + edi]
cmp esi, 2
jae 0x459229
xor edx, edx
jmp 0x459246
test edx, edx
je 0x45923c
cmp edx, esi
jne 0x45923b
mov eax, dword [ebp + 0x10]
lea edx, [eax - 2]
add edx, esi
jmp 0x45923f
dec edx
mov eax, dword [ebp + 0x10]
mov esi, 2
sub esi, eax
lea eax, [esi + 1]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x60], esi
lea ecx, [eax + esi]
cmp ecx, edi
jne 0x459272
mov eax, dword [esp + 0x2c]
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
add ecx, 8
add ecx, eax
jmp 0x45928d
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edx + 0x1a]
movzx ecx, cx
and ecx, eax
add ecx, dword [edx + 0x38]
mov edx, dword [ecx]
lea edi, [esp + 0xb8]
push 0
bswap edx
mov dword [esp + 0x4c], ecx
lea edi, [edi + esi*4]
mov ecx, dword [esp + 0x38]
push 0
push edi
mov dword [esp + 0x68], edx
mov dword [esp + 0x3c], edx
call fcn.00452a30
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x459462
mov ecx, dword [edi]
mov edx, esi
mov dword [esp + 0x14], edx
cmp dword [ecx + 0x14], 0
jge 0x4592ef
call fcn.004524c0
mov edi, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], edi
test edi, edi
jne 0x4594ee
mov edx, esi
mov eax, esi
dec esi
test eax, eax
je 0x459528
mov edi, dword [esp + 0x2c]
mov al, byte [edi + 0xc]
test al, al
je 0x459355
mov eax, dword [esp + 0x4c]
movzx ecx, word [edi + 0x1c]
add eax, esi
cmp eax, ecx
jne 0x459352
mov eax, dword [edi + 0x24]
lea edi, [esi*4]
push eax
mov dword [esp + edi + 0x154], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x30]
bswap ecx
push eax
mov dword [esp + 0x64], ecx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x38], ecx
call eax
movzx eax, ax
mov dword [esp + edi + 0xe0], eax
mov eax, dword [esp + 0x34]
mov byte [eax + 0xc], 0
jmp 0x459431
mov al, byte [edi + 0xc]
movzx eax, al
mov ecx, edx
sub ecx, eax
mov eax, dword [edi + 0x40]
add ecx, dword [esp + 0x4c]
mov ax, word [eax + ecx*2 - 2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
add eax, ecx
lea edi, [edx*4 - 4]
push eax
mov dword [esp + 0x28], eax
mov dword [esp + edi + 0x154], eax
mov ecx, dword [eax]
mov eax, dword [esp + 0x30]
bswap ecx
push eax
mov dword [esp + 0x64], ecx
mov eax, dword [eax + 0x4c]
mov dword [esp + 0x38], ecx
call eax
mov ecx, dword [esp + 0x3c]
add esp, 8
movzx eax, ax
mov dword [esp + 0x38], eax
mov dword [esp + edi + 0xd8], eax
test byte [ecx + 0x16], 0xc
je 0x45940d
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, ecx
sub edx, dword [ebx + 0x38]
mov ebx, dword [esp + 0x34]
add eax, edx
cmp eax, dword [ebx + 0x24]
mov ebx, 0
jg 0x4594fa
push dword [esp + 0x38]
mov eax, dword [esp + 0x74]
push ecx
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov eax, dword [esp + 0x70]
sub eax, dword [ecx + 0x38]
add eax, dword [esp + 0x24]
mov dword [esp + edi + 0x150], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
dec edx
push eax
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0xc]
sub ecx, eax
add edx, ecx
mov ecx, dword [esp + 0x34]
call fcn.00457fd0
mov edx, dword [esp + 0x64]
lea eax, [esp + 0xc0]
mov ecx, dword [esp + 0x3c]
add esp, 8
add edi, eax
push 0
push 0
push edi
call fcn.00452a30
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
test eax, eax
je 0x4592c8
lea eax, [esi*4 + 4]
push eax
lea eax, [esp + 0xbc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ebx, ebx
cmp dword [esp + 0x3c], ebx
jle 0x45a609
nop dword [eax + eax]
mov edx, dword [esp + ebx*4 + 0xb8]
test edx, edx
je 0x45a5fe
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45a5f7
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.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x45a5fe
lea eax, [esi*4]
jmp 0x459469
push 0x52a07c
push 0x1182d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
lea eax, [edi + 4]
jmp 0x459469
mov eax, dword [esp + 0x34]
mov esi, dword [eax + 0x20]
mov eax, 0xaaaaaaab
lea ecx, [esi - 8]
mul ecx
mov edi, edx
shr edi, 2
add edi, 4
imul edi, dword [esp + 0x3c]
add edi, 3
and edi, 0xfffffffc
lea eax, [edi + edi*2]
add eax, eax
mov dword [esp + 0x28], eax
add eax, esi
cdq
mov ecx, eax
or ecx, edx
je 0x45956c
push edx
push eax
call fcn.0043a970
add esp, 8
mov esi, eax
jmp 0x45956e
xor esi, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x80], esi
test esi, esi
jne 0x45958a
mov dword [esp + 0x10], 7
jmp 0x45a584
mov ecx, dword [esp + 0xb8]
lea eax, [esi + edi*4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x28]
add eax, esi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x64], eax
movzx eax, byte [ecx + 8]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x58], eax
mov al, byte [ecx + 3]
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0x54], eax
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esp + 0x3c], eax
jle 0x45980c
nop word [eax + eax]
shl eax, 2
mov dword [esp + 0x68], eax
mov edi, dword [esp + eax + 0xb8]
mov dword [esp + 0x28], edi
movzx eax, word [edi + 0x18]
mov edx, dword [edi + 0x38]
movzx esi, word [edi + 0x12]
mov dword [esp + 0x24], eax
add esi, edx
movzx eax, word [edi + 0x1a]
mov ecx, eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x50], esi
mov ecx, dword [eax + 0x38]
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x459a2e
movzx eax, byte [edi + 0xc]
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x84]
add eax, eax
push eax
mov eax, dword [esp + 0x7c]
push 0
lea eax, [ecx + eax*2]
push eax
call sub.VCRUNTIME140.dll_memset
mov al, byte [edi + 0xc]
add esp, 0xc
test al, al
je 0x4596e1
movzx edx, word [edi + 0x1c]
cmp dword [esp + 0x24], edx
jb 0x459a03
test edx, edx
je 0x4596b2
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov ax, word [esi]
add esi, 2
mov ch, al
mov cl, ah
movzx eax, di
mov edi, dword [esp + 0x44]
movzx ecx, cx
and ecx, eax
mov eax, dword [esp + 0x78]
add ecx, ebx
mov dword [edi + eax*4], ecx
inc eax
mov edi, dword [esp + 0x38]
mov dword [esp + 0x78], eax
sub edx, 1
jne 0x459676
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x50], esi
mov al, byte [edi + 0xc]
xor edx, edx
test al, al
je 0x4596e1
mov ebx, dword [esp + 0x78]
lea ecx, [edi + 0x24]
mov esi, dword [esp + 0x44]
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 0x4596c3
mov esi, dword [esp + 0x50]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x40]
movzx eax, word [edi + 0x12]
xor edx, edx
movzx ecx, word [edi + 0x18]
add eax, dword [esp + 0x14]
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 0x459741
mov ebx, dword [esp + 0x14]
mov ax, word [esi]
lea esi, [esi + 2]
mov ch, al
inc edx
mov cl, ah
mov eax, dword [esp + 0x74]
movzx ecx, cx
movzx eax, ax
and ecx, eax
mov eax, dword [esp + 0x78]
add ecx, ebx
mov ebx, dword [esp + 0x44]
mov dword [ebx + eax*4], ecx
mov ecx, eax
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x78], ecx
cmp edx, edi
jb 0x459708
mov ebx, dword [esp + 0x40]
jmp 0x459745
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x18]
mov dword [esp + edx + 0x11c], ecx
cmp eax, dword [esp + 0x60]
jge 0x4597fd
cmp byte [esp + 0xf], 0
jne 0x4597fd
movzx eax, word [esp + edx + 0xd8]
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x64]
push eax
push dword [esp + edx + 0x154]
mov word [esi + ecx*2], ax
lea esi, [edi + ebx]
add ebx, eax
push esi
mov dword [esp + 0x4c], ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x64]
add esp, 0xc
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x84]
movzx eax, ax
add eax, esi
mov esi, dword [esp + 0x44]
mov dword [esi + ecx*4], eax
mov eax, dword [esp + 0x58]
sub word [edx + ecx*2], ax
mov eax, dword [esp + 0x28]
cmp byte [eax + 8], 0
jne 0x4597d8
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + ecx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
mov ecx, dword [esp + 0x78]
jmp 0x4597f4
cmp word [edx + ecx*2], 4
jae 0x4597f4
nop
mov byte [edi + ebx], 0
inc ebx
inc word [edx + ecx*2]
cmp word [edx + ecx*2], 4
jb 0x4597e0
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x78], ecx
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x3c]
jl 0x4595e0
mov eax, dword [esp + 0x58]
xor ecx, ecx
movzx edi, ax
xor ebx, ebx
mov eax, dword [esp + 0x34]
add edi, 0xfffffff4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], ebx
mov eax, dword [eax + 0x24]
add edi, eax
mov dword [esp + 0x40], edi
cmp dword [esp + 0x3c], ecx
jle 0x459923
nop dword [eax]
mov esi, dword [esp + ebx*4 + 0xb8]
mov edx, dword [esp + ebx*4 + 0x11c]
mov dword [esp + 0x60], edx
mov eax, dword [esi + 0x3c]
mov dword [esp + ecx*4 + 0x88], eax
mov dword [esp + ecx*4 + 0xa0], edx
test ecx, ecx
je 0x459875
cmp edx, dword [esp + ecx*4 + 0x9c]
jne 0x459875
dec ecx
mov dword [esp + 0x14], ecx
cmp byte [esp + 0xf], 0
jne 0x459899
mov eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x14], ecx
mov eax, dword [eax + 0x3c]
mov dword [esp + ecx*4 + 0x88], eax
lea eax, [edx + 1]
mov dword [esp + ecx*4 + 0xa0], eax
sub edi, dword [esi + 0x14]
lea eax, [esp + 0xd8]
cmp byte [esi + 0xc], 0
lea eax, [eax + ebx*4]
mov dword [esp + 0x64], eax
mov dword [eax], edi
mov dword [esp + 0x28], 0
jbe 0x4598f9
lea ebx, [esi + 0x24]
nop dword [eax]
push dword [ebx]
mov eax, dword [esi + 0x4c]
push esi
call eax
mov ecx, dword [esp + 0x30]
lea ebx, [ebx + 4]
movzx eax, ax
inc ecx
add eax, 2
mov dword [esp + 0x30], ecx
add edi, eax
add esp, 8
movzx eax, byte [esi + 0xc]
cmp ecx, eax
jl 0x4598c0
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x50]
mov dword [eax], edi
mov edi, dword [esp + 0x40]
inc ecx
mov dword [esp + ebx*4 + 0xec], edx
inc ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ecx
cmp ebx, dword [esp + 0x3c]
jl 0x459840
mov eax, dword [esp + 0x80]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x3c]
mov eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
test ecx, ecx
jle 0x459bc3
mov edx, dword [esp + 0x78]
mov ebx, 1
xor ecx, ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ecx
mov esi, dword [esp + ecx + 0xd8]
cmp esi, edi
jle 0x459a7f
nop
cmp ebx, eax
jl 0x45998d
lea eax, [ebx + 1]
mov dword [esp + 0x18], eax
cmp eax, 5
jg 0x459b6d
mov dword [esp + ecx + 0xdc], 0
mov esi, dword [esp + ecx + 0xd8]
mov dword [esp + ecx + 0xf0], edx
mov edi, dword [esp + ecx + 0xec]
mov edx, dword [esp + 0x84]
lea ebx, [edi - 1]
movzx eax, word [edx + ebx*2]
test ax, ax
jne 0x4599c0
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.004583d0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
movzx eax, ax
movzx eax, ax
add eax, 2
sub esi, eax
cmp byte [esp + 0xf], 0
mov dword [esp + ecx + 0xd8], esi
jne 0x459a5b
cmp edi, dword [esp + 0x78]
jge 0x459a59
movzx eax, word [edx + edi*2]
test ax, ax
jne 0x4599f7
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.004583d0
movzx eax, ax
mov ecx, dword [esp + 0x14]
movzx eax, ax
add eax, 2
jmp 0x459a5b
push 0x52a07c
push 0x11888
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x45a584
push 0x52a07c
push 0x11870
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x45a584
xor eax, eax
add dword [esp + ecx + 0xdc], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
mov dword [esp + ecx + 0xec], ebx
mov ebx, dword [esp + 0x24]
cmp esi, dword [esp + 0x40]
jg 0x459960
mov edi, dword [esp + ecx + 0xec]
cmp edi, edx
jge 0x459b21
nop
mov eax, dword [esp + 0x84]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x459ab6
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.004583d0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
movzx eax, ax
movzx eax, ax
add eax, 2
add esi, eax
cmp esi, dword [esp + 0x40]
jg 0x459b4d
inc edi
mov dword [esp + ecx + 0xd8], esi
cmp byte [esp + 0xf], 0
mov dword [esp + ecx + 0xec], edi
jne 0x459b12
cmp edi, edx
jge 0x459b10
mov eax, dword [esp + 0x84]
movzx eax, word [eax + edi*2]
test ax, ax
jne 0x459b04
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.004583d0
mov edx, dword [esp + 0x78]
movzx eax, ax
mov ecx, dword [esp + 0x14]
movzx eax, ax
add eax, 2
jmp 0x459b12
xor eax, eax
sub dword [esp + ecx + 0xdc], eax
cmp edi, edx
jl 0x459a90
mov eax, ebx
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x38]
add ecx, 4
inc edi
mov dword [esp + 0x14], ecx
inc ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], ebx
cmp edi, eax
jge 0x459bc3
mov edi, dword [esp + 0x40]
jmp 0x459950
cmp edi, edx
jge 0x459b21
cmp dword [esp + 0x38], 0
jle 0x459b61
mov eax, dword [esp + ecx + 0xe8]
jmp 0x459b63
xor eax, eax
cmp edi, eax
jle 0x459b98
mov eax, dword [esp + 0x18]
jmp 0x459b27
push 0x52a07c
push 0x118ed
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x45a584
push 0x52a07c
push 0x1190e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x45a584
dec eax
mov ecx, eax
mov dword [esp + 0x38], eax
test ecx, ecx
jle 0x459d34
shl ecx, 2
lea eax, [esp + 0xd8]
add eax, ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x74], eax
mov edi, dword [eax]
lea eax, [esp + ecx + 0xd4]
mov dword [esp + 0x50], eax
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xec]
sub eax, 4
mov dword [esp + 0x28], eax
mov ebx, dword [eax + ecx]
mov ecx, dword [esp + 0x84]
lea esi, [ebx - 1]
mov edx, esi
sub edx, dword [esp + 0x54]
inc edx
cmp word [ecx + edx*2], 0
lea eax, [ecx + edx*2]
mov dword [esp + 0x24], eax
jne 0x459c47
lea ecx, [esp + 0x78]
call fcn.004583d0
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [esp + 0x84]
cmp word [ecx + esi*2], 0
mov dword [esp + 0x68], esi
mov dword [esp + 0x60], esi
jne 0x459c61
mov edx, esi
lea ecx, [esp + 0x78]
call fcn.004583d0
test edi, edi
je 0x459caa
cmp dword [ebp + 0x10], 0
mov edx, ebx
jne 0x459cf7
mov ecx, dword [esp + 0x18]
mov eax, 2
dec ecx
cmp dword [esp + 0x38], ecx
mov ecx, 0
cmove eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov eax, dword [esp + 0x84]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x24]
movzx eax, word [eax]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x459cf7
mov edx, dword [esp + 0x24]
mov ecx, 0xfffffffe
mov ebx, dword [esp + 0x28]
movzx eax, word [edx]
sub edx, 2
add eax, 2
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x68]
add edi, eax
mov eax, dword [esp + 0x84]
movzx eax, word [eax + esi*2]
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov dword [ebx + ecx], esi
sub esi, 1
mov ebx, dword [esp + 0x60]
jns 0x459c40
jmp 0x459cfb
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov dword [ecx], edi
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov ecx, dword [esp + 0x38]
cmp ecx, 1
jle 0x459d21
mov ebx, dword [esp + 0x28]
lea eax, [ecx*4]
mov eax, dword [eax + ebx - 4]
jmp 0x459d23
xor eax, eax
cmp edx, eax
jle 0x459d9c
dec ecx
mov dword [esp + 0x38], ecx
test ecx, ecx
jg 0x459bd2
mov eax, dword [esp + 0xb8]
xor esi, esi
mov eax, dword [eax + 0x38]
movzx ebx, byte [eax]
lea eax, [esi + 1]
mov dword [esp + 0x54], ebx
cmp dword [esp + 0x18], esi
jle 0x459eb5
cmp esi, dword [esp + 0x3c]
jge 0x459e0e
mov eax, dword [esp + esi*4 + 0xb8]
mov dword [esp + esi*4 + 0xc4], eax
mov dword [esp + esi*4 + 0xb8], 0
mov dword [esp + 0x28], eax
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x459dcb
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x459dcb
cmp dword [edx + 0x60], 0
je 0x459dc7
call fcn.0044a3e0
jmp 0x459df0
push 0x52a07c
push 0x11938
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x45a584
xor eax, eax
jmp 0x459df0
mov eax, dword [edx + 0x28]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x459df4
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x459deb
call fcn.0044bea0
jmp 0x459df0
call fcn.0044bc80
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x1c]
inc edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edi
test eax, eax
jne 0x45a584
jmp 0x459ea3
cmp dword [ebp + 0x10], 0
lea edx, [esp + 0x28]
mov ecx, dword [esp + 0x5c]
cmovne ecx, eax
lea eax, [esp + 0x30]
push 0
push ecx
mov ecx, dword [esp + 0x3c]
push eax
call fcn.00456d40
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45a584
mov edi, dword [esp + 0x28]
mov edx, ebx
mov ecx, edi
call fcn.00452820
mov ecx, dword [esp + 0x34]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x78]
mov dword [esp + esi*4 + 0xc4], edi
cmp byte [ecx + 0x11], 0
mov dword [esp + esi*4 + 0x11c], eax
je 0x459e97
mov edx, dword [edi + 4]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 4]
push 5
call fcn.004513a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x45a584
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x5c], edx
inc esi
mov eax, 1
cmp esi, dword [esp + 0x18]
jl 0x459d54
jmp 0x459eb7
xor edi, edi
xor ecx, ecx
test edi, edi
jle 0x459f07
nop dword [eax]
mov eax, dword [esp + ecx*4 + 0xc4]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x48]
mov dword [esp + ecx*4 + 0x130], edx
mov dword [esp + ecx*4 + 0x100], edx
mov ax, word [eax + 0x1c]
mov word [esp + ecx*2 + 0x150], ax
xor eax, eax
test ecx, ecx
jle 0x459f02
nop dword [eax]
cmp dword [esp + eax*4 + 0x130], edx
je 0x45a070
inc eax
cmp eax, ecx
jl 0x459ef0
inc ecx
cmp ecx, edi
jl 0x459ec0
mov ecx, dword [esp + 0x1c]
xor edi, edi
test ecx, ecx
jle 0x459fad
mov ebx, ecx
xor esi, esi
lea edx, [esi + 1]
cmp ebx, edx
jle 0x459f3a
mov eax, dword [esp + edx*4 + 0x100]
mov ecx, edx
cmp eax, dword [esp + esi*4 + 0x100]
cmovae ecx, esi
inc edx
mov esi, ecx
cmp edx, ebx
jl 0x459f20
mov ebx, dword [esp + esi*4 + 0x100]
mov dword [esp + esi*4 + 0x100], 0xffffffff
cmp esi, edi
je 0x459f98
jle 0x459f71
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x2c]
mov eax, dword [esp + esi*4 + 0xc4]
inc edx
add edx, esi
mov ecx, dword [eax + 0x48]
xor eax, eax
mov word [ecx + 0x1c], ax
call fcn.00445180
mov eax, dword [esp + edi*4 + 0xc4]
mov edx, ebx
mov ecx, dword [eax + 0x48]
mov ax, word [esp + esi*2 + 0x150]
mov word [ecx + 0x1c], ax
call fcn.00445180
mov eax, dword [esp + edi*4 + 0xc4]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x1c]
inc edi
cmp edi, ebx
jl 0x459f17
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + ecx*4 + 0xc0]
mov edx, dword [esp + 0x48]
mov eax, dword [eax + 4]
bswap eax
mov dword [edx], eax
test bl, 8
jne 0x459ff4
mov edx, dword [esp + 0x3c]
cmp edx, ecx
je 0x459ff4
lea eax, [esp + 0xc4]
lea esi, [esp + 0xb8]
cmovge eax, esi
mov eax, dword [eax + edx*4 - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [esp + ecx*4 + 0xc0]
mov ecx, dword [eax + 0x38]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x34]
cmp byte [eax + 0x11], 0
je 0x45a209
mov esi, dword [esp + 0xc4]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x48], 0
movzx edx, word [esi + 0x18]
movzx eax, byte [esi + 0xc]
add edx, eax
mov dword [esp + 0x30], edx
cmp dword [esp + 0x78], ebx
jle 0x45a210
mov eax, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
nop word [eax + eax]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + ebx*4]
mov dword [esp + 0x24], ecx
cmp ebx, edx
jne 0x45a0c2
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov dword [esp + 0x54], eax
nop dword [eax]
inc edi
cmp edi, dword [esp + 0x1c]
jge 0x45a09b
mov esi, dword [esp + edi*4 + 0xc4]
jmp 0x45a0a2
push 0x52a07c
push 0x11982
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x45a584
mov esi, dword [esp + edi*4 + 0xb8]
movzx eax, word [esi + 0x18]
add eax, dword [esp + 0x54]
movzx ecx, byte [esi + 0xc]
add ecx, eax
add edx, ecx
cmp ebx, edx
je 0x45a060
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
cmp ebx, dword [esp + edx + 0xec]
mov edx, dword [esp + 0x30]
jne 0x45a0f9
mov eax, dword [esp + 0x48]
inc eax
mov dword [esp + 0x48], eax
shl eax, 2
cmp byte [esp + 0xf], 0
mov dword [esp + 0x28], eax
mov eax, dword [esp + eax + 0xc4]
mov dword [esp + 0x18], eax
je 0x45a1fe
cmp edi, dword [esp + 0x1c]
jge 0x45a11d
mov eax, dword [eax + 4]
cmp eax, dword [esp + edi*4 + 0x130]
mov eax, dword [esp + 0x18]
jne 0x45a11d
cmp ecx, dword [esi + 0x38]
jb 0x45a11d
cmp ecx, dword [esi + 0x3c]
jb 0x45a1fe
cmp word [esp + 0x58], 0
jne 0x45a147
lea edx, [esp + 0x20]
push edx
push dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x3c]
push 5
bswap edx
call fcn.004513a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x84]
movzx eax, word [eax + ebx*2]
test ax, ax
jne 0x45a165
mov edx, ebx
lea ecx, [esp + 0x78]
call fcn.004583d0
movzx eax, ax
mov ecx, dword [esp + 0x18]
cmp ax, word [ecx + 0x10]
jbe 0x45a1ea
cmp dword [esp + 0x10], 0
jne 0x45a584
lea eax, [esp + 0x100]
push eax
push dword [esp + 0x28]
mov eax, dword [ecx + 0x50]
push ecx
call eax
movzx eax, word [esp + 0x11c]
add esp, 0xc
cmp eax, dword [esp + 0x10c]
jae 0x45a1f6
mov edx, dword [esi + 0x3c]
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jb 0x45a1b5
add eax, ecx
cmp edx, eax
jb 0x45a273
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
movzx eax, word [esp + 0x11a]
push 3
mov edx, dword [eax + ecx - 4]
mov eax, dword [esp + 0x24]
bswap edx
mov ecx, dword [eax + 0x34]
call fcn.004513a0
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x45a1ee
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x45a584
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
inc ebx
cmp ebx, dword [esp + 0x78]
jl 0x45a040
mov esi, dword [esp + 0xc4]
mov eax, dword [esp + 0x1c]
xor edi, edi
dec eax
test eax, eax
jle 0x45a391
nop
mov eax, dword [esp + edi*4 + 0xec]
mov edx, dword [esp + 0x44]
mov esi, dword [edx + eax*4]
lea edx, [edx + eax*4]
mov ecx, dword [esp + edi*4 + 0xc4]
mov ebx, dword [esp + 0x6c]
add ebx, dword [esp + 0x70]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x58]
movzx eax, word [edx + eax*2]
movzx edx, cx
mov ecx, dword [esp + 0x30]
add edx, eax
cmp byte [ecx + 8], 0
jne 0x45a29e
mov ecx, dword [ecx + 0x38]
mov eax, dword [esi]
mov dword [ecx + 8], eax
jmp 0x45a346
push 0x52a07c
push 0xffc8
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0043d780
add esp, 0x14
mov dword [esp + 0x10], 0xb
jmp 0x45a584
cmp byte [esp + 0xf], 0
je 0x45a32d
lea eax, [esp + 0x130]
push eax
mov eax, dword [esp + 0x58]
push dword [eax - 4]
mov eax, dword [ecx + 0x50]
push ecx
call eax
mov edx, dword [esp + 0x140]
add esp, 0xc
mov ecx, dword [esp + 0x130]
mov esi, ebx
test edx, edx
ja 0x45a319
jb 0x45a2dc
cmp ecx, 0x7f
ja 0x45a2ee
mov eax, 1
and cl, 0x7f
mov byte [ebx + 4], cl
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x45a346
test edx, edx
ja 0x45a319
jb 0x45a2fc
cmp ecx, 0x3fff
ja 0x45a319
mov eax, ecx
and cl, 0x7f
shrd eax, edx, 7
mov byte [ebx + 5], cl
or al, 0x80
mov byte [ebx + 4], al
mov eax, 2
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x45a346
push edx
push ecx
lea ecx, [ebx + 4]
call fcn.0043f210
add esp, 8
xor ebx, ebx
lea edx, [eax + 4]
jmp 0x45a346
sub esi, 4
cmp eax, 4
jne 0x45a34a
mov eax, dword [esp + 0x2c]
push esi
push eax
mov eax, dword [eax + 0x4c]
call eax
add esp, 8
movzx edx, ax
mov ecx, dword [esp + 0x30]
add dword [esp + 0x6c], edx
lea eax, [esp + 0x20]
push eax
push dword [ecx + 4]
mov ecx, dword [esp + 0x34]
push ebx
push edx
mov edx, dword [esp + 0x5c]
push esi
lea edx, [edx + edi]
call fcn.004580f0
mov esi, dword [esp + 0x34]
add esp, 0x14
mov dword [esp + 0x10], esi
test esi, esi
jne 0x45a584
mov eax, dword [esp + 0x1c]
inc edi
dec eax
cmp edi, eax
jl 0x45a220
mov esi, dword [esp + 0xc4]
mov edi, 1
sub edi, dword [esp + 0x1c]
mov dword [esp + 0x48], edi
cmp edi, dword [esp + 0x1c]
jge 0x45a488
nop dword [eax + eax]
mov eax, edi
lea ebx, [esp + 0x148]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
add ebx, ecx
cmp byte [ebx], 0
jne 0x45a472
test edi, edi
jns 0x45a3e3
mov eax, dword [esp + ecx*4 + 0x118]
cmp eax, dword [esp + ecx*4 + 0xe8]
jl 0x45a472
test ecx, ecx
jne 0x45a3f4
mov esi, dword [esp + 0xec]
xor edx, edx
xor eax, eax
jmp 0x45a429
cmp ecx, dword [esp + 0x3c]
jge 0x45a40c
xor edx, edx
cmp byte [esp + 0xf], dl
sete dl
add edx, dword [esp + ecx*4 + 0x118]
jmp 0x45a410
mov edx, dword [esp + 0x78]
mov esi, dword [esp + ecx*4 + 0xec]
xor eax, eax
cmp byte [esp + 0xf], al
sete al
add eax, dword [esp + ecx*4 + 0xe8]
sub esi, eax
lea edi, [ecx*4]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + edi + 0xc8]
push esi
push eax
call fcn.00458b70
add esp, 0xc
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
test eax, eax
jne 0x45a584
mov eax, dword [esp + edi + 0xc4]
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + edi + 0xd8]
mov edi, dword [esp + 0x48]
mov byte [ebx], 1
mov dword [eax + 0x14], ecx
inc edi
mov dword [esp + 0x48], edi
cmp edi, dword [esp + 0x1c]
jl 0x45a3b0
mov esi, dword [esp + 0xc4]
cmp dword [ebp + 0xc], 0
je 0x45a4f3
mov ebx, dword [esp + 0x2c]
cmp word [ebx + 0x18], 0
jne 0x45a4f3
movzx eax, byte [ebx + 9]
cmp eax, dword [esi + 0x14]
jg 0x45a4f3
or edx, 0xffffffff
mov ecx, esi
call fcn.00451970
mov ecx, dword [esp + 0xc4]
mov edx, ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
call fcn.004590d0
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x45a54e
mov ecx, dword [esp + 0xc4]
mov edx, ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x34]
call fcn.00457620
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x45a54e
mov ecx, dword [esp + 0x34]
cmp byte [ecx + 0x11], 0
je 0x45a54a
cmp word [esp + 0x58], 0
mov edi, dword [esp + 0x1c]
jne 0x45a544
xor esi, esi
test edi, edi
jle 0x45a544
nop
mov eax, dword [esp + esi*4 + 0xc4]
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.004513a0
mov ecx, dword [esp + 0x40]
inc esi
add esp, 0xc
cmp esi, edi
jl 0x45a510
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jmp 0x45a552
mov eax, dword [esp + 0x10]
jmp 0x45a552
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov esi, edi
cmp edi, ebx
jge 0x45a584
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0xb8]
test eax, eax
jne 0x45a57b
push dword [ecx + 4]
mov edx, ecx
mov ecx, dword [ecx + 0x34]
call fcn.00457620
add esp, 4
inc esi
cmp esi, ebx
jl 0x45a560
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x44]
test ebx, ebx
je 0x45947c
cmp dword [0x535068], 0
je 0x45a5e8
mov eax, dword [0x538818]
test eax, eax
je 0x45a5ac
push eax
call dword [0x5350b8]
add esp, 4
push ebx
call dword [0x535094]
sub dword [0x538620], eax
add esp, 4
dec dword [0x538644]
push ebx
call dword [0x53508c]
mov eax, dword [0x538818]
add esp, 4
test eax, eax
je 0x45947c
push eax
call dword [0x5350c0]
add esp, 4
jmp 0x45947c
push ebx
call dword [0x53508c]
add esp, 4
jmp 0x45947c
mov ecx, edx
call fcn.00444eb0
inc ebx
cmp ebx, dword [esp + 0x3c]
jl 0x459490
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
jle 0x45a672
mov edx, dword [esp + ebx*4 + 0xc4]
test edx, edx
je 0x45a66b
mov edx, dword [edx + 0x48]
test byte [edx + 0x1c], 0x20
je 0x45a664
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.00511980
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x45a66b
mov ecx, edx
call fcn.00444eb0
inc ebx
cmp ebx, dword [esp + 0x1c]
jl 0x45a611
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051023c
mov esp, ebp
pop ebp
ret