Function at 0x40c330
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0x24c
mov eax, 0x486661
call fcn.00464eea
mov edi, ecx
cmp dword [0x4e2588], 0
mov dword [ebp - 0x22c], edi
je 0x40c410
mov eax, dword [edi + 0x198]
sub eax, 0x10
push eax
call fcn.00402d2a
add eax, 0x10
pop ecx
mov dword [ebp - 0x224], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
jne 0x40c3a4
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x570]
call fcn.004164d3
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], ebx
jne 0x40c3a4
push 0x4a0094
lea ecx, [ebp - 0x224]
call fcn.004027df
push str.re_initializing_strings_with_langauge:
lea ecx, [ebp - 0x220]
call fcn.0040279b
push ebx
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 1
push eax
push 2
lea edx, [ebp - 0x220]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x10c]
push ecx
lea ecx, [edi + 0x508]
call fcn.00414aaa
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00402def
xor eax, eax
inc eax
jmp 0x40c9d4
push str.InitUIStrings...
lea ecx, [ebp - 0x224]
mov dword [0x4e2588], 1
call fcn.0040279b
push 2
pop eax
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea edx, [ebp - 0x224]
mov ecx, eax
call fcn.00413e51
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402def
call fcn.0044afe1
push eax
lea ecx, [ebp - 0x224]
call fcn.00402824
mov esi, 0x104
mov dword [ebp - 4], 3
push esi
lea ecx, [ebp - 0x224]
call fcn.00402b5d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x224]
mov esi, eax
call fcn.004097d8
test esi, esi
jne 0x40c67a
push str.GetTempPath_failed:
lea ecx, [ebp - 0x220]
call fcn.0040279b
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
lea edx, [ebp - 0x220]
pop ecx
call fcn.00413e51
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0x208
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00466990
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jns 0x40c59d
push str.SHGetFolderPath_CSIDL_COMMON_APPDATA_failed:
lea ecx, [ebp - 0x220]
call fcn.0040279b
push esi
push 2
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 5
pop ecx
call fcn.00413e51
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0x4a0094
lea ecx, [ebp - 0x22c]
call fcn.0040279b
push str.C:WindowsTempArmUI.ini
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
call fcn.0040279b
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x508]
call fcn.00414aaa
mov ecx, dword [ebp - 0x220]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402def
mov ecx, dword [ebp - 0x22c]
jmp 0x40c884
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x224]
call fcn.004027df
push str.AdobeARM_
lea ecx, [ebp - 0x224]
call fcn.0040252d
push ebx
push dword [ebp - 0x224]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0xa1
je 0x40c5e0
cmp esi, 3
jne 0x40c67a
push str.SHCreateDirectoryEx___failed:
lea ecx, [ebp - 0x22c]
call fcn.0040279b
push esi
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 8
push eax
push 2
lea edx, [ebp - 0x22c]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.00402def
push 0x4a0094
lea ecx, [ebp - 0x228]
call fcn.0040279b
push str.C:WindowsTempArmUI.ini
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 9
call fcn.0040279b
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [edi + 0x508]
call fcn.00414aaa
mov ecx, dword [ebp - 0x230]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00402def
mov ecx, dword [ebp - 0x228]
jmp 0x40c884
push str.ArmUI.ini
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.004023e9
add esp, 0xc
lea ecx, [edi + 0x10c]
mov byte [ebp - 4], 0xb
push eax
call fcn.00402d9f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov eax, dword [edi + 0x198]
sub eax, 0x10
push eax
call fcn.00402d2a
add eax, 0x10
pop ecx
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xc
cmp dword [eax - 0xc], 0
jne 0x40c708
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x570]
call fcn.004164d3
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
jne 0x40c708
push 0x4a0094
lea ecx, [ebp - 0x220]
call fcn.004027df
push str.ARM_UI_INI
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40c77d
push str.FindResource_failed:
lea ecx, [ebp - 0x228]
call fcn.0040279b
mov byte [ebp - 4], 0xd
push ebx
lea eax, [edi + 0x10c]
push eax
push 2
lea edx, [ebp - 0x228]
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x220]
push eax
lea eax, [edi + 0x10c]
push eax
lea ecx, [edi + 0x508]
call fcn.00414aaa
mov esi, eax
jmp 0x40c87e
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40c79f
push str.LoadResource_failed:
lea ecx, [ebp - 0x228]
call fcn.0040279b
mov byte [ebp - 4], 0xe
jmp 0x40c733
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov dword [ebp - 0x230], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea esi, [edi + 0x10c]
mov dword [ebp - 0x228], eax
mov ecx, esi
call fcn.00444ae4
lea ecx, [ebp - 0x258]
call fcn.0044b0e0
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0xf
call fcn.00402653
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0x10
push eax
push 0x1021
push dword [edi + 0x10c]
lea ecx, [ebp - 0x258]
call fcn.0044b650
test eax, eax
jne 0x40c8a1
push str.Open_file_failed:
lea ecx, [ebp - 0x228]
call fcn.0040279b
push ebx
push esi
push 2
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 0x11
pop ecx
call fcn.00413900
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.00402def
lea eax, [ebp - 0x220]
push eax
push esi
lea ecx, [edi + 0x508]
call fcn.00414aaa
mov ecx, dword [ebp - 0x234]
mov esi, eax
add ecx, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.00402def
lea ecx, [ebp - 0x258]
call fcn.0044b110
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.00402def
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov eax, esi
jmp 0x40c9d4
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x258]
push dword [ebp - 0x228]
push dword [ebp - 0x230]
call fcn.0044ba20
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0x10
call fcn.0044b3a0
lea eax, [ebp - 0x220]
push eax
push esi
lea ecx, [edi + 0x508]
call fcn.00414aaa
mov ecx, dword [ebp - 0x234]
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
lea ecx, [ecx - 0x10]
call fcn.00402def
lea ecx, [ebp - 0x258]
call fcn.0044b110
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.00402def
mov ecx, dword [ebp - 0x224]
lea ecx, [ecx - 0x10]
jmp 0x40c403
call fcn.00464e37
ret