Function at 0x10042650
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x1c], ebx
cmp byte [edi + 0xc], 0
jne 0x10042905
mov esi, dword [ebp + 0xc]
lea eax, [esi + 2]
cmp eax, dword [edi + 0x14]
jg 0x10042905
mov ecx, dword [edi + 0x48]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x1004269e
mov eax, dword [edx + 0x1c]
cmp eax, dword [ecx + 0x18]
jb 0x1004269e
cmp dword [edx + 0x68], 0
je 0x100426cb
call fcn.10035190
jmp 0x100426c3
mov eax, dword [edx + 0x2c]
test eax, eax
jne 0x1004293d
mov eax, dword [edx + 0x9c]
cmp eax, dword [edx + 0xa8]
jbe 0x100426be
call fcn.10036ae0
jmp 0x100426c3
call fcn.10036a50
test eax, eax
jne 0x1004293d
mov ebx, dword [edi + 0x38]
movzx edx, byte [edi + 9]
movzx eax, word [edi + 0x12]
add edx, ebx
movzx ecx, word [edi + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 0
movzx ebx, byte [edx + 5]
lea ecx, [eax + ecx*2]
shl ebx, 8
movzx eax, byte [edx + 6]
or ebx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
cmp ecx, ebx
jbe 0x100427bd
test ebx, ebx
jne 0x10042793
mov eax, dword [edi + 0x34]
cmp dword [eax + 0x28], 0x10000
jne 0x10042793
mov ebx, 0x10000
cmp byte [edx + 2], 0
jne 0x10042731
cmp byte [edx + 1], 0
je 0x10042807
lea eax, [ecx + 2]
cmp eax, ebx
ja 0x10042807
lea eax, [esp + 0x10]
mov edx, esi
push eax
mov ecx, edi
call fcn.1003cda0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100427f3
sub ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
cmp ecx, dword [esp + 0x14]
jg 0x1004285a
push 0x10144edc
push 0x117b3
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10144edc
push 0x1179f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x34]
cmp ebx, dword [eax + 0x28]
jle 0x10042721
push 0x10144edc
push 0x117a2
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10028790
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1004293d
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [esi + 2]
add eax, ecx
cmp eax, ebx
jle 0x10042847
mov edx, dword [edi + 0x14]
mov eax, 4
sub edx, esi
mov ecx, edi
add edx, 0xfffffffe
cmp edx, eax
cmovg edx, eax
call fcn.1003c950
test eax, eax
jne 0x1004293d
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + 5]
movzx ecx, byte [edx + 6]
shl eax, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, esi
mov eax, ebx
mov byte [edx + 6], bl
sar eax, 8
mov ecx, ebx
mov byte [edx + 5], al
mov dword [esp + 0x18], ecx
lea eax, [esi + 2]
movzx eax, ax
sub dword [edi + 0x14], eax
lea eax, [esi - 4]
mov esi, dword [esp + 0xc]
push eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
lea eax, [esi + 4]
add eax, ecx
push eax
call fcn.10118c90
mov ebx, dword [esp + 0x24]
add esp, 0xc
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
bswap eax
mov dword [esi + ebx], eax
mov eax, dword [edi + 0x40]
lea esi, [eax + ecx*2]
movzx eax, word [edi + 0x18]
sub eax, ecx
add eax, eax
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.10118c90
mov ecx, dword [esp + 0x18]
mov eax, ebx
sar eax, 8
add esp, 0xc
mov byte [esi], al
mov byte [esi + 1], bl
movzx eax, byte [edi + 9]
inc word [edi + 0x18]
add byte [eax + ecx + 4], 1
jne 0x100428d1
movzx eax, byte [edi + 9]
inc byte [eax + ecx + 3]
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
je 0x1004293b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [ebp + 8]
mov edx, edi
mov ecx, edi
call fcn.1003c8c0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x1004293b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1004291d
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.10118c90
add esp, 0xc
jmp 0x10042920
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
bswap eax
mov dword [esi], eax
mov al, byte [edi + 0xc]
movzx ecx, al
inc al
mov byte [edi + 0xc], al
mov dword [edi + ecx*4 + 0x24], esi
mov word [edi + ecx*2 + 0x1c], bx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret