Function at 0x805e298
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp dword [esi + 8], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
jne 0x805e36e
push dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
movsx eax, word [edi + 2]
push eax
call fcn.0806649f
push dword [ebp + 0x14]
mov ebx, eax
movsx eax, word [edi]
push eax
call fcn.08066477
push dword [ebp + 0x14]
sub ebx, eax
mov dword [esi + 0x18], ebx
movsx eax, word [edi + 6]
push eax
call fcn.0806649f
push dword [ebp + 0x14]
mov ebx, eax
movsx eax, word [edi + 4]
push eax
call fcn.08066477
push dword [ebp + 0x14]
sub ebx, eax
mov dword [esi + 0x14], ebx
movsx eax, word [edi]
push eax
call fcn.08066477
push dword [ebp + 0x14]
neg eax
mov dword [esi + 0x1c], eax
movsx eax, word [edi + 4]
push eax
call fcn.08066477
mov ebx, dword [esi + 0x14]
and dword [esi + 0x24], 0
neg eax
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
add eax, 7
shr eax, 3
imul ebx, eax
add esp, 0x30
cmp ebx, dword [esi + 4]
mov dword [esi + 8], eax
jbe 0x805e35d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x805e355
push dword [ebp + 0x18]
push esi
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x805e35d
push 0xfffffffffffffffa
pop eax
jmp 0x805e4e0
test ebx, ebx
je 0x805e36e
push ebx
push 0
push dword [esi]
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp dword [esi + 0x24], 0
je 0x805e378
push 0xfffffffffffffff3
jmp 0x805e357
movzx eax, word [esi + 0x1c]
mov ecx, dword [esi + 0x14]
test ecx, ecx
mov dword [ebp - 0x18], eax
movzx eax, word [esi + 0x20]
je 0x805e4de
cmp dword [edi + 8], 0
je 0x805e4de
mov dx, word [edi + 4]
add dx, ax
movzx edx, dx
test dx, dx
mov dword [ebp - 8], edx
jge 0x805e3b1
mov dword [ebp - 4], 1
mov bx, word [edi + 6]
add bx, ax
movzx eax, bx
mov dword [ebp - 0x14], eax
movsx eax, ax
cmp eax, ecx
jle 0x805e3d2
movzx eax, cx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
movzx eax, word [esi + 0x18]
mov ecx, dword [edi + 0xc]
movsx ebx, dx
imul ebx, dword [esi + 8]
add ebx, dword [esi]
cmp dx, word [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jge 0x805e4d2
movzx eax, word [ecx]
inc ecx
inc ecx
dec eax
test ax, ax
mov dword [ebp - 0x10], eax
jl 0x805e4be
mov ax, word [ecx]
add ax, word [ebp - 0x18]
inc ecx
movzx edi, ax
inc ecx
test di, di
jge 0x805e41b
xor edi, edi
mov dword [ebp - 4], 1
mov ax, word [ecx]
add ax, word [ebp - 0x18]
inc ecx
movzx eax, ax
inc ecx
cmp ax, word [ebp - 0x1c]
mov dword [ebp - 0xc], ecx
jle 0x805e43b
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 4], 1
cmp word [ebp - 8], 0
jl 0x805e4b0
cmp di, ax
jge 0x805e4b0
mov ecx, edi
sar di, 3
and ecx, 7
mov dl, byte [ecx + 0x819bf54]
movzx edi, di
mov ecx, eax
mov dword [ebp - 0x20], edi
sar ax, 3
sub ax, word [ebp - 0x20]
movsx edi, di
and ecx, 7
mov cl, byte [ecx + 0x819bf5c]
movzx eax, ax
add edi, ebx
test ax, ax
mov byte [ebp + 0xf], cl
jne 0x805e483
and cl, dl
jmp 0x805e4ab
or byte [edi], dl
inc edi
dec eax
test ax, ax
jle 0x805e4a7
movzx eax, ax
push eax
push 0xff
push edi
mov dword [ebp - 0x20], eax
call sub.MSVCR80.dll_memset
mov cl, byte [ebp + 0xf]
add esp, 0xc
add edi, dword [ebp - 0x20]
test cl, cl
je 0x805e4ad
or byte [edi], cl
mov ecx, dword [ebp - 0xc]
dec dword [ebp - 0x10]
cmp word [ebp - 0x10], 0
jge 0x805e401
add ebx, dword [esi + 8]
inc dword [ebp - 8]
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x14]
jl 0x805e3ef
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffff9
jmp 0x805e4e0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret