Function at 0x1004d1d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], ecx
mov edi, dword [edi + 4]
je 0x1004d250
mov al, byte [edx + 1]
lea ecx, [edx + 1]
cmp al, 0x80
jae 0x1004d201
movzx eax, al
mov cl, 1
jmp 0x1004d214
lea edx, [esp + 0x30]
call fcn.1002e610
mov edx, dword [esp + 0x18]
mov cl, al
mov eax, dword [esp + 0x30]
movzx ebx, cl
movzx ecx, byte [edx]
inc ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
cmp eax, 0x80
jb 0x1004d23c
add eax, 0xfffffff4
shr eax, 1
add edi, 0x28
lea esi, [ecx + eax]
mov eax, 1
jmp 0x1004d281
movzx eax, byte [eax + 0x103d6e70]
add edi, 0x28
lea esi, [ecx + eax]
mov eax, 1
jmp 0x1004d281
mov al, byte [edx]
cmp al, 0x80
jae 0x1004d25d
movzx ecx, al
mov al, 1
jmp 0x1004d272
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.1002e610
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
movzx ebx, al
mov esi, ecx
mov dword [esp + 0x30], ecx
xor eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x28]
jbe 0x1004d2bd
push 0x103df92c
push 0x13f75
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002cbe0
mov eax, dword [ebp + 8]
add esp, 0x14
mov byte [eax + 0xb], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [eax*4 + 0x14]
mov dword [esp + 0x24], eax
movzx ecx, word [edi + 8]
add ebx, edx
mov al, byte [ebx]
mov byte [esp + 0x13], al
test cl, 0x24
je 0x1004d5e6
movzx ebx, al
mov dword [esp + 0x1c], ebx
cmp ebx, 0xa
jae 0x1004d5a8
test al, al
je 0x1004d8bd
lea ecx, [esi + edx]
cmp ebx, 7
jne 0x1004d3a2
lea eax, [esp + 0x38]
mov edx, ebx
push eax
call fcn.1004c8a0
movsd xmm0, qword [esp + 0x3c]
add esp, 4
movsd xmm1, qword [0x103e5b30]
comisd xmm1, xmm0
jbe 0x1004d32c
or ecx, 0xffffffff
jmp 0x1004d837
comisd xmm0, xmmword [0x103e5ac0]
jb 0x1004d340
mov ecx, 1
jmp 0x1004d837
call fcn.1024a8ef
mov ecx, dword [edi]
mov dword [esp + 0x14], edx
mov edx, dword [edi + 4]
cmp edx, dword [esp + 0x14]
jg 0x1004d370
jl 0x1004d35a
cmp ecx, eax
jae 0x1004d364
mov ecx, 1
jmp 0x1004d837
cmp edx, dword [esp + 0x14]
jl 0x1004d378
jg 0x1004d370
cmp ecx, eax
jbe 0x1004d378
or ecx, 0xffffffff
jmp 0x1004d837
call fcn.1024aa40
movsd xmm1, qword [esp + 0x38]
comisd xmm1, xmm0
jbe 0x1004d393
mov ecx, 1
jmp 0x1004d837
xor ecx, ecx
comisd xmm0, xmm1
setbe cl
dec ecx
jmp 0x1004d837
cmp ebx, 6
ja case.default.0x1004d3ab
jmp dword [ebx*4 + 0x1004d94c]
movsx eax, byte [ecx]
cdq
mov ecx, eax
mov eax, edx
jmp 0x1004d580
movzx eax, byte [ecx + 1]
movsx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x1004d580
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx + 2]
shl eax, 8
or eax, ecx
movsx ecx, byte [esi + edx]
shl ecx, 0x10
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x1004d580
movzx eax, byte [ecx + 1]
movzx ecx, byte [ecx]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + edx + 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [esi + edx + 3]
shl eax, 8
or eax, ecx
cdq
mov ecx, eax
mov eax, edx
jmp 0x1004d580
movzx eax, byte [ecx + 2]
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
shl ecx, 8
movzx eax, byte [esi + 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 [esi + 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 [esi + eax + 5]
cdq
or dword [esp + 0x14], edx
or ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
movzx eax, byte [esi + ecx + 1]
movsx ecx, byte [esi + ecx]
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 0x34]
cdq
add ecx, 0
adc dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
jmp 0x1004d580
movzx eax, byte [ecx + 1]
cdq
mov ecx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x18]
movzx eax, byte [esi + 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 [esi + 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 [esi + 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 [esi + 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 [esi + 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 [esi + 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 [esi + eax + 7]
cdq
or ecx, eax
mov eax, dword [esp + 0x14]
or eax, edx
jmp 0x1004d580
lea ecx, [ebx - 8]
xor eax, eax
mov edx, dword [edi]
cmp eax, dword [edi + 4]
jl 0x1004d8bd
jg 0x1004d5a8
cmp ecx, edx
jb 0x1004d8bd
cmp eax, dword [edi + 4]
jg 0x1004d5a8
jl 0x1004d83f
cmp ecx, edx
jbe 0x1004d83f
mov ecx, 1
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + edx]
test eax, eax
je 0x1004d941
test al, 2
je 0x1004d93f
test ebx, ebx
je 0x1004d933
test byte [edi + 8], 1
jne 0x1004d933
xor edx, edx
jmp 0x1004d938
test cl, 8
je 0x1004d655
movzx ebx, al
mov dword [esp + 0x1c], ebx
cmp ebx, 0xa
jae 0x1004d5a8
test al, al
je 0x1004d8bd
lea eax, [esp + 0x38]
lea ecx, [esi + edx]
mov edx, ebx
push eax
call fcn.1004c8a0
movsd xmm0, qword [edi]
add esp, 4
cmp byte [esp + 0x13], 7
jne 0x1004d63b
movsd xmm1, qword [esp + 0x38]
comisd xmm0, xmm1
ja 0x1004d8bd
comisd xmm1, xmm0
ja 0x1004d5a8
jmp 0x1004d83f
push dword [esp + 0x3c]
movaps xmm1, xmm0
push dword [esp + 0x3c]
call fcn.1004cfd0
add esp, 8
mov ecx, eax
jmp 0x1004d837
test cl, 2
je 0x1004d73e
cmp al, 0x80
jae 0x1004d66b
movzx ebx, al
mov dword [esp + 0x1c], ebx
jmp 0x1004d67a
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.1002e610
mov ebx, dword [esp + 0x1c]
cmp ebx, 0xc
jb 0x1004d8bd
test bl, 1
je 0x1004d5a8
lea ecx, [ebx - 0xc]
shr ecx, 1
mov dword [esp + 0x34], ecx
mov dword [esp + 0x44], ecx
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x28]
ja 0x1004d8c5
mov eax, dword [ebp + 8]
mov edx, dword [eax]
movzx eax, word [edx + 8]
cmp eax, dword [esp + 0x20]
jle 0x1004d8c5
mov eax, dword [esp + 0x24]
cmp dword [eax + edx], 0
je 0x1004d708
mov al, byte [edx + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x42], al
mov eax, dword [edx + 0xc]
mov dword [esp + 0x58], eax
mov eax, 2
mov word [esp + 0x40], ax
mov eax, dword [esp + 0x18]
add eax, esi
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 8]
add eax, 0xb
push eax
mov eax, dword [esp + 0x28]
push dword [eax + edx]
mov edx, edi
call fcn.1004cd20
add esp, 8
mov ecx, eax
jmp 0x1004d837
mov esi, dword [edi + 0xc]
cmp ecx, esi
mov edx, dword [edi + 0x10]
cmovl esi, ecx
mov ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x14]
sub esi, 4
jb 0x1004d7d9
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004d7de
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1004d724
jmp 0x1004d7d9
test cl, 0x10
je 0x1004d829
cmp al, 0x80
jae 0x1004d754
movzx ebx, al
mov dword [esp + 0x1c], ebx
jmp 0x1004d767
lea edx, [esp + 0x1c]
mov ecx, ebx
call fcn.1002e610
mov ebx, dword [esp + 0x1c]
movzx ecx, word [edi + 8]
cmp ebx, 0xc
jb 0x1004d8bd
test bl, 1
jne 0x1004d8bd
lea edx, [ebx - 0xc]
shr edx, 1
mov dword [esp + 0x34], edx
lea eax, [edx + esi]
cmp eax, dword [esp + 0x28]
ja 0x1004d8f3
test ecx, 0x4000
mov ecx, dword [esp + 0x18]
je 0x1004d7b4
lea ecx, [esi + ecx]
call fcn.1004cea0
test eax, eax
je 0x1004d5a8
mov ecx, edx
sub ecx, dword [edi]
jmp 0x1004d837
mov esi, dword [edi + 0xc]
cmp edx, esi
cmovl esi, edx
add ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x10]
sub esi, 4
jb 0x1004d7d9
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1004d7de
add ecx, 4
add edx, 4
sub esi, 4
jae 0x1004d7c8
cmp esi, 0xfffffffc
je 0x1004d812
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x1004d80b
cmp esi, 0xfffffffd
je 0x1004d812
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x1004d80b
cmp esi, 0xfffffffe
je 0x1004d812
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x1004d80b
cmp esi, 0xffffffff
je 0x1004d812
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x1004d812
sbb ecx, ecx
or ecx, 1
jmp 0x1004d814
xor ecx, ecx
test ecx, ecx
jne 0x1004d5ad
mov ecx, dword [esp + 0x34]
sub ecx, dword [edi + 0xc]
mov esi, dword [esp + 0x14]
jmp 0x1004d837
xor ecx, ecx
movzx ebx, al
test al, al
mov dword [esp + 0x1c], ebx
setne cl
test ecx, ecx
jne 0x1004d5ad
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x24], 4
inc ecx
mov dword [esp + 0x20], ecx
movzx eax, word [eax + 8]
cmp ecx, eax
je 0x1004d921
add edi, 0x28
cmp ebx, 0x80
jb 0x1004d86e
lea eax, [ebx - 0xc]
shr eax, 1
jmp 0x1004d875
movzx eax, byte [ebx + 0x103d6e70]
add esi, eax
shr ebx, 7
xor ecx, ecx
mov dword [esp + 0x14], esi
mov eax, ebx
mov edx, 1
or eax, ecx
je 0x1004d89e
nop dword [eax + eax]
shrd ebx, ecx, 7
inc edx
shr ecx, 7
mov eax, ebx
or eax, ecx
jne 0x1004d890
mov ebx, dword [esp + 0x2c]
add ebx, edx
mov dword [esp + 0x2c], ebx
cmp ebx, dword [esp + 0x30]
jae 0x1004d921
cmp esi, dword [esp + 0x28]
ja 0x1004d921
mov edx, dword [esp + 0x18]
jmp 0x1004d2c8
or ecx, 0xffffffff
jmp 0x1004d5ad
push 0x103df92c
push 0x13fc2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002cbe0
mov eax, dword [ebp + 8]
add esp, 0x14
mov byte [eax + 0xb], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x103df92c
push 0x13fe0
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.1002cbe0
mov eax, dword [ebp + 8]
add esp, 0x14
mov byte [eax + 0xb], 0xb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov byte [eax + 0xe], 1
movsx eax, byte [eax + 0xa]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, 1
and eax, 1
cmp eax, edx
je 0x1004d941
neg ecx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret