Function at 0x47e620
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x609e44]
xor eax, esp
mov dword [esp + 0x68], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], eax
je 0x47e6fb
cmp byte [edx + 1], 0x80
lea esi, [edx + 1]
movzx ecx, byte [esi]
jae 0x47e663
mov al, 1
jmp 0x47e6bb
movzx eax, byte [esi + 1]
mov dword [esp + 0x20], eax
test al, al
js 0x47e67b
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov al, 2
jmp 0x47e6bb
movzx eax, byte [esi + 2]
shl ecx, 0xe
or eax, ecx
test al, al
js 0x47e69d
mov ecx, dword [esp + 0x20]
and eax, 0x1fc07f
and ecx, 0x7f
shl ecx, 7
or ecx, eax
mov al, 3
jmp 0x47e6bb
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.0045c870
mov ecx, dword [esp + 0x28]
xor edx, edx
cmp edx, dword [esp + 0x2c]
je 0x47e6b7
or ecx, 0xffffffff
mov edx, dword [esp + 0x10]
movzx esi, byte [edx]
movzx eax, al
inc eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
cmp ecx, 0x80
jb 0x47e6d9
add ecx, 0xfffffff4
shr ecx, 1
jmp 0x47e6e0
movzx ecx, byte [ecx + 0x5fa868]
lea edi, [ecx + esi]
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x20]
add ebx, 0x28
mov dword [esp + 0x24], edi
jmp 0x47e784
cmp byte [edx], 0x80
movzx esi, byte [edx]
mov dword [esp + 0x1c], esi
jae 0x47e70b
mov al, 1
jmp 0x47e76f
movzx ecx, byte [edx + 1]
test cl, cl
js 0x47e723
and esi, 0x7f
mov al, 2
shl esi, 7
or esi, ecx
mov dword [esp + 0x1c], esi
jmp 0x47e76f
movzx eax, byte [edx + 2]
shl esi, 0xe
or eax, esi
test al, al
js 0x47e747
mov esi, ecx
and eax, 0x1fc07f
and esi, 0x7f
shl esi, 7
or esi, eax
mov al, 3
mov dword [esp + 0x1c], esi
jmp 0x47e76f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
call fcn.0045c870
mov esi, dword [esp + 0x28]
xor ecx, ecx
mov dword [esp + 0x1c], esi
cmp ecx, dword [esp + 0x2c]
je 0x47e76b
or esi, 0xffffffff
mov dword [esp + 0x1c], esi
mov edx, dword [esp + 0x10]
movzx ecx, al
mov edi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], 0
cmp edi, dword [esp + 0x34]
jbe 0x47e7c4
push 0x604454
push 0x14147
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045ade0
mov edx, dword [esp + 0x28]
add esp, 0x14
xor eax, eax
mov byte [edx + 0xb], 0xb
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
movsd xmm1, qword [0x604588]
nop dword [eax]
movzx eax, word [ebx + 8]
add ecx, edx
movzx esi, byte [ecx]
test al, 0x24
je 0x47ea7f
cmp esi, 0xa
jae 0x47ea40
test esi, esi
je 0x47eec4
add edi, edx
mov dword [esp + 0xc], edi
cmp esi, 7
jne 0x47e89a
lea eax, [esp + 0x48]
mov edx, esi
push eax
mov ecx, edi
call fcn.0047dc90
movsd xmm0, qword [esp + 0x4c]
add esp, 4
movsd xmm2, qword [0x6045e8]
comisd xmm2, xmm0
jbe 0x47e82e
or ecx, 0xffffffff
jmp 0x47edea
comisd xmm0, xmm1
jb 0x47e83e
mov ecx, 1
jmp 0x47edea
call fcn.005a78c0
mov ecx, dword [ebx]
mov edi, edx
mov edx, dword [ebx + 4]
cmp edx, edi
jg 0x47e868
jl 0x47e854
cmp ecx, eax
jae 0x47e85e
mov ecx, 1
jmp 0x47edea
cmp edx, edi
jl 0x47e870
jg 0x47e868
cmp ecx, eax
jbe 0x47e870
or ecx, 0xffffffff
jmp 0x47edea
call fcn.005a7970
movsd xmm1, qword [esp + 0x48]
comisd xmm1, xmm0
jbe 0x47e88b
mov ecx, 1
jmp 0x47edea
xor ecx, ecx
comisd xmm0, xmm1
setbe cl
dec ecx
jmp 0x47edea
cmp esi, 6
ja case.default.0x47e8a3
jmp dword [esi*4 + 0x47ef48]
movsx eax, byte [edi]
cdq
mov edi, eax
mov ecx, edx
jmp 0x47ea17
movsx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
cdq
mov edi, eax
mov ecx, edx
jmp 0x47ea17
movzx eax, byte [edi + 1]
movsx ecx, byte [edi]
shl ecx, 0x10
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 2]
or eax, ecx
cdq
mov edi, eax
mov ecx, edx
jmp 0x47ea17
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 3]
shl eax, 8
or eax, ecx
cdq
mov edi, eax
mov ecx, edx
jmp 0x47ea17
movzx eax, byte [edi + 2]
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 3]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 4]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 5]
cdq
or ecx, edx
or edi, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xc]
movsx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x28]
add edi, 0
cdq
adc ecx, eax
jmp 0x47ea17
movzx eax, byte [edi]
cdq
mov edi, eax
mov ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 1]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 2]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 3]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 4]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 5]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 6]
cdq
or edi, eax
or ecx, edx
mov eax, dword [esp + 0xc]
shld ecx, edi, 8
shl edi, 8
movzx eax, byte [eax + 7]
cdq
or edi, eax
or ecx, edx
jmp 0x47ea17
lea edi, [esi - 8]
xor ecx, ecx
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
cmp ecx, edx
jl 0x47eec4
jg 0x47ea40
cmp edi, eax
jb 0x47eec4
cmp ecx, edx
jg 0x47ea40
jl 0x47edfa
cmp edi, eax
jbe 0x47edfa
mov ecx, 1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + edx]
test eax, eax
je 0x47ef32
test al, 2
je 0x47ef30
test esi, esi
je 0x47ef24
test byte [ebx + 8], 1
jne 0x47ef24
xor edx, edx
jmp 0x47ef29
test al, 8
je 0x47eb43
cmp esi, 0xa
jae 0x47ea40
test esi, esi
je 0x47eec4
lea eax, [esp + 0x48]
lea ecx, [edx + edi]
mov edx, esi
push eax
call fcn.0047dc90
movsd xmm0, qword [ebx]
add esp, 4
cmp esi, 7
jne 0x47eace
movsd xmm1, qword [esp + 0x48]
comisd xmm0, xmm1
ja 0x47eec4
comisd xmm1, xmm0
ja 0x47ea40
jmp 0x47edf2
movsd xmm2, qword [0x6045e8]
comisd xmm2, xmm0
ja 0x47ea40
comisd xmm0, xmm1
jae 0x47eec4
call fcn.005a78c0
mov edi, edx
mov edx, dword [esp + 0x4c]
cmp edx, edi
jl 0x47eec4
mov ecx, dword [esp + 0x48]
jg 0x47ea40
cmp ecx, eax
jb 0x47eec4
cmp edx, edi
jg 0x47ea40
jl 0x47eb21
cmp ecx, eax
ja 0x47ea40
call fcn.005a7970
movsd xmm1, qword [ebx]
comisd xmm1, xmm0
ja 0x47eec4
comisd xmm0, xmm1
ja 0x47ea40
jmp 0x47edf2
test al, 2
je 0x47ecb8
cmp esi, 0x80
jb 0x47eb67
movzx edx, byte [ecx + 1]
test dl, dl
js 0x47ebfe
and esi, 0x7f
shl esi, 7
or esi, edx
mov eax, esi
cmp esi, 0xc
jb 0x47eec4
test al, 1
je 0x47eeb5
lea ecx, [esi - 0xc]
shr ecx, 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x54], ecx
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x34]
ja 0x47ee7b
mov edx, dword [esp + 0x14]
mov edx, dword [edx]
movzx eax, word [edx + 8]
cmp eax, dword [esp + 0x18]
jle 0x47ee7b
mov eax, dword [esp + 0x18]
cmp dword [edx + eax*4 + 0x14], 0
je 0x47ec40
mov al, byte [edx + 4]
lea ecx, [esp + 0x48]
mov byte [esp + 0x52], al
mov eax, dword [edx + 0xc]
mov dword [esp + 0x68], eax
mov eax, 2
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x10]
add eax, edi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
add eax, 0xb
push eax
mov eax, dword [esp + 0x1c]
push dword [edx + eax*4 + 0x14]
mov edx, ebx
call fcn.0047e160
add esp, 8
mov ecx, eax
jmp 0x47edea
movzx eax, byte [ecx + 2]
shl esi, 0xe
or eax, esi
test al, al
js 0x47ec1f
mov esi, edx
and eax, 0x1fc07f
and esi, 0x7f
shl esi, 7
or esi, eax
jmp 0x47eb67
lea edx, [esp + 0x38]
call fcn.0045c870
mov esi, dword [esp + 0x38]
xor eax, eax
cmp eax, dword [esp + 0x3c]
je 0x47eb67
or esi, 0xffffffff
jmp 0x47eb7a
mov edi, dword [ebx + 0xc]
cmp ecx, edi
mov edx, dword [ebx + 0x10]
cmovl edi, ecx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x24]
sub edi, 4
jb 0x47ec69
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47ec6e
add ecx, 4
add edx, 4
sub edi, 4
jae 0x47ec58
cmp edi, 0xfffffffc
je 0x47eca2
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x47ec9b
cmp edi, 0xfffffffd
je 0x47eca2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x47ec9b
cmp edi, 0xfffffffe
je 0x47eca2
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x47ec9b
cmp edi, 0xffffffff
je 0x47eca2
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x47eca2
sbb ecx, ecx
or ecx, 1
jmp 0x47eca4
xor ecx, ecx
test ecx, ecx
jne 0x47ea45
mov ecx, dword [esp + 0x28]
sub ecx, dword [ebx + 0xc]
jmp 0x47edea
test al, 0x10
je 0x47ede3
cmp esi, 0x80
jb 0x47ed11
movzx edx, byte [ecx + 1]
test dl, dl
js 0x47ecda
and esi, 0x7f
shl esi, 7
or esi, edx
jmp 0x47ed11
movzx eax, byte [ecx + 2]
shl esi, 0xe
or eax, esi
test al, al
js 0x47ecf8
mov esi, edx
and eax, 0x1fc07f
and esi, 0x7f
shl esi, 7
or esi, eax
jmp 0x47ed11
lea edx, [esp + 0x40]
call fcn.0045c870
mov esi, dword [esp + 0x40]
xor eax, eax
cmp eax, dword [esp + 0x44]
jne 0x47eec1
mov ecx, esi
mov dword [esp + 0x28], ecx
cmp esi, 0xc
jb 0x47eec4
test cl, 1
jne 0x47eec4
mov edx, dword [esp + 0x24]
lea edi, [ecx - 0xc]
shr edi, 1
lea eax, [edi + edx]
cmp eax, dword [esp + 0x34]
ja 0x47eecc
movzx eax, word [ebx + 8]
test eax, 0x4000
je 0x47ed6c
xor eax, eax
test edi, edi
je 0x47ed63
add edx, dword [esp + 0x10]
cmp byte [edx + eax], 0
jne 0x47ea40
inc eax
cmp eax, edi
jl 0x47ed54
mov ecx, edi
sub ecx, dword [ebx]
jmp 0x47edea
mov esi, dword [ebx + 0xc]
cmp edi, esi
mov ecx, dword [esp + 0x10]
cmovl esi, edi
add ecx, edx
mov edx, dword [ebx + 0x10]
sub esi, 4
jb 0x47ed93
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x47ed98
add ecx, 4
add edx, 4
sub esi, 4
jae 0x47ed82
cmp esi, 0xfffffffc
je 0x47edcc
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x47edc5
cmp esi, 0xfffffffd
je 0x47edcc
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x47edc5
cmp esi, 0xfffffffe
je 0x47edcc
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x47edc5
cmp esi, 0xffffffff
je 0x47edcc
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x47edcc
sbb ecx, ecx
or ecx, 1
jmp 0x47edce
xor ecx, ecx
mov eax, dword [esp + 0x28]
mov esi, eax
test ecx, ecx
jne 0x47ea45
mov ecx, edi
sub ecx, dword [ebx + 0xc]
jmp 0x47edea
xor ecx, ecx
test esi, esi
setne cl
test ecx, ecx
jne 0x47ea45
movsd xmm1, qword [0x604588]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x18], ecx
movzx eax, word [eax + 8]
cmp ecx, eax
je 0x47ef06
add ebx, 0x28
cmp esi, 0x80
jb 0x47ee25
lea eax, [esi - 0xc]
shr eax, 1
jmp 0x47ee2c
movzx eax, byte [esi + 0x5fa868]
mov edi, dword [esp + 0x24]
xor ecx, ecx
add edi, eax
shr esi, 7
mov eax, esi
mov dword [esp + 0x24], edi
or eax, ecx
mov edx, 1
je 0x47ee54
shrd esi, ecx, 7
inc edx
shr ecx, 7
mov eax, esi
or eax, ecx
jne 0x47ee46
mov ecx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x1c]
jae 0x47ef06
cmp edi, dword [esp + 0x34]
ja 0x47ef06
mov edx, dword [esp + 0x10]
jmp 0x47e7d0
push 0x604454
push 0x14194
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045ade0
mov eax, dword [esp + 0x28]
add esp, 0x14
mov byte [eax + 0xb], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov esi, eax
jmp 0x47ea45
or esi, 0xffffffff
or ecx, 0xffffffff
jmp 0x47ea45
push 0x604454
push 0x141b2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.0045ade0
mov eax, dword [esp + 0x28]
add esp, 0x14
mov byte [eax + 0xb], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov byte [eax + 0xe], 1
movsx eax, byte [eax + 0xa]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov edx, 1
and eax, 1
cmp eax, edx
je 0x47ef32
neg ecx
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x70]
pop esi
pop ebx
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret