Function at 0x40ccb0
Capabilities:
Copy file
Enumerate gui resources
Get common file path
Identify system language via api
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xc74
mov eax, dword [0x484004]
xor eax, esp
mov dword [esp + 0xc70], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x40cb70
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x488ae0], ebx
je 0x40cd0a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc70]
xor ecx, esp
call fcn.0043b563
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x64], ebx
call fcn.0040cbe0
push 0x7f00
push ebx
mov dword [0x488a70], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], 0x478624
mov dword [esp + 0x40], 0x40b5f0
mov dword [esp + 0x3c], 3
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], str.LOOKALF
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40ccf1
push 0x304
call fcn.0041caab
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40cdc4
push 0x4786a8
push 0x477f88
push esi
call fcn.0043bf85
mov edx, dword [esi]
add esp, 0xc
push str.Test_messages_n
push edx
call fcn.0043c301
mov eax, dword [esi]
push eax
call fcn.0043c6cc
add esp, 0xc
jmp 0x40cdc6
xor esi, esi
push 0x50a0
mov dword [0x488ae8], esi
call fcn.0041caab
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40cdfc
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cde6
sub eax, edx
mov ecx, eax
mov eax, edi
call fcn.0040d4e0
jmp 0x40cdfe
xor eax, eax
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov edi, dword [eax + 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x78]
mov dword [0x488a7c], eax
mov eax, dword [eax + 0x4c]
push ecx
push 0x1ff
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
call esi
push str.LangRsRuReleaseLangRsRu.dll
lea edx, [esp + 0x7c]
push 0x1ff
push edx
call fcn.0043d70c
add esp, 0xc
lea eax, [esp + 0x478]
push eax
push 0x1ff
call esi
push str.ReleaseLangDLLsLangRsRu.dll
lea ecx, [esp + 0x47c]
push 0x1ff
push ecx
call fcn.0043d70c
add esp, 0xc
push 0x4784f0
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0043d179
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0xc
test eax, eax
jne 0x40ceaf
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043c6cc
add esp, 4
push 0
lea edx, [esp + 0x47c]
push edx
lea eax, [esp + 0x80]
push eax
call ebx
lea ecx, [esp + 0x78]
push ecx
push 0x1ff
call esi
push str.LangRsEnReleaseLangRsEn.dll
lea edx, [esp + 0x7c]
push 0x1ff
push edx
call fcn.0043d70c
add esp, 0xc
lea eax, [esp + 0x478]
push eax
push 0x1ff
call esi
push str.ReleaseLangDLLsLangRsEn.dll
lea ecx, [esp + 0x47c]
push 0x1ff
push ecx
call fcn.0043d70c
add esp, 0xc
push 0x4784f0
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0043d179
add esp, 0xc
test eax, eax
jne 0x40cf37
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043c6cc
add esp, 4
push 0
lea edx, [esp + 0x47c]
push edx
lea eax, [esp + 0x80]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ebx, dword [0x488ae8]
push 0x477f94
push 0x477f88
push ebx
mov word [0x488a58], ax
movzx esi, ax
call fcn.0043bf85
mov ecx, dword [ebx]
add esp, 0xc
push esi
push esi
push str._int_langUI
push str._s_d__x__n
push ecx
call fcn.0043c301
mov edx, dword [ebx]
add esp, 0x14
push edx
call fcn.0043c6cc
mov bl, 0x19
add esp, 4
cmp byte [0x488a58], bl
jne 0x40cf92
push str.russian
jmp 0x40cf97
push str.nonrussian
call fcn.004010b0
mov ecx, dword [0x488a70]
push 0x1ff
lea eax, [esp + 0x87c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x878]
push 0x5c
push edx
call fcn.0043c9b7
add esp, 8
test eax, eax
je 0x40cfd1
mov word [eax], 0
cmp byte [0x488a58], bl
mov eax, str.LangDLLsLangRsRu.dll
je 0x40cfe3
mov eax, str.LangDLLsLangRsEn.dll
push eax
lea eax, [esp + 0x87c]
push 0x200
push eax
call fcn.0043d70c
add esp, 0xc
push 2
push 0
lea ecx, [esp + 0x880]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [0x488a6c], eax
jne 0x40d020
mov ebx, str.DLL_load_ERROR
call fcn.00401020
jmp 0x40d02a
push str.DLL_load_OK
call fcn.004010b0
mov edx, dword [0x488a6c]
push str.LOOKALF
push edx
call dword [sym.imp.USER32.dll_LoadMenuW]
test eax, eax
mov dword [0x488a50], eax
jne 0x40d051
mov ebx, str.Menu_load_ERROR
call fcn.00401020
jmp 0x40d05b
push str.Menu_load_OK
call fcn.004010b0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x488a50]
push 0
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x34]
push 0
sub eax, ecx
push eax
mov eax, dword [esp + 0x38]
sub edi, eax
push edi
push ecx
push eax
push 0xcf0000
push 0x478624
push 0x478624
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, 0xca
mov dword [0x488ae4], eax
call fcn.00419160
mov edx, dword [0x488ae4]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x488a6c], 0
jne 0x40d0d7
mov eax, dword [0x488ae4]
push 0x1010
push str.Error
push str.Language_Resource_DLL_not_found_in_current_dir
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [esp + 0x1c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d0e0
sub eax, esi
add eax, 1
push eax
push 0x489b10
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, 0x489b10
call fcn.00401020
cmp word [0x489b10], 0x22
jne 0x40d14b
push 0x22
push 0x489b12
call fcn.0043c9b7
add esp, 8
test eax, eax
je 0x40d14b
fld qword [0x4795f8]
mov esi, dword [0x488a7c]
sub esp, 8
fstp qword [esp]
push 0xffffffffffffffff
push 0x489b12
mov word [eax], 0
call fcn.0040d740
mov ecx, dword [0x488ae4]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea edx, [esp + 0x68]
push edx
mov dword [0x488a4c], eax
call esi
test eax, eax
je 0x40d19f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x5c]
push eax
call edi
lea ecx, [esp + 0x5c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x68]
push edx
call esi
test eax, eax
jne 0x40d180
mov eax, dword [0x488a50]
test eax, eax
je 0x40d1af
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [0x488a7c]
test eax, eax
mov esi, eax
je 0x40d1c9
push eax
call fcn.0040f080
push esi
call fcn.0041cadb
add esp, 4
mov eax, dword [0x488a6c]
test eax, eax
je 0x40d1d9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x488ae8]
push eax
call fcn.0041cadb
mov ecx, dword [esp + 0xc80]
mov eax, dword [esp + 0x68]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043b563
mov esp, ebp
pop ebp
ret 0x10