Function at 0x4d50b0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1078
call fcn.00517a50
mov eax, dword [0x56617c]
xor eax, esp
mov dword [esp + 0x1074], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x44], eax
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], edi
cmp eax, 0x20424b41
jne 0x4d5100
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
add edx, 0x20
mov dword [esp + 0x30], edx
sub eax, 0x20
jmp 0x4d5127
cmp eax, 0x2b424b41
jne 0x4d5119
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
add edx, 0x40
mov dword [esp + 0x30], edx
sub eax, 0x40
jmp 0x4d5127
mov eax, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x30], 0
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x14]
mov dword [esp + 0x3c], edi
mov edi, dword [esi + 0x18]
sub edi, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], edi
dec ecx
mov edi, dword [esp + 0x10]
add ecx, eax
test dword [esi + 8], 0x40000000
mov dword [esp + 0x20], eax
push ecx
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x10]
je 0x4d51ea
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x5c], edx
call eax
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
mov edx, dword [edx + 0x1c]
call edx
add eax, esi
mov ecx, edi
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x18]
lea esi, [eax*4]
mov eax, dword [edi]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov eax, dword [eax + 0x14]
call eax
add eax, esi
sub esp, 0x10
neg eax
mov dword [esp + 0x7c], eax
mov eax, esp
movups xmm0, xmmword [esp + 0x70]
sub esp, 0xc
movups xmmword [eax], xmm0
mov eax, esp
movq xmm0, qword [esp + 0x6c]
movq qword [eax], xmm0
mov dword [eax + 8], 0
call fcn.004d5620
add esp, 0x1c
jmp 0x4d5376
call eax
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
mov edx, dword [edx + 0x1c]
call edx
mov ecx, dword [esp + 0x10]
lea edi, [esi + eax]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
call edx
mov edx, dword [esp + 0x18]
mov ecx, eax
push 0xfee
lea eax, [edx*4]
add ecx, eax
mov dword [esp + 0x28], eax
neg ecx
lea eax, [esp + 0x7c]
mov dword [esp + 0x44], ecx
xor ecx, ecx
push ecx
push eax
call fcn.005001b0
xor eax, eax
add esp, 0xc
mov esi, 0xfee
cmp dword [esp + 0x34], eax
je 0x4d5372
xor edx, edx
mov ecx, dword [esp + 0x14]
shr eax, 1
mov dword [esp + 0x28], eax
test eax, 0x100
jne 0x4d5267
mov al, byte [edx + ecx]
inc edx
movzx eax, al
or eax, 0xff00
mov dword [esp + 0x28], eax
test byte [esp + 0x28], 1
lea eax, [edx + 1]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov al, byte [eax + edx]
mov edx, dword [esp + 0x2c]
mov byte [esp + 0xf], al
je 0x4d52b8
mov byte [edi], al
inc edi
sub dword [esp + 0x24], 1
jne 0x4d52a1
mov ecx, dword [esp + 0x18]
add edi, dword [esp + 0x40]
lea ecx, [ecx*4]
mov dword [esp + 0x24], ecx
mov cl, byte [esp + 0xf]
movzx eax, si
inc esi
and esi, 0xfff
mov byte [esp + eax + 0x78], cl
jmp 0x4d5364
movzx eax, byte [edx + ecx]
lea ecx, [edx + 1]
mov dword [esp + 0x1c], ecx
mov edx, eax
movzx eax, byte [esp + 0xf]
mov ecx, edx
and ecx, 0xf0
and edx, 0xf
shl ecx, 4
add edx, 3
or cx, ax
movzx eax, cx
movzx ecx, dx
xor edx, edx
cmp dx, cx
jae 0x4d5360
mov edx, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
nop word [eax + eax]
mov ecx, dword [esp + 0x14]
and eax, 0xfff
mov dword [esp + 0x14], ecx
mov al, byte [esp + eax + 0x78]
mov byte [edi], al
inc edi
sub dword [esp + 0x24], 1
mov byte [esp + 0xf], al
jne 0x4d5332
mov ecx, dword [esp + 0x18]
add edi, dword [esp + 0x40]
lea ecx, [ecx*4]
mov dword [esp + 0x24], ecx
mov cl, byte [esp + 0xf]
movzx eax, si
inc esi
and esi, 0xfff
mov byte [esp + eax + 0x78], cl
mov eax, dword [esp + 0x2c]
inc eax
sub dword [esp + 0x38], 1
mov dword [esp + 0x2c], eax
jne 0x4d5300
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
cmp edx, dword [esp + 0x34]
jb 0x4d5246
mov edi, dword [esp + 0x10]
mov eax, dword [edi]
mov ecx, edi
push dword [esp + 0x44]
push dword [esp + 0x40]
mov eax, dword [eax + 0x10]
call eax
mov edx, dword [edi]
mov ecx, edi
mov esi, eax
mov edx, dword [edx + 0x1c]
call edx
mov edx, dword [edi]
add eax, esi
mov ecx, edi
mov dword [esp + 0x1c], eax
mov edx, dword [edx + 0x14]
call edx
mov esi, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
cmp eax, 1
jle 0x4d53e8
lea ecx, [esi + 7]
lea edx, [eax - 1]
nop word [eax + eax]
movzx eax, byte [ecx - 4]
lea ecx, [ecx + 4]
add byte [ecx - 4], al
movzx eax, byte [ecx - 9]
add byte [ecx - 5], al
movzx eax, byte [ecx - 0xa]
add byte [ecx - 6], al
movzx eax, byte [ecx - 0xb]
add byte [ecx - 7], al
sub edx, 1
jne 0x4d53c0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
cmp edx, 1
jle 0x4d5477
lea eax, [esi + 1]
lea esi, [ecx + 2]
mov dword [esp + 0x1c], eax
lea edi, [ecx - 1]
mov dword [esp + 0x40], esi
lea ecx, [edx - 1]
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x18], 0
jle 0x4d5460
mov edx, eax
not edi
add eax, esi
mov esi, dword [esp + 0x18]
movzx ecx, byte [eax + edi]
lea edx, [edx + 4]
add byte [eax], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 3]
add byte [eax - 5], cl
movzx ecx, byte [edx - 4]
add byte [eax - 6], cl
movzx ecx, byte [edx - 5]
add byte [eax - 7], cl
sub esi, 1
jne 0x4d5426
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
add eax, edx
sub ecx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ecx
jne 0x4d5415
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 8]
test ecx, 0x40000000
je 0x4d54a4
mov eax, dword [edi]
push ecx
push edx
push dword [esp + 0x20]
mov ecx, edi
push dword [esp + 0x50]
push dword [esp + 0x4c]
call dword [eax + 0xe8]
mov eax, dword [esi + 0xc]
add eax, 0x10
push eax
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 8], 0
jge 0x4d55ff
mov eax, dword [ebp + 0x18]
mov esi, dword [ecx + 0xc]
cmp eax, 2
jne 0x4d54d3
mov eax, esi
and eax, 0xffffff
jmp 0x4d54e4
cmp eax, 1
jne 0x4d54e4
test esi, 0xff000000
je 0x4d55ff
movzx eax, word [ecx + 4]
mov dword [esp + 0x10], eax
movzx eax, word [ecx + 6]
mov dword [esp + 0x20], eax
lea eax, [ecx + 0x10]
push eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [sym.imp.USER32.dll_CopyRect]
call eax
mov ecx, dword [esp + 0x5c]
mov eax, ecx
mov edx, dword [esp + 0x54]
sub eax, edx
test eax, eax
jle 0x4d55e4
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
test eax, eax
jle 0x4d55e4
test edx, edx
jle 0x4d5548
mov eax, dword [edi]
mov ecx, edi
push 1
push esi
push edx
push dword [esp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x20]
cmp ecx, eax
jge 0x4d5571
mov edx, dword [edi]
sub eax, ecx
push 1
push esi
push eax
push dword [esp + 0x1c]
mov eax, dword [ebp + 0x10]
add eax, ecx
mov ecx, edi
push eax
push dword [ebp + 0xc]
call dword [edx + 0xe0]
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x50], 0
jle 0x4d559b
mov eax, dword [esp + 0x54]
sub ecx, eax
add eax, dword [ebp + 0x10]
mov edx, dword [edi]
push 1
push esi
push ecx
push dword [esp + 0x5c]
mov ecx, edi
push eax
push dword [ebp + 0xc]
call dword [edx + 0xe0]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x58], eax
jge 0x4d55ff
mov eax, dword [esp + 0x54]
sub ecx, eax
add eax, dword [ebp + 0x10]
mov edx, dword [edi]
push 1
push esi
mov esi, dword [esp + 0x18]
sub esi, dword [esp + 0x60]
push ecx
push esi
push eax
mov eax, dword [ebp + 0xc]
mov ecx, edi
add eax, dword [esp + 0x6c]
push eax
call dword [edx + 0xe0]
pop edi
pop esi
mov ecx, dword [esp + 0x1074]
xor ecx, esp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [edi]
mov ecx, edi
push 1
push esi
push dword [esp + 0x28]
push dword [esp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x107c]
pop edi
pop esi
xor ecx, esp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 0x14