Function at 0x401210
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x208
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0x204], eax
cmp dword [0x4133bc], 0
je 0x401247
mov eax, 1
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.00401ab1
add esp, 0x208
ret
push ebx
push ebp
push esi
push edi
push 0x40f6b0
push 0x6f
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4012bf
push esi
push 0
call ebx
push esi
push 0
mov edi, eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp edi, 0x100000
mov esi, eax
jbe 0x4012a1
push 0
push 0
push str.CDE
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4014b0
push edi
call fcn.004018e1
push edi
push esi
push eax
mov dword [0x4133c4], eax
mov dword [0x4133c8], edi
call fcn.00402440
add esp, 0x10
jmp 0x4012d0
push 0
push 0
push 0x40f698
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x40f694
push 0x70
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40149a
push esi
push 0
call ebx
push esi
xor esi, esi
push esi
mov edi, eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
call fcn.004011f0
add esp, 8
test eax, eax
jne 0x401322
push esi
push esi
push 0x40f68c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4014b0
lea eax, [esp + 0x114]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, dword [0x4133c0]
push 0
push ecx
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x20]
push str._swm_d__d.dll
push eax
mov dword [esp + 0x24], esi
call fcn.004023be
push 0x40f678
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0040236e
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
jne 0x4013c0
jmp 0x401380
mov eax, dword [0x4133c0]
add esi, 1
push esi
push eax
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x20]
push str._swm_d__d.dll
push edx
call fcn.004023be
push 0x40f678
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040236e
mov eax, dword [esp + 0x30]
add esp, 0x20
test eax, eax
je 0x401380
push eax
push 1
push edi
push ebx
call fcn.0040221d
mov edx, dword [esp + 0x20]
mov esi, eax
sub esi, 1
neg esi
sbb esi, esi
push edx
add esi, 1
call fcn.00402087
add esp, 0x14
test esi, esi
je 0x401473
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401468
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40f694
push esi
call edi
push 0x40f6b0
push esi
mov dword [0x4133cc], eax
call edi
push 0x40f674
push esi
mov dword [0x4133d0], eax
call edi
cmp dword [0x4133cc], 0
mov dword [0x4133d4], eax
je 0x40144b
cmp dword [0x4133d0], 0
je 0x40144b
test eax, eax
je 0x40144b
mov dword [0x4133bc], 1
jmp 0x4014ab
push 0
push str.jimi
push 0x40f65c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401484
push 0
push 0
push 0x40f648
jmp 0x40147c
push 0
push 0
push 0x40f63c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [0x4133bc], 0
jne 0x4014ab
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4014ab
push 0
push 0
push 0x40f62c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x4133bc]
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401ab1
add esp, 0x208
ret