Function at 0x10052690
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [esp + 0x20], ecx
push edi
mov ebx, dword [ebx + 4]
mov dword [esp + 0x10], esi
je 0x10052767
movzx edx, byte [esi + 1]
lea ecx, [esi + 1]
cmp edx, 0x80
jae 0x100526eb
movzx ecx, byte [esi]
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], ecx
movzx edx, byte [edx + 0x10161558]
mov eax, 1
add ebx, 0x28
lea edi, [edx + ecx]
jmp 0x100527e4
mov al, byte [ecx + 1]
test al, al
js 0x10052701
and edx, 0x7f
movzx eax, al
shl edx, 7
or edx, eax
mov al, 2
jmp 0x1005273a
mov ah, byte [ecx + 2]
test ah, ah
js 0x10052722
and edx, 0x7f
movzx ecx, al
shl edx, 7
and ecx, 0x7f
or edx, ecx
movzx eax, ah
shl edx, 7
or edx, eax
mov al, 3
jmp 0x1005273a
lea edx, [esp + 0x28]
call fcn.1002c9f0
mov edx, dword [esp + 0x28]
xor ecx, ecx
cmp ecx, dword [esp + 0x2c]
je 0x1005273a
or edx, 0xffffffff
movzx ecx, byte [esi]
movzx eax, al
inc eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp edx, 0x80
jb 0x100526d4
add edx, 0xfffffff4
mov dword [esp + 0x14], eax
shr edx, 1
mov eax, 1
add ebx, 0x28
lea edi, [edx + ecx]
jmp 0x100527e4
movzx ecx, byte [esi]
mov dword [esp + 0x18], ecx
cmp ecx, 0x80
jae 0x10052780
mov dword [esp + 0x14], 1
jmp 0x100527e0
mov al, byte [esi + 1]
test al, al
js 0x10052796
and ecx, 0x7f
movzx eax, al
shl ecx, 7
or ecx, eax
mov al, 2
jmp 0x100527d5
mov dl, byte [esi + 2]
test dl, dl
js 0x100527b7
and ecx, 0x7f
movzx eax, al
and eax, 0x7f
shl ecx, 7
or ecx, eax
movzx eax, dl
shl ecx, 7
or ecx, eax
mov al, 3
jmp 0x100527d5
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.1002c9f0
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esp + 0x2c]
je 0x100527d9
or ecx, 0xffffffff
mov dword [esp + 0x18], ecx
movzx eax, al
mov dword [esp + 0x14], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x24]
jbe 0x10052820
push 0x10166fc4
push 0x15a6e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
mov eax, dword [ebp + 8]
add esp, 0x14
mov byte [eax + 0x17], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [eax*4 + 0x14]
mov dword [esp + 0x20], eax
nop dword [eax + eax]
mov ecx, dword [esp + 0x14]
movzx eax, word [ebx + 0x10]
add ecx, esi
movzx esi, byte [ecx]
test al, 0x24
je 0x10052adf
cmp esi, 0xa
jb 0x1005285e
xor ecx, ecx
cmp esi, 0xa
setne cl
lea ecx, [ecx*2 - 1]
jmp 0x10052e03
test esi, esi
je 0x10052ed3
mov edx, dword [esp + 0x10]
lea ecx, [edi + edx]
cmp esi, 7
jne 0x1005289d
lea eax, [esp + 0x40]
mov edx, esi
push eax
call fcn.10051a60
movsd xmm1, qword [esp + 0x44]
add esp, 4
push dword [ebx + 4]
push dword [ebx]
call fcn.10052490
mov ecx, eax
add esp, 8
neg ecx
jmp 0x10052e03
cmp esi, 6
ja case.default.0x100528a6
jmp dword [esi*4 + 0x10052f60]
movsx eax, byte [ecx]
cdq
mov ecx, eax
mov eax, edx
jmp 0x10052a79
movzx eax, byte [ecx + 1]
movsx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x10052a79
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl eax, 8
or eax, ecx
movsx ecx, byte [edi + edx]
shl ecx, 0x10
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x10052a79
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + edx + 3]
shl eax, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x10052a79
movzx eax, byte [ecx + 2]
cdq
mov ecx, eax
mov eax, dword [esp + 0x10]
shld edx, ecx, 8
shl ecx, 8
movzx eax, byte [edi + eax + 3]
mov dword [esp + 0xc], edx
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 [edi + eax + 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 [edi + eax + 5]
cdq
or dword [esp + 0xc], edx
or ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x10]
movzx eax, byte [edi + ecx + 1]
movsx ecx, byte [edi + ecx]
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 0x28]
cdq
add ecx, 0
adc dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
jmp 0x10052a79
movzx eax, byte [ecx + 1]
cdq
mov ecx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x10]
movzx eax, byte [edi + eax]
cdq
shld edx, eax, 8
shl eax, 8
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 [edi + eax + 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 [edi + eax + 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 [edi + eax + 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 [edi + eax + 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 [edi + eax + 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 [edi + eax + 7]
cdq
or ecx, eax
mov eax, dword [esp + 0xc]
or eax, edx
jmp 0x10052a79
lea ecx, [esi - 8]
xor eax, eax
mov edx, dword [ebx]
cmp eax, dword [ebx + 4]
jl 0x10052ed3
jg 0x10052aa1
cmp ecx, edx
jb 0x10052ed3
cmp eax, dword [ebx + 4]
jg 0x10052aa1
jl 0x10052e1a
cmp ecx, edx
jbe 0x10052e1a
mov ecx, 1
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + edx]
test eax, eax
je 0x10052f17
test al, 2
je 0x10052f15
test esi, esi
je 0x10052f09
test byte [ebx + 0x10], 1
jne 0x10052f09
xor edx, edx
jmp 0x10052f0e
test al, 8
je 0x10052b59
cmp esi, 0xa
jb 0x10052afc
xor ecx, ecx
cmp esi, 0xa
setne cl
lea ecx, [ecx*2 - 1]
jmp 0x10052e03
test esi, esi
je 0x10052ed3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov edx, esi
lea ecx, [edi + ecx]
call fcn.10051a60
movsd xmm1, qword [ebx]
add esp, 4
cmp esi, 7
jne 0x10052b42
movsd xmm0, qword [esp + 0x40]
comisd xmm1, xmm0
ja 0x10052ed3
comisd xmm0, xmm1
ja 0x10052aa1
jmp 0x10052e1a
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.10052490
add esp, 8
mov ecx, eax
jmp 0x10052e03
test al, 2
je 0x10052ccd
cmp esi, 0x80
jb 0x10052b7f
mov al, byte [ecx + 1]
test al, al
js 0x10052c12
and esi, 0x7f
movzx eax, al
shl esi, 7
or esi, eax
mov eax, esi
cmp esi, 0xc
jb 0x10052ed3
test al, 1
je 0x10052ec9
lea ecx, [esi - 0xc]
shr ecx, 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x4c], ecx
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x24]
ja 0x10052e9b
mov eax, dword [ebp + 8]
mov edx, dword [eax]
movzx eax, word [edx + 8]
cmp eax, dword [esp + 0x1c]
jle 0x10052e9b
mov eax, dword [esp + 0x20]
cmp dword [eax + edx], 0
je 0x10052c53
mov al, byte [edx + 4]
lea ecx, [esp + 0x40]
mov byte [esp + 0x52], al
mov eax, dword [edx + 0xc]
mov dword [esp + 0x54], eax
mov eax, 2
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
add eax, 0x17
push eax
mov eax, dword [esp + 0x24]
push dword [eax + edx]
mov edx, ebx
call fcn.10052220
add esp, 8
mov ecx, eax
jmp 0x10052e03
mov dl, byte [ecx + 2]
test dl, dl
js 0x10052c32
and esi, 0x7f
movzx ecx, al
and ecx, 0x7f
shl esi, 7
or esi, ecx
movzx eax, dl
shl esi, 7
jmp 0x10052b7d
lea edx, [esp + 0x30]
call fcn.1002c9f0
mov esi, dword [esp + 0x30]
xor eax, eax
cmp eax, dword [esp + 0x34]
je 0x10052b7f
or esi, 0xffffffff
jmp 0x10052b92
mov edi, dword [ebx + 0xc]
cmp ecx, edi
mov edx, dword [ebx + 8]
cmovl edi, ecx
mov ecx, dword [esp + 0xc]
add ecx, dword [esp + 0x10]
sub edi, 4
jb 0x10052c81
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10052c86
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10052c70
cmp edi, 0xfffffffc
je 0x10052cba
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10052cb3
cmp edi, 0xfffffffd
je 0x10052cba
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10052cb3
cmp edi, 0xfffffffe
je 0x10052cba
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10052cb3
cmp edi, 0xffffffff
je 0x10052cba
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10052cba
sbb ecx, ecx
or ecx, 1
jmp 0x10052cbc
xor ecx, ecx
test ecx, ecx
jne 0x10052aa6
mov ecx, dword [esp + 0x28]
jmp 0x10052dfc
test al, 0x10
je 0x10052e0d
cmp esi, 0x80
jb 0x10052d29
mov al, byte [ecx + 1]
test al, al
js 0x10052cf1
and esi, 0x7f
movzx eax, al
shl esi, 7
or esi, eax
jmp 0x10052d29
mov dl, byte [ecx + 2]
test dl, dl
js 0x10052d10
and esi, 0x7f
movzx ecx, al
shl esi, 7
and ecx, 0x7f
or esi, ecx
movzx eax, dl
shl esi, 7
or esi, eax
jmp 0x10052d29
lea edx, [esp + 0x38]
call fcn.1002c9f0
mov esi, dword [esp + 0x38]
xor eax, eax
cmp eax, dword [esp + 0x3c]
jne 0x10052ed0
mov edx, esi
mov dword [esp + 0x28], edx
cmp esi, 0xc
jb 0x10052ed3
test dl, 1
jne 0x10052ed3
mov ecx, dword [esp + 0xc]
lea edi, [edx - 0xc]
shr edi, 1
lea eax, [edi + ecx]
cmp eax, dword [esp + 0x24]
ja 0x10052edb
movzx eax, word [ebx + 0x10]
test eax, 0x400
je 0x10052d85
xor eax, eax
test edi, edi
je 0x10052d7f
add ecx, dword [esp + 0x10]
nop dword [eax]
cmp byte [eax + ecx], 0
jne 0x10052aa1
inc eax
cmp eax, edi
jl 0x10052d70
mov ecx, edi
sub ecx, dword [ebx]
jmp 0x10052dff
mov esi, dword [ebx + 0xc]
cmp edi, esi
mov edx, dword [ebx + 8]
cmovl esi, edi
add ecx, dword [esp + 0x10]
sub esi, 4
jb 0x10052db1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10052db6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10052da0
cmp esi, 0xfffffffc
je 0x10052dea
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10052de3
cmp esi, 0xfffffffd
je 0x10052dea
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10052de3
cmp esi, 0xfffffffe
je 0x10052dea
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10052de3
cmp esi, 0xffffffff
je 0x10052dea
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10052dea
sbb ecx, ecx
or ecx, 1
jmp 0x10052dec
xor ecx, ecx
mov eax, dword [esp + 0x28]
mov esi, eax
test ecx, ecx
jne 0x10052aa6
mov ecx, edi
sub ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0xc]
test ecx, ecx
jne 0x10052aa6
jmp 0x10052e1a
test esi, esi
je 0x10052e1a
cmp esi, 0xa
jne 0x10052aa1
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x20], 4
inc edx
mov dword [esp + 0x1c], edx
movzx eax, word [ecx + 0x14]
cmp edx, eax
je 0x10052f4e
add ebx, 0x28
cmp esi, 0x80
jb 0x10052e49
lea eax, [esi - 0xc]
shr eax, 1
jmp 0x10052e50
movzx eax, byte [esi + 0x10161558]
add edi, eax
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x24]
ja 0x10052f4e
shr esi, 7
xor ecx, ecx
mov eax, esi
mov edx, 1
or eax, ecx
je 0x10052e7e
shrd esi, ecx, 7
inc edx
shr ecx, 7
mov eax, esi
or eax, ecx
jne 0x10052e70
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jae 0x10052f20
mov esi, dword [esp + 0x10]
jmp 0x10052830
push 0x10166fc4
push 0x15abb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
mov eax, dword [ebp + 8]
add esp, 0x14
mov byte [eax + 0x17], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, eax
jmp 0x10052aa1
or esi, 0xffffffff
or ecx, 0xffffffff
jmp 0x10052aa6
push 0x10166fc4
push 0x15ad9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
mov eax, dword [ebp + 8]
add esp, 0x14
mov byte [eax + 0x17], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 1
and eax, 1
cmp eax, edx
je 0x10052f17
neg ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10166fc4
push 0x15b05
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.100296a0
mov eax, dword [ebp + 8]
add esp, 0x14
mov byte [eax + 0x17], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx eax, byte [ecx + 0x16]
pop edi
pop esi
mov byte [ecx + 0x1a], 1
pop ebx
mov esp, ebp
pop ebp
ret