Function at 0x4c305c
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x5e00
call fcn.005fc4b0
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [esp + 0x5e18]
xor ebp, ebp
mov eax, dword [esi + 0x14]
push edi
dec eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x18]
dec eax
cmp ebx, 0x3e7
mov dword [esp + 0x2c], eax
jle 0x4c3097
mov dword [esp + 0x5e1c], 0x3e7
mov ebx, dword [esp + 0x5e1c]
cmp ebx, ebp
jle 0x4c30ad
lea edi, [esp + 0x50]
push edi
mov ecx, esi
call fcn.004bfba0
add edi, 0x18
dec ebx
jne 0x4c309f
lea eax, [esp + 0x38]
mov ecx, esi
push eax
call fcn.004bfba0
mov ecx, dword [esp + 0x5e24]
mov edx, dword [esp + 0x5e28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
mov ecx, esi
call fcn.004c2f20
fild dword [esp + 0x5e14]
fidiv dword [esp + 0x5e1c]
fsqrt
call fcn.005faa4c
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
cmp ebx, 2
jge 0x4c30fb
mov ebx, 2
mov eax, dword [esp + 0x5e1c]
test eax, eax
jle 0x4c3234
lea edi, [esp + 0x50]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, esi
call fcn.004bfc80
test eax, eax
je 0x4c3234
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [edx + eax*4]
cmp byte [edx + ecx], 0
jne 0x4c3227
mov edx, dword [esp + 0x5e20]
push edx
mov edx, dword [esp + 0x5e28]
push edx
mov edx, dword [esp + 0x5e30]
push edx
push eax
push ecx
mov ecx, esi
call fcn.004c2bc0
test al, al
je 0x4c3227
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.004c2fd0
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x14]
mov edx, dword [edx + eax*4]
mov al, byte [esp + 0x5e18]
mov byte [edx + ecx*4 + 6], al
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4c31c5
mov ecx, dword [esp + 0x14]
push 0
push 0
dec eax
push ecx
push eax
push edi
mov ecx, esi
call fcn.004bfbf0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4c31e4
push 0
dec ecx
push 0
push ecx
push eax
push edi
mov ecx, esi
call fcn.004bfbf0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x14]
dec edx
cmp eax, edx
jge 0x4c3203
push 0
push 0
inc eax
push ecx
push eax
push edi
mov ecx, esi
call fcn.004bfbf0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x18]
dec edx
cmp ecx, edx
jge 0x4c321a
push 0
inc ecx
push 0
push ecx
push eax
push edi
mov ecx, esi
call fcn.004bfbf0
mov edx, dword [esp + 0x20]
inc edx
inc ebp
mov dword [esp + 0x20], edx
add edi, 0x18
cmp ebp, dword [esp + 0x5e1c]
jl 0x4c310e
mov eax, dword [esp + 0x5e1c]
mov byte [esp + 0x1b], 1
test eax, eax
jle 0x4c351e
lea ebx, [esp + 0x50]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x5e14]
cmp eax, ecx
jge 0x4c34e1
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push ebx
mov ecx, esi
call fcn.004bfc80
test eax, eax
je 0x4c34e1
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x2c]
mov byte [esp + 0x1b], 0
mov eax, dword [edx + ecx*4]
lea edi, [ecx*4]
mov ecx, dword [esp + 0x10]
lea ebp, [eax + ecx]
call fcn.005faa7d
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 2
imul ecx
add edx, ecx
xor ecx, ecx
mov cl, byte [ebp]
sar edx, 0xe
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jg 0x4c34dd
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0x10]
mov ebp, dword [esp + 0x5e24]
mov edx, dword [edx + edi]
lea ecx, [eax*8]
sub ecx, eax
push ebp
lea edi, [edx + ecx*4]
mov ecx, dword [esp + 0x5e2c]
mov edx, dword [esp + 0x5e24]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x5e24]
push ecx
push eax
push edx
mov ecx, esi
call fcn.004c2c90
xor ecx, ecx
and eax, 0xff
mov cl, byte [edi + 6]
cmp ecx, ebp
jne 0x4c34e1
test eax, eax
jle 0x4c34e1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov ecx, esi
call fcn.004c2f00
mov dl, byte [esp + 0x5e18]
fstp dword [esp + 0x24]
mov byte [edi + 6], dl
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x4c33a3
xor eax, eax
mov al, byte [edi - 0x16]
cmp eax, ebp
jne 0x4c33aa
call fcn.005faa7d
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 2
imul ecx
add edx, ecx
mov eax, dword [esp + 0x10]
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
fild dword [esp + 0x20]
dec eax
mov ecx, esi
fadd dword [esp + 0x28]
fstp dword [esp]
push 0
push edx
push eax
push ebx
call fcn.004bfbf0
jmp 0x4c33aa
mov ebp, dword [esp + 0x5e24]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
cmp ecx, eax
jge 0x4c3405
xor edx, edx
mov dl, byte [edi + 0x22]
cmp edx, ebp
jne 0x4c3405
call fcn.005faa7d
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 2
imul ecx
add edx, ecx
push ecx
sar edx, 0xe
mov eax, edx
mov ecx, dword [esp + 0x18]
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
fild dword [esp + 0x20]
inc edx
fadd dword [esp + 0x28]
fstp dword [esp]
push 0
push ecx
push edx
push ebx
mov ecx, esi
call fcn.004bfbf0
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4c346f
mov eax, dword [esi + 0x14]
mov edx, edi
lea ecx, [eax*8]
sub ecx, eax
xor eax, eax
shl ecx, 2
sub edx, ecx
mov al, byte [edx + 6]
cmp eax, ebp
jne 0x4c346f
call fcn.005faa7d
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 2
imul ecx
add edx, ecx
mov eax, dword [esp + 0x10]
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
fild dword [esp + 0x20]
dec edx
mov ecx, esi
fadd dword [esp + 0x28]
fstp dword [esp]
push 0
push edx
push eax
push ebx
call fcn.004bfbf0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x4c34d7
mov eax, dword [esi + 0x14]
lea edx, [eax*8]
sub edx, eax
xor eax, eax
mov al, byte [edi + edx*4 + 6]
cmp eax, ebp
jne 0x4c34d7
call fcn.005faa7d
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
mov eax, 0x80010003
shl ecx, 2
imul ecx
add edx, ecx
mov eax, dword [esp + 0x10]
sar edx, 0xe
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x18]
fild dword [esp + 0x20]
inc edx
mov ecx, esi
fadd dword [esp + 0x28]
fstp dword [esp]
push 0
push edx
push eax
push ebx
call fcn.004bfbf0
inc dword [esp + 0x20]
jmp 0x4c34e1
mov byte [ebp], 0x65
mov eax, dword [esp + 0x28]
add ebx, 0x18
dec eax
mov dword [esp + 0x28], eax
jne 0x4c3250
mov al, byte [esp + 0x1b]
test al, al
je 0x4c3234
mov eax, dword [esp + 0x5e1c]
test eax, eax
jle 0x4c351e
lea edi, [esp + 0x50]
mov ebx, eax
push edi
mov ecx, esi
call fcn.004bfbd0
add edi, 0x18
dec ebx
jne 0x4c3510
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x5e00
ret 0x18