Function at 0x401ea0
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x401ef3
push eax
push eax
push str.CopyResource
push str.SHGetSpecialFolderPath__CSIDL_SYSTEM__failed__function_return.
call fcn.00401470
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x108
ret
mov edi, str.MacromedFlash
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov edi, 0x405924
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402100
add esp, 4
test al, al
push 0
push 1
je 0x401fbe
lea ecx, [esp + 0x18]
push str.Already_exist____CopyResource
push ecx
call fcn.00401470
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0x18]
push str.szPath___CopyResource
push edx
call fcn.00401470
mov eax, dword [esp + 0x128]
add esp, 0x10
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x402008
push eax
push eax
push str.CopyResource
push str.FindResource_failed__function_return.
call fcn.00401470
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x108
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402035
push eax
push eax
push str.CopyResource
push str.LoadResource_failed__function_return.
call fcn.00401470
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x108
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x402062
push eax
push eax
push str.CopyResource
push str.LockResource_failed__function_return.
call fcn.00401470
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x108
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x24]
push 0x40000000
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
cmp esi, 0xffffffff
jne 0x4020b3
push 0
push str.CopyResource
push str.CreateFile_failed__function_return.
call fcn.00401470
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x108
ret
lea edx, [esp + 0x10]
push edx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4020ec
push eax
push eax
push str.CopyResource
push str.WriteFile_failed__function_return.
call fcn.00401470
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x108
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x108
ret