Function at 0x4d59f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax]
mov esi, edx
mov ecx, dword [eax + 0x1e8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], eax
test byte [edi + 0x3c], 1
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edi
jne 0x4d5fa7
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x20], eax
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov dword [esp + 0x30], ecx
add ecx, eax
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x14], ecx
mov edx, dword [ecx + 0x38]
mov ebx, dword [ecx + 0x1c]
mov dword [esp + 0x34], edx
je 0x4d5a98
cmp dword [ebp + 0xc], 0
jne 0x4d5fa7
cmp dword [eax], 1
jg 0x4d5fa7
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4d5a73
test dword [eax + 4], 0x200000
jne 0x4d5fa7
mov ecx, dword [esi]
call fcn.004b1440
test eax, 0x200000
jne 0x4d5fa7
mov ecx, dword [esi + 0x30]
call fcn.004b1440
test eax, 0x200000
jne 0x4d5fa7
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x20]
test eax, eax
je 0x4d5aac
cmp dword [esi + 0x3c], 0
jne 0x4d5fa7
cmp dword [ebx + 0x40], 0
jne 0x4d5fa7
movzx edx, word [esi + 6]
test dl, dl
jns 0x4d5ac6
test eax, eax
jne 0x4d5fa7
cmp dword [ecx], 0
je 0x4d5fa7
movzx ecx, word [ebx + 6]
test cl, 1
jne 0x4d5fa7
test eax, eax
je 0x4d5af7
mov ecx, dword [esp + 0x20]
cmp dword [ecx], 1
jg 0x4d5fa7
cmp dword [ebp + 0xc], 0
jne 0x4d5fa7
mov ecx, edx
and ecx, 1
je 0x4d5b08
cmp dword [ebp + 0x10], 0
jne 0x4d5fa7
cmp dword [esi + 0x30], 0
je 0x4d5b18
cmp dword [ebx + 0x30], 0
jne 0x4d5fa7
cmp dword [ebp + 0xc], 0
je 0x4d5b28
cmp dword [ebx + 0x30], 0
jne 0x4d5fa7
test eax, eax
je 0x4d5b3f
cmp dword [esi + 0x24], 0
jne 0x4d5fa7
test cx, cx
jne 0x4d5fa7
movzx eax, word [ebx + 6]
test eax, 0x3000
jne 0x4d5fa7
test edx, 0x2000
je 0x4d5b60
cmp dword [ebx + 0x34], 0
jne 0x4d5fa7
mov eax, dword [esp + 0x14]
test byte [eax + 0x2c], 0x20
jne 0x4d5fa7
cmp dword [ebx + 0x34], 0
lea eax, [ebx + 0x34]
mov dword [esp + 0x24], eax
je 0x4d5bf7
cmp dword [ebx + 0x30], 0
jne 0x4d5fa7
cmp dword [ebp + 0xc], 0
jne 0x4d5fa7
test cx, cx
jne 0x4d5fa7
mov eax, dword [esp + 0x20]
cmp dword [eax], 1
jne 0x4d5fa7
test byte [ebx + 6], 9
jne 0x4d5fa7
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x4d5bc0
cmp byte [ebx + 4], 0x74
jne 0x4d5fa7
mov eax, dword [ebx + 0x20]
cmp dword [eax], 1
jl 0x4d5fa7
mov ebx, ecx
test ebx, ebx
jne 0x4d5ba5
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4d5bf7
mov edx, dword [eax]
test edx, edx
jle 0x4d5bf7
mov eax, dword [eax + 4]
add eax, 0x14
cmp word [eax], 0
je 0x4d5fa7
inc ecx
add eax, 0x18
cmp ecx, edx
jl 0x4d5be5
mov eax, dword [esp + 0x14]
mov edx, 0x15
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
push 0
push 0
mov eax, dword [eax + 0x10]
push 0
mov dword [ebx + 0x1e8], eax
call fcn.004b8c70
mov eax, dword [esp + 0x34]
add esp, 0xc
mov dword [ebx + 0x1e8], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4d5cde
nop dword [eax]
mov eax, dword [esp + 0x18]
mov edx, eax
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x3c]
mov esi, dword [esi + 0x40]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x1c]
push 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x34], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x40], 0
call fcn.004b0e50
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [ecx + 0x40], esi
mov esi, ecx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], ebx
mov byte [esi + 4], 0x74
test edx, edx
je 0x4d5cba
mov dword [edx + 0x34], eax
test eax, eax
je 0x4d5cb5
mov dword [eax + 0x38], edx
mov dword [edx + 0x38], esi
mov eax, edx
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x34], eax
cmp byte [edi + 0x41], 0
jne 0x4d5f9b
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4d5c40
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x1c]
mov ebx, eax
mov edx, dword [ecx + 0xc]
mov ecx, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call fcn.00480df0
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 0x10]
call fcn.00480df0
mov eax, dword [esp + 0x14]
mov ecx, edi
mov edx, dword [eax + 0x14]
call fcn.00480df0
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x1c], 0
test ecx, ecx
je 0x4d5d75
movzx eax, word [ecx + 0x24]
cmp eax, 1
jne 0x4d5d69
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x198]
test eax, eax
cmovne edx, eax
mov eax, dword [edx + 0x208]
mov dword [ecx + 0x44], eax
mov dword [edx + 0x208], ecx
mov edx, dword [esp + 0x14]
jmp 0x4d5d6e
dec eax
mov word [ecx + 0x24], ax
mov dword [edx + 0x18], 0
mov eax, dword [ebx + 0x20]
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x13], 0
mov dword [esp + 0x2c], eax
mov ebx, dword [eax]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4d5d97
mov al, byte [edx + 0x2c]
mov byte [esp + 0x13], al
jmp 0x4d5db8
push 0
push 0
xor edx, edx
mov ecx, edi
call fcn.004be0f0
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
mov dword [esi + 0x20], ecx
test ecx, ecx
je 0x4d5f8b
cmp ebx, 1
jle 0x4d5de5
mov eax, dword [ebp + 8]
mov edx, ecx
inc eax
mov ecx, edi
push eax
lea eax, [ebx - 1]
push eax
call fcn.004bdfb0
mov ecx, eax
add esp, 8
mov dword [esi + 0x20], ecx
cmp byte [edi + 0x41], 0
mov dword [esp + 0x20], ecx
jne 0x4d5f8b
test ebx, ebx
jle 0x4d5e52
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
add esi, 8
add edi, 8
add esi, ecx
nop dword [eax]
mov edx, dword [esi + 0x38]
mov ecx, dword [esp + 0x1c]
call fcn.004bdea0
movups xmm0, xmmword [edi]
push 0x50
push 0
movups xmmword [esi], xmm0
push edi
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x30], xmm0
movups xmm0, xmmword [edi + 0x40]
movups xmmword [esi + 0x40], xmm0
call fcn.006440e0
add esp, 0xc
lea esi, [esi + 0x50]
add edi, 0x50
sub ebx, 1
jne 0x4d5e00
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov al, byte [esp + 0x13]
mov byte [edx + ecx + 0x2c], al
xor ecx, ecx
mov ebx, dword [esi]
mov dword [esp + 0x2c], ecx
cmp dword [ebx], ecx
jle 0x4d5eab
xor edi, edi
nop dword [eax]
mov eax, dword [ebx + 4]
cmp dword [edi + eax + 4], 0
jne 0x4d5e9b
mov edx, dword [edi + eax + 8]
mov ecx, dword [esp + 0x1c]
call fcn.00481230
mov esi, eax
mov ecx, esi
call fcn.00483930
mov ecx, dword [ebx + 4]
mov dword [edi + ecx + 4], esi
mov ecx, dword [esp + 0x2c]
inc ecx
add edi, 0x18
mov dword [esp + 0x2c], ecx
cmp ecx, dword [ebx]
jl 0x4d5e70
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov edi, dword [ebx + 0x30]
test edi, edi
je 0x4d5ee0
xor edx, edx
cmp dword [edi], edx
jle 0x4d5ed6
xor ecx, ecx
nop
mov eax, dword [edi + 4]
lea ecx, [ecx + 0x18]
xor esi, esi
inc edx
mov word [eax + ecx - 4], si
cmp edx, dword [edi]
jl 0x4d5ec0
mov esi, dword [esp + 0x18]
mov dword [esi + 0x30], edi
mov dword [ebx + 0x30], 0
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov edx, dword [ebx + 0x24]
push 0
push 0
call fcn.004b0670
mov edx, dword [esi + 0x24]
add esp, 8
cmp dword [ebp + 0x10], 0
mov ecx, edi
je 0x4d5f34
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], eax
mov edx, dword [ebx + 0x2c]
push 0
push 0
call fcn.004b0670
mov edx, dword [esi + 0x2c]
mov ecx, edi
push eax
call fcn.004b01b0
add esp, 0xc
mov dword [esi + 0x2c], eax
mov edx, dword [ebx + 0x28]
mov ecx, edi
push 0
call fcn.004b08f0
mov dword [esi + 0x28], eax
jmp 0x4d5f3d
push eax
call fcn.004b01b0
mov dword [esi + 0x24], eax
add esp, 4
mov edx, esi
mov ecx, edi
push 0
push dword [ebx]
push dword [esp + 0x3c]
call fcn.004d57f0
mov ax, word [ebx + 6]
add esp, 0xc
and ax, 1
or word [esi + 6], ax
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4d5f71
mov dword [esi + 0x3c], eax
mov dword [ebx + 0x3c], 0
mov esi, dword [esi + 0x34]
mov ebx, dword [ebx + 0x34]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], ebx
test esi, esi
jne 0x4d5d75
mov edx, dword [esp + 0x24]
mov ecx, edi
push 1
call fcn.004cfbf0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret