Function at 0x451840
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x57906c]
xor eax, esp
mov dword [esp + 0x58], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], edx
mov edi, dword [ebx + 4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], ebx
je 0x4518d8
movzx eax, byte [edx + 1]
lea ecx, [edx + 1]
mov dword [esp + 0x2c], eax
cmp eax, 0x80
jae 0x45188b
mov dword [esp + 0x28], 2
jmp 0x4518a4
lea edx, [esp + 0x2c]
call fcn.00430a40
mov edx, dword [esp + 0x10]
movzx ecx, al
mov eax, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x28], ecx
movzx ecx, byte [edx]
mov dword [esp + 0x2c], ecx
cmp eax, 0x80
jb 0x4518c4
add eax, 0xfffffff4
shr eax, 1
add edi, 0x28
lea esi, [ecx + eax]
mov eax, 1
jmp 0x451918
movzx eax, byte [eax + 0x561428]
add edi, 0x28
lea esi, [ecx + eax]
mov eax, 1
jmp 0x451918
movzx eax, byte [edx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], eax
cmp eax, 0x80
jae 0x4518f4
mov dword [esp + 0x28], 1
jmp 0x451914
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
call fcn.00430a40
mov edx, dword [esp + 0x10]
movzx ecx, al
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov esi, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0xc], esi
cmp esi, dword [esp + 0x34]
jbe 0x45195c
push 0x570134
push 0x14ca9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0042ee60
add esp, 0x14
mov byte [ebx + 0x17], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004c61ad
mov esp, ebp
pop ebp
ret
lea eax, [eax*4 + 0x14]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
nop dword [eax + eax]
movzx ecx, word [edi + 0x10]
add eax, edx
mov dword [esp + 0x18], eax
mov al, byte [eax]
mov byte [esp + 0x1f], al
movzx ebx, al
test cl, 0x24
je 0x451c91
cmp ebx, 0xa
jae 0x451c52
test al, al
je 0x451f65
lea ecx, [edx + esi]
cmp ebx, 7
jne 0x451a4a
lea eax, [esp + 0x38]
mov edx, ebx
push eax
call fcn.00450f00
movsd xmm0, qword [esp + 0x3c]
add esp, 4
movsd xmm1, qword [0x5702c8]
comisd xmm1, xmm0
jbe 0x4519d4
or ecx, 0xffffffff
jmp 0x451ed8
comisd xmm0, xmmword [0x570270]
jb 0x4519e8
mov ecx, 1
jmp 0x451ed8
call fcn.0054030f
mov ecx, dword [edi]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 4]
cmp edx, dword [esp + 0x14]
jg 0x451a18
jl 0x451a02
cmp ecx, eax
jae 0x451a0c
mov ecx, 1
jmp 0x451ed8
cmp edx, dword [esp + 0x14]
jl 0x451a20
jg 0x451a18
cmp ecx, eax
jbe 0x451a20
or ecx, 0xffffffff
jmp 0x451ed8
call fcn.00540460
movsd xmm1, qword [esp + 0x38]
comisd xmm1, xmm0
jbe 0x451a3b
mov ecx, 1
jmp 0x451ed8
xor ecx, ecx
comisd xmm0, xmm1
setbe cl
dec ecx
jmp 0x451ed8
cmp ebx, 6
ja case.default.0x451a53
jmp dword [ebx*4 + 0x452024]
movsx eax, byte [ecx]
cdq
mov ecx, eax
mov eax, edx
jmp 0x451c2a
movsx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x451c2a
movzx eax, byte [ecx + 1]
movsx ecx, byte [ecx]
shl eax, 8
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edx + esi + 2]
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x451c2a
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + esi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + esi + 3]
shl eax, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x451c2a
movzx eax, byte [ecx + 2]
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 3]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 4]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 5]
cdq
or dword [esp + 0xc], edx
or ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
movsx eax, byte [ecx + esi]
movzx ecx, byte [ecx + esi + 1]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x18]
cdq
add ecx, 0
adc dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
jmp 0x451c2a
movzx eax, byte [ecx]
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 1]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 2]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 3]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 4]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 5]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 6]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
shl ecx, 8
movzx eax, byte [eax + esi + 7]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
jmp 0x451c2a
lea ecx, [ebx - 8]
xor eax, eax
mov edx, dword [edi]
cmp eax, dword [edi + 4]
jl 0x451f65
jg 0x451c52
cmp ecx, edx
jb 0x451f65
cmp eax, dword [edi + 4]
jg 0x451c52
jl 0x451ee0
cmp ecx, edx
jbe 0x451ee0
mov ecx, 1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + edx]
test eax, eax
je 0x45200d
test al, 2
je 0x45200b
test ebx, ebx
je 0x451fff
test byte [edi + 0x10], 1
jne 0x451fff
xor edx, edx
jmp 0x452004
test cl, 8
je 0x451cf9
cmp ebx, 0xa
jae 0x451c52
test al, al
je 0x451f65
lea eax, [esp + 0x38]
lea ecx, [edx + esi]
mov edx, ebx
push eax
call fcn.00450f00
movsd xmm0, qword [edi]
add esp, 4
cmp byte [esp + 0x1f], 7
jne 0x451cdf
movsd xmm1, qword [esp + 0x38]
comisd xmm0, xmm1
ja 0x451f65
comisd xmm1, xmm0
ja 0x451c52
jmp 0x451ee0
push dword [esp + 0x3c]
movaps xmm1, xmm0
push dword [esp + 0x3c]
call fcn.00451640
add esp, 8
mov ecx, eax
jmp 0x451ed8
mov dword [esp + 0x14], ebx
test cl, 2
je 0x451dea
cmp ebx, 0x80
jb 0x451d1f
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00430a40
mov ebx, dword [esp + 0x14]
cmp ebx, 0xc
jb 0x451f65
test bl, 1
je 0x451c52
lea ecx, [ebx - 0xc]
shr ecx, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], ecx
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x34]
ja 0x451f6d
mov edx, dword [esp + 0x20]
mov edx, dword [edx]
movzx eax, word [edx + 8]
cmp eax, dword [esp + 0x30]
jle 0x451f6d
mov eax, dword [esp + 0x24]
cmp dword [eax + edx], 0
je 0x451daf
mov al, byte [edx + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x4a], al
mov eax, dword [edx + 0xc]
mov dword [esp + 0x4c], eax
mov eax, 2
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x10]
add eax, esi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
add eax, 0x17
push eax
mov eax, dword [esp + 0x28]
push dword [eax + edx]
mov edx, edi
call fcn.00451380
add esp, 8
mov ecx, eax
jmp 0x451ed8
mov esi, dword [edi + 0xc]
cmp ecx, esi
mov edx, dword [edi + 8]
cmovl esi, ecx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0xc]
sub esi, 4
jb 0x451e81
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x451e86
add ecx, 4
add edx, 4
sub esi, 4
jae 0x451dd0
jmp 0x451e81
test cl, 0x10
je 0x451ed1
cmp ebx, 0x80
jb 0x451e10
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00430a40
mov ebx, dword [esp + 0x14]
movzx ecx, word [edi + 0x10]
cmp ebx, 0xc
jb 0x451f65
test bl, 1
jne 0x451f65
lea edx, [ebx - 0xc]
shr edx, 1
mov dword [esp + 0x18], edx
lea eax, [edx + esi]
cmp eax, dword [esp + 0x34]
ja 0x451fa7
test ecx, 0x400
mov ecx, dword [esp + 0x10]
je 0x451e5a
lea ecx, [ecx + esi]
call fcn.00451510
test eax, eax
je 0x451c52
mov ecx, edx
sub ecx, dword [edi]
jmp 0x451ed8
mov esi, dword [edi + 0xc]
cmp edx, esi
cmovl esi, edx
add ecx, dword [esp + 0xc]
mov edx, dword [edi + 8]
sub esi, 4
jb 0x451e81
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x451e86
add ecx, 4
add edx, 4
sub esi, 4
jae 0x451e70
cmp esi, 0xfffffffc
je 0x451eba
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x451eb3
cmp esi, 0xfffffffd
je 0x451eba
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x451eb3
cmp esi, 0xfffffffe
je 0x451eba
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x451eb3
cmp esi, 0xffffffff
je 0x451eba
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x451eba
sbb ecx, ecx
or ecx, 1
jmp 0x451ebc
xor ecx, ecx
test ecx, ecx
jne 0x451c57
mov ecx, dword [esp + 0x18]
sub ecx, dword [edi + 0xc]
mov esi, dword [esp + 0xc]
jmp 0x451ed8
xor ecx, ecx
test al, al
setne cl
test ecx, ecx
jne 0x451c57
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x24], 4
inc ecx
mov dword [esp + 0x30], ecx
movzx eax, word [eax + 0x14]
cmp ecx, eax
je 0x451fe1
add edi, 0x28
cmp ebx, 0x80
jb 0x451f10
lea eax, [ebx - 0xc]
shr eax, 1
jmp 0x451f17
movzx eax, byte [ebx + 0x561428]
add esi, eax
shr ebx, 7
xor ecx, ecx
mov dword [esp + 0xc], esi
mov eax, ebx
mov edx, 1
or eax, ecx
je 0x451f3e
nop dword [eax]
shrd ebx, ecx, 7
inc edx
shr ecx, 7
mov eax, ebx
or eax, ecx
jne 0x451f30
mov eax, dword [esp + 0x28]
add eax, edx
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x2c]
jae 0x451fe1
cmp esi, dword [esp + 0x34]
ja 0x451fe1
mov edx, dword [esp + 0x10]
jmp 0x451970
or ecx, 0xffffffff
jmp 0x451c57
push 0x570134
push 0x14cf6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0042ee60
mov eax, dword [esp + 0x34]
add esp, 0x14
mov byte [eax + 0x17], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004c61ad
mov esp, ebp
pop ebp
ret
push 0x570134
push 0x14d14
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0042ee60
mov eax, dword [esp + 0x34]
add esp, 0x14
mov byte [eax + 0x17], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004c61ad
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov byte [eax + 0x1a], 1
movsx eax, byte [eax + 0x16]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004c61ad
mov esp, ebp
pop ebp
ret
mov edx, 1
and eax, 1
cmp eax, edx
je 0x45200d
neg ecx
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x60]
pop esi
pop ebx
xor ecx, esp
call fcn.004c61ad
mov esp, ebp
pop ebp
ret