Function at 0x10053990
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 0x10053a67
movzx edx, byte [esi + 1]
lea ecx, [esi + 1]
cmp edx, 0x80
jae 0x100539eb
movzx ecx, byte [esi]
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], ecx
movzx edx, byte [edx + 0x101622e8]
mov eax, 1
add ebx, 0x28
lea edi, [edx + ecx]
jmp 0x10053ae4
mov al, byte [ecx + 1]
test al, al
js 0x10053a01
and edx, 0x7f
movzx eax, al
shl edx, 7
or edx, eax
mov al, 2
jmp 0x10053a3a
mov ah, byte [ecx + 2]
test ah, ah
js 0x10053a22
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 0x10053a3a
lea edx, [esp + 0x28]
call fcn.1002df50
mov edx, dword [esp + 0x28]
xor ecx, ecx
cmp ecx, dword [esp + 0x2c]
je 0x10053a3a
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 0x100539d4
add edx, 0xfffffff4
mov dword [esp + 0x14], eax
shr edx, 1
mov eax, 1
add ebx, 0x28
lea edi, [edx + ecx]
jmp 0x10053ae4
movzx ecx, byte [esi]
mov dword [esp + 0x18], ecx
cmp ecx, 0x80
jae 0x10053a80
mov dword [esp + 0x14], 1
jmp 0x10053ae0
mov al, byte [esi + 1]
test al, al
js 0x10053a96
and ecx, 0x7f
movzx eax, al
shl ecx, 7
or ecx, eax
mov al, 2
jmp 0x10053ad5
mov dl, byte [esi + 2]
test dl, dl
js 0x10053ab7
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 0x10053ad5
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.1002df50
mov ecx, dword [esp + 0x28]
xor edx, edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esp + 0x2c]
je 0x10053ad9
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 0x10053b20
push 0x10167d54
push 0x15a6e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
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 0x10053ddf
cmp esi, 0xa
jb 0x10053b5e
xor ecx, ecx
cmp esi, 0xa
setne cl
lea ecx, [ecx*2 - 1]
jmp 0x10054103
test esi, esi
je 0x100541d3
mov edx, dword [esp + 0x10]
lea ecx, [edi + edx]
cmp esi, 7
jne 0x10053b9d
lea eax, [esp + 0x40]
mov edx, esi
push eax
call fcn.10052d60
movsd xmm1, qword [esp + 0x44]
add esp, 4
push dword [ebx + 4]
push dword [ebx]
call fcn.10053790
mov ecx, eax
add esp, 8
neg ecx
jmp 0x10054103
cmp esi, 6
ja case.default.0x10053ba6
jmp dword [esi*4 + 0x10054260]
movsx eax, byte [ecx]
cdq
mov ecx, eax
mov eax, edx
jmp 0x10053d79
movsx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x10053d79
movzx eax, byte [ecx + 1]
movsx ecx, byte [ecx]
shl eax, 8
shl ecx, 0x10
or eax, ecx
movzx ecx, byte [edi + edx + 2]
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x10053d79
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 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 0x10053d79
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]
movsx eax, byte [edi + ecx]
movzx ecx, byte [edi + ecx + 1]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x28]
cdq
add ecx, 0
adc dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
jmp 0x10053d79
movzx eax, byte [ecx]
cdq
mov ecx, eax
mov eax, dword [esp + 0x10]
shld edx, ecx, 8
shl ecx, 8
movzx eax, byte [edi + eax + 1]
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 + 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 0x10053d79
lea ecx, [esi - 8]
xor eax, eax
mov edx, dword [ebx]
cmp eax, dword [ebx + 4]
jl 0x100541d3
jg 0x10053da1
cmp ecx, edx
jb 0x100541d3
cmp eax, dword [ebx + 4]
jg 0x10053da1
jl 0x1005411a
cmp ecx, edx
jbe 0x1005411a
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 0x10054217
test al, 2
je 0x10054215
test esi, esi
je 0x10054209
test byte [ebx + 0x10], 1
jne 0x10054209
xor edx, edx
jmp 0x1005420e
test al, 8
je 0x10053e59
cmp esi, 0xa
jb 0x10053dfc
xor ecx, ecx
cmp esi, 0xa
setne cl
lea ecx, [ecx*2 - 1]
jmp 0x10054103
test esi, esi
je 0x100541d3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
mov edx, esi
lea ecx, [edi + ecx]
call fcn.10052d60
movsd xmm1, qword [ebx]
add esp, 4
cmp esi, 7
jne 0x10053e42
movsd xmm0, qword [esp + 0x40]
comisd xmm1, xmm0
ja 0x100541d3
comisd xmm0, xmm1
ja 0x10053da1
jmp 0x1005411a
push dword [esp + 0x44]
push dword [esp + 0x44]
call fcn.10053790
add esp, 8
mov ecx, eax
jmp 0x10054103
test al, 2
je 0x10053fcd
cmp esi, 0x80
jb 0x10053e7f
mov al, byte [ecx + 1]
test al, al
js 0x10053f12
and esi, 0x7f
movzx eax, al
shl esi, 7
or esi, eax
mov eax, esi
cmp esi, 0xc
jb 0x100541d3
test al, 1
je 0x100541c9
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 0x1005419b
mov eax, dword [ebp + 8]
mov edx, dword [eax]
movzx eax, word [edx + 8]
cmp eax, dword [esp + 0x1c]
jle 0x1005419b
mov eax, dword [esp + 0x20]
cmp dword [eax + edx], 0
je 0x10053f53
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.10053520
add esp, 8
mov ecx, eax
jmp 0x10054103
mov dl, byte [ecx + 2]
test dl, dl
js 0x10053f32
and esi, 0x7f
movzx ecx, al
and ecx, 0x7f
shl esi, 7
or esi, ecx
movzx eax, dl
shl esi, 7
jmp 0x10053e7d
lea edx, [esp + 0x30]
call fcn.1002df50
mov esi, dword [esp + 0x30]
xor eax, eax
cmp eax, dword [esp + 0x34]
je 0x10053e7f
or esi, 0xffffffff
jmp 0x10053e92
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 0x10053f81
nop dword [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10053f86
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10053f70
cmp edi, 0xfffffffc
je 0x10053fba
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10053fb3
cmp edi, 0xfffffffd
je 0x10053fba
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10053fb3
cmp edi, 0xfffffffe
je 0x10053fba
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10053fb3
cmp edi, 0xffffffff
je 0x10053fba
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x10053fba
sbb ecx, ecx
or ecx, 1
jmp 0x10053fbc
xor ecx, ecx
test ecx, ecx
jne 0x10053da6
mov ecx, dword [esp + 0x28]
jmp 0x100540fc
test al, 0x10
je 0x1005410d
cmp esi, 0x80
jb 0x10054029
mov al, byte [ecx + 1]
test al, al
js 0x10053ff1
and esi, 0x7f
movzx eax, al
shl esi, 7
or esi, eax
jmp 0x10054029
mov dl, byte [ecx + 2]
test dl, dl
js 0x10054010
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 0x10054029
lea edx, [esp + 0x38]
call fcn.1002df50
mov esi, dword [esp + 0x38]
xor eax, eax
cmp eax, dword [esp + 0x3c]
jne 0x100541d0
mov edx, esi
mov dword [esp + 0x28], edx
cmp esi, 0xc
jb 0x100541d3
test dl, 1
jne 0x100541d3
mov ecx, dword [esp + 0xc]
lea edi, [edx - 0xc]
shr edi, 1
lea eax, [edi + ecx]
cmp eax, dword [esp + 0x24]
ja 0x100541db
movzx eax, word [ebx + 0x10]
test eax, 0x400
je 0x10054085
xor eax, eax
test edi, edi
je 0x1005407f
add ecx, dword [esp + 0x10]
nop dword [eax]
cmp byte [eax + ecx], 0
jne 0x10053da1
inc eax
cmp eax, edi
jl 0x10054070
mov ecx, edi
sub ecx, dword [ebx]
jmp 0x100540ff
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 0x100540b1
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100540b6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100540a0
cmp esi, 0xfffffffc
je 0x100540ea
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x100540e3
cmp esi, 0xfffffffd
je 0x100540ea
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x100540e3
cmp esi, 0xfffffffe
je 0x100540ea
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x100540e3
cmp esi, 0xffffffff
je 0x100540ea
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x100540ea
sbb ecx, ecx
or ecx, 1
jmp 0x100540ec
xor ecx, ecx
mov eax, dword [esp + 0x28]
mov esi, eax
test ecx, ecx
jne 0x10053da6
mov ecx, edi
sub ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0xc]
test ecx, ecx
jne 0x10053da6
jmp 0x1005411a
test esi, esi
je 0x1005411a
cmp esi, 0xa
jne 0x10053da1
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 0x1005424e
add ebx, 0x28
cmp esi, 0x80
jb 0x10054149
lea eax, [esi - 0xc]
shr eax, 1
jmp 0x10054150
movzx eax, byte [esi + 0x101622e8]
add edi, eax
mov dword [esp + 0xc], edi
cmp edi, dword [esp + 0x24]
ja 0x1005424e
shr esi, 7
xor ecx, ecx
mov eax, esi
mov edx, 1
or eax, ecx
je 0x1005417e
shrd esi, ecx, 7
inc edx
shr ecx, 7
mov eax, esi
or eax, ecx
jne 0x10054170
mov eax, dword [esp + 0x14]
add eax, edx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jae 0x10054220
mov esi, dword [esp + 0x10]
jmp 0x10053b30
push 0x10167d54
push 0x15abb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
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 0x10053da1
or esi, 0xffffffff
or ecx, 0xffffffff
jmp 0x10053da6
push 0x10167d54
push 0x15ad9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
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 0x10054217
neg ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10167d54
push 0x15b05
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002a9f0
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