Function at 0x77c17a
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x834
cmp dword [esp + 0x844], 0
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [esp + 0x850]
lea ecx, [eax + 1]
mov ebp, dword [edi + 4]
cmove ecx, eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x20], ebp
lea eax, [eax + ecx*8]
add eax, 8
add eax, ebp
cmp eax, 0xff8
ja 0x77c22f
mov ebp, dword [esp + 0x84c]
sub ecx, ebp
shl ecx, 3
push ecx
lea esi, [ebp + 1]
lea esi, [ebx + esi*8]
lea eax, [ebp + 2]
lea eax, [ebx + eax*8]
push esi
push eax
call fcn.00797b90
mov ecx, dword [esp + 0x2c]
mov eax, 0xff8
add dword [ebx + 4], ecx
add esp, 0xc
sub ax, word [ebx + 4]
mov word [ebx + ebp*8 + 0xe], ax
mov word [ebx + ebp*8 + 0xc], cx
mov eax, dword [edi]
mov dword [esi], eax
lea eax, [edi + 8]
push ecx
push eax
mov eax, ebx
sub eax, dword [ebx + 4]
add eax, 0x1000
push eax
call fcn.00797610
mov eax, dword [ebx + 4]
add esp, 0xc
inc dword [ebx]
mov ecx, dword [ebx]
lea eax, [eax + ecx*8]
add eax, 8
cmp eax, 0x7fc
sbb eax, eax
and eax, 2
jmp 0x77c546
mov ecx, dword [esp + 0x848]
call fcn.00779dd1
mov ecx, dword [esp + 0x848]
push eax
mov dword [esp + 0x48], eax
call fcn.00779da5
and dword [esp + 0x28], 0
mov edi, eax
mov esi, dword [esp + 0x84c]
lea eax, [ebp + 8]
mov dword [esp + 0x34], eax
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x38], edi
lea edx, [edi + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov ecx, 0x80000001
lea edx, [ebx + 0x14]
mov dword [esp + 0x1c], edx
movzx edx, word [edx - 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx]
sub ecx, eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x3c], ecx
dec ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], edx
cmp ebp, esi
jne 0x77c2d1
and dword [esp + 0x34], 0
xor eax, eax
cmp dword [esp + 0x854], eax
mov ecx, dword [esp + 0x20]
mov edx, ecx
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
cmovne eax, dword [esp + 0x2c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
jmp 0x77c301
cmp dword [esp + 0x854], 0
mov dword [esp + 0x14], edx
je 0x77c2fd
inc eax
cmp eax, esi
je 0x77c2f8
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
add eax, edx
dec ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
jmp 0x77c2fd
and dword [esp + 0x34], 0
mov ecx, dword [esp + 0x20]
neg dword [esp + 0x18]
mov eax, ebp
sub eax, dword [esp + 0x2c]
lea eax, [eax*8 + 8]
sub eax, dword [ebx + 4]
sub eax, dword [esp + 0x34]
add eax, dword [esp + 0x14]
add eax, edx
add eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jge 0x77c3e6
mov eax, dword [esp + 0x24]
mov ecx, 0xff8
add dword [esp + 0x28], edx
sub ecx, dword [esp + 0x28]
mov dword [esp + 0x3c], ecx
mov word [eax + 4], dx
mov word [eax + 6], cx
push edx
cmp ebp, esi
jne 0x77c389
mov ecx, dword [esp + 0x854]
mov edi, dword [esp + 0x28]
mov eax, dword [ecx]
mov dword [edi], eax
lea eax, [ecx + 8]
mov edi, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
movzx eax, ax
add eax, 8
add eax, edi
push eax
call fcn.00797610
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x1c]
jmp 0x77c3d7
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov eax, dword [eax - 0xc]
mov dword [esi], eax
mov eax, dword [esp + 0x20]
movzx eax, word [eax - 6]
add eax, 8
add eax, ebx
push eax
movzx eax, cx
add eax, 8
add eax, edi
push eax
call fcn.00797610
mov eax, dword [esp + 0x3c]
add esp, 0xc
sub dword [ebx + 4], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
inc eax
mov esi, dword [esp + 0x84c]
add edx, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x14]
inc ebp
add dword [esp + 0x24], 8
jmp 0x77c280
mov eax, dword [esp + 0x850]
lea edi, [eax + 8]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x38]
cmp ebp, esi
jg 0x77c419
push ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
call fcn.00797610
mov eax, dword [esp + 0x85c]
add esp, 0xc
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x854], 0
jne 0x77c451
movzx eax, word [edi + ebp*8 + 4]
push eax
movzx eax, word [edi + ebp*8 + 6]
add eax, 8
add eax, edi
push eax
push dword [esp + 0x20]
call fcn.00797610
mov ecx, dword [esp + 0x85c]
add esp, 0xc
movzx eax, word [edi + ebp*8 + 4]
mov dword [ecx + 4], eax
jmp 0x77c494
cmp ebp, esi
je 0x77c48e
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
push edx
movzx eax, word [ebx + eax*8 + 0xe]
add eax, 8
add eax, ebx
push eax
push dword [esp + 0x20]
call fcn.00797610
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, dword [ebx + ecx*8 + 8]
mov dword [edi + ebp*8 + 8], eax
mov eax, dword [esp + 0x30]
sub dword [ebx + 4], eax
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x77c498
mov eax, dword [eax]
mov dword [edi + ebp*8 + 8], eax
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.0077c553
cmp ebp, esi
jl 0x77c4b0
jne 0x77c51d
cmp dword [esp + 0x854], 0
jne 0x77c51d
mov eax, dword [esp + 0x40]
mov edi, esi
sub eax, dword [esp + 0x84c]
lea esi, [ebx + 8]
sub edi, dword [esp + 0x10]
shl eax, 3
push eax
lea eax, [ebx + 0x10]
lea esi, [esi + edi*8]
lea eax, [eax + edi*8]
push esi
push eax
call fcn.00797b90
mov ecx, dword [esp + 0x2c]
add esp, 0xc
add dword [ebx + 4], ecx
mov edx, 0xff8
sub dx, word [ebx + 4]
inc dword [ebx]
mov eax, dword [esp + 0x850]
mov word [ebx + edi*8 + 0xe], dx
mov word [ebx + edi*8 + 0xc], cx
push ecx
mov eax, dword [eax]
mov dword [esi], eax
lea eax, [esp + 0x4c]
push eax
movzx eax, dx
add eax, 8
add eax, ebx
push eax
call fcn.00797610
mov edi, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x850]
mov dword [edi], ebp
push edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x84c]
add ecx, 0x60
call fcn.007797a0
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x834
ret 0x10