Function at 0x4afe80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6a9a60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x224], eax
cmp dword [edi + 0x14], ebx
jne 0x4afec6
xor eax, eax
jmp 0x4b00ca
push esi
lea ecx, [ebp - 0x210]
call fcn.00404190
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.00404cd0
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
test esi, esi
jne 0x4aff35
mov eax, ebx
jmp 0x4aff3d
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push esi
lea ecx, [ebp - 0x210]
call fcn.00404cd0
mov esi, dword [ebp - 0x210]
push 0x2e
push esi
call sub.VCRUNTIME140.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
je 0x4aff9a
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4aff9a
push eax
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x210]
call fcn.00403b90
push eax
lea ecx, [ebp - 0x210]
call fcn.004048f0
mov ecx, dword [ebp - 0x214]
lea ecx, [ecx - 0x10]
call fcn.004023e0
mov esi, dword [ebp - 0x210]
lea ecx, [ebp - 0x214]
call fcn.00404190
movsd xmm0, qword [0x61ff70]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x214]
movsd qword [ebp - 0x22c], xmm0
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
mov ecx, edi
push dword [ebp + 8]
push eax
call fcn.004aee93
mov edi, dword [ebp - 0x214]
test eax, eax
je 0x4b00b7
push dword [ebp - 0x218]
mov eax, dword [ebp - 0x21c]
push edi
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4b00b7
push eax
mov eax, dword [ebp - 0x21c]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4b00b7
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x218]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4b00b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4b00b7
mov ebx, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x220]
lea eax, [ebx + 1]
push eax
call fcn.00404eb0
test eax, eax
je 0x4b0083
push ebx
push dword [ebp - 0x218]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x220]
lea eax, [ebx + 1]
push eax
call fcn.0042f81b
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4b00b4
movsd xmm0, qword [ebp - 0x22c]
movsd qword [eax], xmm0
xor ebx, ebx
inc ebx
lea ecx, [edi - 0x10]
call fcn.004023e0
lea ecx, [esi - 0x10]
call fcn.004023e0
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004b3004
leave
ret 0x10