Function at 0x1004e9c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [esp + 0x28], ecx
push edi
mov ebx, dword [ebx + 4]
mov dword [esp + 0x18], esi
je 0x1004eaa1
movzx edx, byte [esi + 1]
lea ecx, [esi + 1]
cmp edx, 0x80
jae 0x1004ea1b
movzx ecx, byte [esi]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x20], ecx
movzx edx, byte [edx + 0x1013f4b0]
mov eax, 1
add ebx, 0x28
lea edi, [edx + ecx]
jmp 0x1004eb1e
mov al, byte [ecx + 1]
test al, al
js 0x1004ea31
and edx, 0x7f
movzx eax, al
shl edx, 7
or edx, eax
mov al, 2
jmp 0x1004ea70
mov ah, byte [ecx + 2]
mov byte [esp + 0x13], ah
test ah, ah
js 0x1004ea58
and edx, 0x7f
movzx eax, al
and eax, 0x7f
shl edx, 7
or edx, eax
movzx eax, byte [esp + 0x13]
shl edx, 7
or edx, eax
mov al, 3
jmp 0x1004ea70
lea edx, [esp + 0x30]
call fcn.1002ba00
mov edx, dword [esp + 0x30]
xor ecx, ecx
cmp ecx, dword [esp + 0x34]
je 0x1004ea70
or edx, 0xffffffff
movzx ecx, byte [esi]
movzx eax, al
inc eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
cmp edx, 0x80
jb 0x1004ea04
add edx, 0xfffffff4
mov dword [esp + 0x1c], eax
shr edx, 1
mov eax, 1
add ebx, 0x28
lea edi, [edx + ecx]
jmp 0x1004eb1e
movzx ecx, byte [esi]
mov dword [esp + 0x20], ecx
cmp ecx, 0x80
jae 0x1004eaba
mov dword [esp + 0x1c], 1
jmp 0x1004eb1a
mov al, byte [esi + 1]
test al, al
js 0x1004ead0
and ecx, 0x7f
movzx eax, al
shl ecx, 7
or ecx, eax
mov al, 2
jmp 0x1004eb0f
mov dl, byte [esi + 2]
test dl, dl
js 0x1004eaf1
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 0x1004eb0f
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.1002ba00
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x20], ecx
cmp edx, dword [esp + 0x34]
je 0x1004eb13
or ecx, 0xffffffff
mov dword [esp + 0x20], ecx
movzx eax, al
mov dword [esp + 0x1c], eax
mov edi, ecx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x2c]
jbe 0x1004eb5a
push 0x10144edc
push 0x15a6e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
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 + 0x28], eax
mov ecx, dword [esp + 0x1c]
movzx eax, word [ebx + 0x10]
add ecx, esi
mov dl, byte [ecx]
movzx esi, dl
test al, 0x24
je 0x1004ee16
cmp esi, 0xa
jb 0x1004eb95
xor ecx, ecx
cmp esi, 0xa
setne cl
lea ecx, [ecx*2 - 1]
jmp 0x1004f133
test dl, dl
je 0x1004f203
mov edx, dword [esp + 0x18]
lea ecx, [edi + edx]
cmp esi, 7
jne 0x1004ebd4
lea eax, [esp + 0x48]
mov edx, esi
push eax
call fcn.1004e040
movsd xmm1, qword [esp + 0x4c]
add esp, 4
push dword [ebx + 4]
push dword [ebx]
call fcn.1004e770
mov ecx, eax
add esp, 8
neg ecx
jmp 0x1004f133
cmp esi, 6
ja case.default.0x1004ebdd
jmp dword [esi*4 + 0x1004f290]
movsx eax, byte [ecx]
cdq
mov ecx, eax
mov eax, edx
jmp 0x1004edb0
movzx eax, byte [ecx + 1]
movsx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x1004edb0
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 0x1004edb0
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 0x1004edb0
movzx eax, byte [ecx + 2]
cdq
mov ecx, eax
mov eax, dword [esp + 0x18]
shld edx, ecx, 8
shl ecx, 8
movzx eax, byte [edi + eax + 3]
mov dword [esp + 0x14], edx
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 4]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 5]
cdq
or dword [esp + 0x14], edx
or ecx, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
movzx eax, byte [edi + ecx + 1]
movsx ecx, byte [edi + ecx]
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 0x30]
cdq
add ecx, 0
adc dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
jmp 0x1004edb0
movzx eax, byte [ecx + 1]
cdq
mov ecx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x18]
movzx eax, byte [edi + eax]
cdq
shld edx, eax, 8
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 2]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 3]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 4]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 5]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 6]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [edi + eax + 7]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
jmp 0x1004edb0
lea ecx, [esi - 8]
xor eax, eax
mov edx, dword [ebx]
cmp eax, dword [ebx + 4]
jl 0x1004f203
jg 0x1004edd8
cmp ecx, edx
jb 0x1004f203
cmp eax, dword [ebx + 4]
jg 0x1004edd8
jl 0x1004f14a
cmp ecx, edx
jbe 0x1004f14a
mov ecx, 1
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + edx]
test eax, eax
je 0x1004f247
test al, 2
je 0x1004f245
test esi, esi
je 0x1004f239
test byte [ebx + 0x10], 1
jne 0x1004f239
xor edx, edx
jmp 0x1004f23e
test al, 8
je 0x1004ee93
cmp esi, 0xa
jb 0x1004ee33
xor ecx, ecx
cmp esi, 0xa
setne cl
lea ecx, [ecx*2 - 1]
jmp 0x1004f133
test dl, dl
je 0x1004f203
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
mov edx, esi
lea ecx, [edi + ecx]
call fcn.1004e040
movsd xmm0, qword [ebx]
add esp, 4
cmp esi, 7
jne 0x1004ee79
movsd xmm1, qword [esp + 0x48]
comisd xmm0, xmm1
ja 0x1004f203
comisd xmm1, xmm0
ja 0x1004edd8
jmp 0x1004f14a
push dword [esp + 0x4c]
movaps xmm1, xmm0
push dword [esp + 0x4c]
call fcn.1004e770
add esp, 8
mov ecx, eax
jmp 0x1004f133
test al, 2
je 0x1004f002
cmp esi, 0x80
jb 0x1004eeb9
mov al, byte [ecx + 1]
test al, al
js 0x1004ef4c
and esi, 0x7f
movzx eax, al
shl esi, 7
or esi, eax
mov eax, esi
cmp esi, 0xc
jb 0x1004f203
test al, 1
je 0x1004f1f9
lea ecx, [esi - 0xc]
shr ecx, 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x54], ecx
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x2c]
ja 0x1004f1cb
mov eax, dword [ebp + 8]
mov edx, dword [eax]
movzx eax, word [edx + 8]
cmp eax, dword [esp + 0x24]
jle 0x1004f1cb
mov eax, dword [esp + 0x28]
cmp dword [eax + edx], 0
je 0x1004ef8d
mov al, byte [edx + 4]
lea ecx, [esp + 0x48]
mov byte [esp + 0x5a], al
mov eax, dword [edx + 0xc]
mov dword [esp + 0x5c], eax
mov eax, 2
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 8]
add eax, 0x17
push eax
mov eax, dword [esp + 0x2c]
push dword [eax + edx]
mov edx, ebx
call fcn.1004e500
add esp, 8
mov ecx, eax
jmp 0x1004f133
mov dl, byte [ecx + 2]
test dl, dl
js 0x1004ef6c
and esi, 0x7f
movzx ecx, al
and ecx, 0x7f
shl esi, 7
or esi, ecx
movzx eax, dl
shl esi, 7
jmp 0x1004eeb7
lea edx, [esp + 0x38]
call fcn.1002ba00
mov esi, dword [esp + 0x38]
xor eax, eax
cmp eax, dword [esp + 0x3c]
je 0x1004eeb9
or esi, 0xffffffff
jmp 0x1004eecc
mov edi, dword [ebx + 0xc]
cmp ecx, edi
mov edx, dword [ebx + 8]
cmovl edi, ecx
mov ecx, dword [esp + 0x14]
add ecx, dword [esp + 0x18]
sub edi, 4
jb 0x1004efb6
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004efbb
add ecx, 4
add edx, 4
sub edi, 4
jae 0x1004efa5
cmp edi, 0xfffffffc
je 0x1004efef
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1004efe8
cmp edi, 0xfffffffd
je 0x1004efef
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1004efe8
cmp edi, 0xfffffffe
je 0x1004efef
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1004efe8
cmp edi, 0xffffffff
je 0x1004efef
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1004efef
sbb ecx, ecx
or ecx, 1
jmp 0x1004eff1
xor ecx, ecx
test ecx, ecx
jne 0x1004eddd
mov ecx, dword [esp + 0x30]
jmp 0x1004f12c
test al, 0x10
je 0x1004f13d
cmp esi, 0x80
jb 0x1004f05e
mov al, byte [ecx + 1]
test al, al
js 0x1004f026
and esi, 0x7f
movzx eax, al
shl esi, 7
or esi, eax
jmp 0x1004f05e
mov dl, byte [ecx + 2]
test dl, dl
js 0x1004f045
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 0x1004f05e
lea edx, [esp + 0x40]
call fcn.1002ba00
mov esi, dword [esp + 0x40]
xor eax, eax
cmp eax, dword [esp + 0x44]
jne 0x1004f200
mov edx, esi
mov dword [esp + 0x30], edx
cmp esi, 0xc
jb 0x1004f203
test dl, 1
jne 0x1004f203
mov ecx, dword [esp + 0x14]
lea edi, [edx - 0xc]
shr edi, 1
lea eax, [edi + ecx]
cmp eax, dword [esp + 0x2c]
ja 0x1004f20b
movzx eax, word [ebx + 0x10]
test eax, 0x400
je 0x1004f0b6
xor eax, eax
test edi, edi
je 0x1004f0b0
add ecx, dword [esp + 0x18]
cmp byte [eax + ecx], 0
jne 0x1004edd8
inc eax
cmp eax, edi
jl 0x1004f0a1
mov ecx, edi
sub ecx, dword [ebx]
jmp 0x1004f12f
mov esi, dword [ebx + 0xc]
cmp edi, esi
mov edx, dword [ebx + 8]
cmovl esi, edi
add ecx, dword [esp + 0x18]
sub esi, 4
jb 0x1004f0e1
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004f0e6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1004f0d0
cmp esi, 0xfffffffc
je 0x1004f11a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1004f113
cmp esi, 0xfffffffd
je 0x1004f11a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1004f113
cmp esi, 0xfffffffe
je 0x1004f11a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1004f113
cmp esi, 0xffffffff
je 0x1004f11a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1004f11a
sbb ecx, ecx
or ecx, 1
jmp 0x1004f11c
xor ecx, ecx
mov eax, dword [esp + 0x30]
mov esi, eax
test ecx, ecx
jne 0x1004eddd
mov ecx, edi
sub ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x14]
test ecx, ecx
jne 0x1004eddd
jmp 0x1004f14a
test dl, dl
je 0x1004f14a
cmp esi, 0xa
jne 0x1004edd8
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x24]
add dword [esp + 0x28], 4
inc edx
mov dword [esp + 0x24], edx
movzx eax, word [ecx + 0x14]
cmp edx, eax
je 0x1004f27e
add ebx, 0x28
cmp esi, 0x80
jb 0x1004f179
lea eax, [esi - 0xc]
shr eax, 1
jmp 0x1004f180
movzx eax, byte [esi + 0x1013f4b0]
add edi, eax
mov dword [esp + 0x14], edi
cmp edi, dword [esp + 0x2c]
ja 0x1004f27e
shr esi, 7
xor ecx, ecx
mov eax, esi
mov edx, 1
or eax, ecx
je 0x1004f1ae
shrd esi, ecx, 7
inc edx
shr ecx, 7
mov eax, esi
or eax, ecx
jne 0x1004f1a0
mov eax, dword [esp + 0x1c]
add eax, edx
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jae 0x1004f250
mov esi, dword [esp + 0x18]
jmp 0x1004eb65
push 0x10144edc
push 0x15abb
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
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 0x1004edd8
or esi, 0xffffffff
or ecx, 0xffffffff
jmp 0x1004eddd
push 0x10144edc
push 0x15ad9
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
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 0x1004f247
neg ecx
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10144edc
push 0x15b05
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
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