Function at 0x41f780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
sub esp, 0x140
mov eax, dword [0x65d4c0]
xor eax, esp
mov dword [esp + 0x13c], eax
mov eax, dword [esp + 0x148]
mov ecx, dword [esp + 0x14c]
mov edx, dword [esp + 0x150]
push esi
mov esi, dword [esp + 0x148]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
test esi, esi
jne 0x41f7dd
xor eax, eax
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004cead5
add esp, 0x140
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push esi
call edi
cmp eax, 1
jne 0x41f807
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004cead5
add esp, 0x140
ret
push ebp
mov ebp, dword [esi + 0x3c]
push 0xf8
add ebp, esi
push ebp
call edi
cmp eax, 1
je 0x41fb4a
mov eax, 0xe0
cmp word [ebp + 0x14], ax
jne 0x41fb4a
mov ecx, 0x10b
cmp word [ebp + 0x18], cx
jne 0x41fb4a
movzx ecx, word [ebp + 6]
cmp cx, 1
jb 0x41fb4a
push ebx
movzx eax, cx
lea ebx, [eax + eax*4]
add ebx, ebx
add ebx, ebx
add ebx, ebx
sub ebx, esi
lea edi, [ebp + 0xf8]
add ebx, edi
xor edx, edx
xor esi, esi
mov dword [esp + 0x14], ebx
cmp dx, cx
jae 0x41f8a7
mov edi, edi
movzx eax, si
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0xc]
mov edx, dword [edi + eax*8 + 0x10]
lea eax, [edi + eax*8]
add edx, ecx
cmp ebx, edx
jae 0x41f889
mov ebx, edx
mov edx, dword [eax + 8]
add ecx, edx
cmp ebx, ecx
jae 0x41f894
mov ebx, ecx
push str..rsrc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
inc esi
cmp si, word [ebp + 6]
jb 0x41f870
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x28]
xor edx, edx
mov eax, ebx
div ecx
test edx, edx
je 0x41f8c1
inc eax
imul ecx, eax
push 0x40
push 0x1000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x41fb43
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push ebx
call fcn.004d0700
xor eax, eax
add esp, 0xc
xor esi, esi
cmp ax, word [ebp + 6]
jae 0x41f92b
jmp 0x41f900
movzx eax, si
lea ecx, [eax + eax*4]
mov edx, dword [edi + ecx*8 + 0x10]
lea eax, [edi + ecx*8]
mov ecx, dword [eax + 0x14]
add ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 0xc]
push ecx
add edx, ebx
push edx
call fcn.004d0700
inc esi
add esp, 0xc
cmp si, word [ebp + 6]
jb 0x41f900
mov edi, dword [ebx + 0x3c]
mov esi, dword [edi + ebx + 0x80]
add edi, ebx
mov dword [esp + 0x14], edi
test esi, esi
je 0x41fb35
add esi, ebx
mov dword [esp + 0x10], esi
lea esp, [esp]
cmp dword [esi + 4], 0
jne 0x41f960
cmp dword [esi + 0xc], 0
je 0x41fa0b
mov ebp, dword [esi + 0xc]
mov eax, dword [esp + 0x20]
add ebp, ebx
test eax, eax
je 0x41f979
push ebp
call eax
mov edi, eax
add esp, 4
test edi, edi
jne 0x41f997
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x41f997
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41fab2
mov eax, dword [esi]
test eax, eax
je 0x41f9a2
lea ebp, [eax + ebx]
jmp 0x41f9a7
mov ebp, dword [esi + 0x10]
add ebp, ebx
mov esi, dword [esi + 0x10]
mov eax, dword [ebp]
add esi, ebx
test eax, eax
je 0x41f9f9
mov ecx, dword [esp + 0x1c]
test eax, eax
jns 0x41f9cd
and eax, 0xffff
push eax
push edi
test ecx, ecx
je 0x41f9e4
call ecx
add esp, 8
jmp 0x41f9ea
test ecx, ecx
je 0x41f9de
lea eax, [eax + ebx + 2]
push eax
push edi
call ecx
add esp, 8
jmp 0x41f9ea
lea ecx, [eax + ebx + 2]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
add ebp, 4
mov dword [esi], eax
mov eax, dword [ebp]
add esi, 4
test eax, eax
jne 0x41f9b3
add dword [esp + 0x10], 0x14
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x41f950
mov edx, dword [edi + 0xa0]
test edx, edx
je 0x41fa7c
mov ebp, dword [edi + 0x50]
add edx, ebx
add ebp, ebx
cmp dword [edx], 0
je 0x41fa7c
mov eax, dword [edx + 4]
lea esi, [edx + 8]
add eax, edx
cmp esi, eax
jae 0x41fa74
lea ecx, [ecx]
movzx eax, word [esi]
mov ecx, eax
and ecx, 0xf000
cmp ecx, 0x3000
jne 0x41fa60
and eax, 0xfff
add eax, dword [edx]
mov ecx, dword [eax + ebx]
sub ecx, dword [edi + 0x34]
add eax, ebx
add ecx, ebx
cmp ecx, ebx
jb 0x41fa68
cmp ecx, ebp
jae 0x41fa68
mov dword [eax], ecx
jmp 0x41fa68
test ecx, ecx
jne 0x41fb35
mov ecx, dword [edx + 4]
add esi, 2
add ecx, edx
cmp esi, ecx
jb 0x41fa30
add edx, dword [edx + 4]
cmp dword [edx], 0
jne 0x41fa21
mov edi, dword [edi + 0x28]
add edi, ebx
cmp dword [esp + 0x18], 0
jne 0x41fa8c
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x18]
push 0
push 1
push edx
call edi
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.004cead5
add esp, 0x140
ret
mov ecx, 6
mov esi, str.Can_not_find_required_DLL
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0xe9
lea eax, [esp + 0x67]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.004cfde0
add esp, 0xc
cmp byte [esp + 0x48], 0
lea eax, [esp + 0x48]
je 0x41faea
inc eax
cmp byte [eax], 0
jne 0x41fae4
cmp byte [ebp], 0
je 0x41fb0e
mov esi, eax
lea ecx, [esp + 0x48]
sub esi, ecx
cmp esi, 0x82
jge 0x41fb0e
mov dl, byte [ebp]
mov byte [eax], dl
inc ebp
inc eax
inc esi
cmp byte [ebp], 0
jne 0x41faf8
mov byte [eax], 0
push str.._If_this_is_a_MFC_DLL__then_you_need_to_create_a_MFC_project.
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push str.Error
lea ecx, [esp + 0x50]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41fa99
mov ecx, dword [esp + 0x148]
pop ebp
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004cead5
add esp, 0x140
ret