Function at 0x4e8240
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x64]
lea ebx, [edi + 0x128]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push 0x20
push dword [edi + 0xbc]
push dword [edi + 0xc0]
push ebp
call fcn.004e9340
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4e84e2
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.004b9760
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4e84e2
test esi, 0xffffff00
je 0x4e82ba
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x18
ret
and esi, 4
mov dword [esp + 0x24], esi
push ebx
je 0x4e82cb
push 0x5fb048
jmp 0x4e82d0
push 0x5fb02c
push ebp
call fcn.004b9490
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4e84e2
movzx edx, word [ebx]
movzx eax, word [ebx + 2]
cmp dx, ax
ja 0x4e84dd
mov ecx, 0xff
cmp ax, cx
ja 0x4e84dd
movzx eax, word [ebx + 4]
movzx ecx, word [ebx + 6]
cmp ax, cx
ja 0x4e84dd
mov eax, 0xff
cmp cx, ax
ja 0x4e84dd
movzx ecx, word [ebx + 8]
mov ax, cx
movzx ecx, cl
shr ax, 8
movzx eax, ax
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 4]
mov dword [esp + 0x18], ecx
cmp word [esp + 0x14], ax
jb 0x4e8367
movzx ebp, word [ebx + 6]
cmp word [esp + 0x14], bp
mov ebp, dword [esp + 0x2c]
ja 0x4e8367
cmp cx, dx
movzx ecx, word [ebx + 2]
jb 0x4e836b
cmp word [esp + 0x18], cx
jbe 0x4e8384
jmp 0x4e836b
movzx ecx, word [ebx + 2]
shl eax, 8
add eax, edx
mov word [ebx + 8], ax
movzx eax, word [ebx + 4]
mov edi, eax
mov dword [esp + 0x14], edi
mov edi, edx
mov dword [esp + 0x18], edi
movzx edi, word [ebx + 6]
movzx eax, ax
movzx ecx, cx
sub edi, eax
sub ecx, edx
inc edi
inc ecx
imul edi, ecx
mov dword [esp + 0x1c], edi
lea eax, [edi + edi]
push eax
push ebp
call fcn.004b8f10
mov edi, dword [esp + 0x38]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4e84e2
mov edx, dword [esp + 0x14]
movzx eax, word [ebx + 4]
movzx ecx, word [ebx]
movzx edx, dx
sub edx, eax
movzx eax, word [ebx + 2]
sub eax, ecx
inc eax
imul edx, eax
mov eax, dword [esp + 0x18]
movzx eax, ax
sub edx, ecx
add edx, eax
mov eax, dword [ebp + 0x20]
lea eax, [eax + edx*2]
test esi, esi
je 0x4e83f0
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
jmp 0x4e83f7
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl cx, 8
or cx, ax
mov eax, 0xffff
movzx edx, cx
cmp dx, ax
jne 0x4e8412
mov edx, 1
jmp 0x4e8424
inc edx
mov ecx, 1
movzx eax, dx
cmp eax, dword [edi + 0x120]
cmovae edx, ecx
mov ecx, dword [edi + 0x124]
movzx eax, dx
add eax, eax
movups xmm0, xmmword [ecx + eax*8]
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x24]
movups xmmword [ecx], xmm0
push 0
push 2
push dword [esp + 0x34]
call fcn.004bb420
mov edi, eax
add esp, 0x18
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xc], edi
test eax, eax
jne 0x4e84e2
movzx eax, word [ebx + 4]
mov dword [esp + 0x30], eax
cmp ax, word [ebx + 6]
ja 0x4e84c8
movzx esi, word [ebx]
cmp si, word [ebx + 2]
ja 0x4e84bd
nop dword [eax]
cmp dword [esp + 0x24], 0
push ebp
je 0x4e848f
call fcn.004b9140
jmp 0x4e8494
call fcn.004b9180
movzx eax, ax
mov ecx, 0xffff
add esp, 4
cmp ax, cx
jne 0x4e84a8
mov eax, ecx
jmp 0x4e84ac
inc eax
movzx eax, ax
mov word [edi], ax
inc esi
add edi, 2
cmp si, word [ebx + 2]
jbe 0x4e8480
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp ax, word [ebx + 6]
jbe 0x4e8470
push ebp
call fcn.004b8fe0
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret