Function at 0x4d0165
Capabilities:
Enumerate pe sections

Disassembly:
push 0x84
mov eax, 0x59518e
call fcn.00584fd1
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, ecx
lea ecx, [eax + 4]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], esi
call fcn.004ce852
cmp esi, 0x16
jb 0x4d01aa
lea eax, [esi + ebx - 0x16]
jmp 0x4d01a6
cmp byte [eax], 0x50
jne 0x4d01a5
cmp dword [eax], 0x6054b50
je 0x4d01b4
dec eax
cmp eax, ebx
jae 0x4d0198
xor al, al
call fcn.00585054
ret 0xc
mov cx, word [eax + 0xa]
cmp cx, word [eax + 8]
jne 0x4d01aa
mov cx, word [eax + 6]
cmp cx, word [eax + 4]
jne 0x4d01aa
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov edi, dword [eax + 0x10]
lea eax, [edi + 4]
cmp eax, esi
mov dword [ebp - 4], ecx
jae 0x4d02fe
lea esi, [ebx + edi]
cmp dword [esi], 0x2014b50
jne 0x4d02fe
lea eax, [edi + 0x2e]
cmp dword [ebp - 0x58], eax
jb 0x4d0322
movzx ecx, word [esi + 0x1e]
movzx eax, word [esi + 0x20]
add eax, ecx
movzx ecx, word [esi + 0x1c]
lea eax, [eax + ecx + 0x2e]
add edi, eax
cmp dword [ebp - 0x58], edi
mov dword [ebp - 0x74], edi
jb 0x4d0322
mov eax, dword [esi + 0x2a]
lea ecx, [eax + 0x1e]
cmp dword [ebp - 0x58], ecx
jb 0x4d0322
add ebx, eax
movzx edx, word [ebx + 0x1a]
movzx ecx, word [ebx + 0x1c]
add ecx, edx
mov edx, dword [esi + 0x14]
lea edi, [ecx + edx + 0x1e]
add eax, edi
cmp dword [ebp - 0x58], eax
jb 0x4d0322
lea ecx, [ebp - 0x54]
call fcn.004cb877
movzx eax, word [ebx + 0x1a]
push eax
lea eax, [ebx + 0x1e]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___unsigned_int_]
push eax
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
sub edi, dword [esi + 0x14]
mov ecx, dword [ebp - 0x24]
add edi, dword [esi + 0x2a]
and ecx, 0xfffffff8
mov dword [ebp - 0x38], edi
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x74]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x2c], eax
mov ax, word [ebx + 6]
mov word [ebp - 0x28], ax
mov ax, word [esi + 0xa]
mov word [ebp - 0x26], ax
mov eax, dword [esi + 0x26]
shr eax, 4
and eax, 1
or eax, ecx
cmp byte [ebp + 0x10], 0
mov dword [ebp - 0x24], eax
je 0x4d02d7
test al, 1
jne 0x4d02e3
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
call fcn.004ced78
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.004cb892
mov ebx, dword [ebp - 0x5c]
lea eax, [edi + 4]
cmp eax, dword [ebp - 0x58]
jb 0x4d01e4
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
push eax
lea ecx, [esi + 4]
call fcn.004cedcd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
mov dword [esi], ebx
call fcn.004cde34
mov al, 1
jmp 0x4d01ac
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004cde34
jmp 0x4d01aa