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

Disassembly:
push 0x24c
mov eax, 0x46cd97
call fcn.00452f53
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x230], edi
lea ecx, [ebp - 0x22c]
cmp dword [0x4b7c3c], ebx
je 0x40a273
lea eax, [edi + 0x170]
push eax
call fcn.00401326
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x22c]
cmp dword [eax - 0xc], ebx
jne 0x40a207
lea eax, [ebp - 0x22c]
push eax
lea eax, [edi + 0x534]
push eax
call fcn.00415c12
mov eax, dword [ebp - 0x22c]
cmp dword [eax - 0xc], ebx
jne 0x40a207
push 0x479128
lea ecx, [ebp - 0x22c]
call fcn.00401356
push str.re_initializing_strings_with_langauge:
lea ecx, [ebp - 0x224]
call fcn.004012e2
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00411336
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x224]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x22c]
push eax
lea esi, [edi + 0xe0]
lea ecx, [edi + 0x4cc]
call fcn.00412d13
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
inc eax
jmp 0x40a836
push str.InitUIStrings...
mov dword [0x4b7c3c], 1
call fcn.004012e2
push 2
pop eax
push ebx
lea ecx, [ebp - 0x22c]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00411806
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x22c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
call fcn.0043f3c0
push eax
lea ecx, [ebp - 0x22c]
call fcn.004013a1
mov esi, 0x104
push esi
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 3
call fcn.0040165f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x22c]
mov esi, eax
call fcn.004076ad
cmp esi, ebx
jne 0x40a4fb
push str.GetTempPath_failed:
lea ecx, [ebp - 0x224]
call fcn.004012e2
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x224]
push eax
push 2
call fcn.00411806
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
xor eax, eax
push 0x206
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
call fcn.00450cb0
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, ebx
jge 0x40a41e
push str.SHGetFolderPath_CSIDL_COMMON_APPDATA_failed:
lea ecx, [ebp - 0x224]
call fcn.004012e2
push esi
lea eax, [ebp - 0x224]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411806
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017df
push 0x479128
lea ecx, [ebp - 0x230]
call fcn.004012e2
push str.C:WindowsTempArmUI.ini
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.004012e2
lea eax, [ebp - 0x230]
push eax
lea ecx, [edi + 0x4cc]
lea esi, [ebp - 0x224]
mov byte [ebp - 4], 7
call fcn.00412d13
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017df
mov ecx, dword [ebp - 0x230]
add ecx, 0xfffffff0
call fcn.004017df
mov ecx, dword [ebp - 0x22c]
add ecx, 0xfffffff0
call fcn.004017df
mov eax, esi
jmp 0x40a836
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401356
push str.AdobeARM_
lea ecx, [ebp - 0x22c]
call fcn.00407601
push ebx
push dword [ebp - 0x22c]
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov esi, eax
cmp esi, 0xa1
je 0x40a461
cmp esi, 3
jne 0x40a4fb
push str.SHCreateDirectoryEx___failed:
lea ecx, [ebp - 0x230]
call fcn.004012e2
push esi
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x230]
push eax
push 2
mov byte [ebp - 4], 8
call fcn.00411336
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x230]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
push 0x479128
lea ecx, [ebp - 0x228]
call fcn.004012e2
push str.C:WindowsTempArmUI.ini
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 9
call fcn.004012e2
lea eax, [ebp - 0x228]
push eax
lea ecx, [edi + 0x4cc]
lea esi, [ebp - 0x234]
mov byte [ebp - 4], 0xa
call fcn.00412d13
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004017df
mov ecx, dword [ebp - 0x228]
jmp 0x40a401
push str.ArmUI.ini
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00407458
add esp, 0xc
lea esi, [edi + 0xe0]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.004077b3
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [edi + 0x170]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401326
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], ebx
jne 0x40a589
lea eax, [ebp - 0x224]
push eax
lea eax, [edi + 0x534]
push eax
call fcn.00415c12
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], ebx
jne 0x40a589
push 0x479128
lea ecx, [ebp - 0x224]
call fcn.00401356
push str.ARM_UI_INI
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x228], eax
cmp eax, ebx
jne 0x40a5fc
push str.FindResource_failed:
lea ecx, [ebp - 0x228]
call fcn.004012e2
mov byte [ebp - 4], 0xd
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
push 2
call fcn.00411336
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x228]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x4cc]
call fcn.00412d13
mov esi, eax
mov ecx, dword [ebp - 0x224]
jmp 0x40a401
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
jne 0x40a61e
push str.LoadResource_failed:
lea ecx, [ebp - 0x228]
call fcn.004012e2
mov byte [ebp - 4], 0xe
jmp 0x40a5b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x228]
mov dword [ebp - 0x234], eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, esi
mov dword [ebp - 0x228], eax
call fcn.00439902
lea ecx, [ebp - 0x244]
call fcn.0043facd
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 0xf
call fcn.00401229
lea ecx, [ebp - 0x258]
push ecx
mov byte [ebp - 4], 0x10
mov eax, dword [esi]
push 0x1021
push eax
lea ecx, [ebp - 0x244]
call fcn.0043fee4
test eax, eax
jne 0x40a6fe
push str.Open_file_failed:
lea ecx, [ebp - 0x228]
call fcn.004012e2
push ebx
push esi
lea eax, [ebp - 0x228]
push eax
push 2
mov byte [ebp - 4], 0x11
call fcn.00411336
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x228]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017df
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x4cc]
call fcn.00412d13
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
mov esi, eax
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.004017df
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0xc
call fcn.0043fba8
jmp 0x40a5f1
mov byte [ebp - 4], 0x12
push dword [ebp - 0x228]
lea ecx, [ebp - 0x244]
push dword [ebp - 0x234]
call fcn.0043f803
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0x10
call fcn.0043fa67
lea eax, [ebp - 0x224]
push eax
lea ecx, [edi + 0x4cc]
call fcn.00412d13
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
mov dword [ebp - method.CFileException.virtual_0], vtable.CFileException.0
call fcn.004017df
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 0xc
call fcn.0043fba8
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.004017df
jmp 0x40a25d
call fcn.00452faf
ret