Function at 0x40cdc0
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 [0x487004]
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 0x40cc80
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x48bae0], ebx
je 0x40ce1a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc70]
xor ecx, esp
call fcn.0043c4a7
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x64], ebx
call fcn.0040ccf0
push 0x7f00
push ebx
mov dword [0x48ba70], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], 0x47a7e0
mov dword [esp + 0x40], 0x40b700
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 0x40ce01
push 0x304
call fcn.0041cb4b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40ced4
push 0x47a864
push 0x47a140
push esi
call fcn.0043cec5
mov edx, dword [esi]
add esp, 0xc
push str.Test_messages_n
push edx
call fcn.0043d241
mov eax, dword [esi]
push eax
call fcn.0043d60c
add esp, 0xc
jmp 0x40ced6
xor esi, esi
push 0x50a0
mov dword [0x48bae8], esi
call fcn.0041cb4b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40cf0c
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40cef6
sub eax, edx
mov ecx, eax
mov eax, edi
call fcn.0040d5f0
jmp 0x40cf0e
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 [0x48ba7c], 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.0043e64c
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.0043e64c
add esp, 0xc
push 0x47a6ac
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0043e0bc
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0xc
test eax, eax
jne 0x40cfbf
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043d60c
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.0043e64c
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.0043e64c
add esp, 0xc
push 0x47a6ac
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.0043e0bc
add esp, 0xc
test eax, eax
jne 0x40d047
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043d60c
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 [0x48bae8]
push 0x47a14c
push 0x47a140
push ebx
mov word [0x48ba58], ax
movzx esi, ax
call fcn.0043cec5
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.0043d241
mov edx, dword [ebx]
add esp, 0x14
push edx
call fcn.0043d60c
mov bl, 0x19
add esp, 4
cmp byte [0x48ba58], bl
jne 0x40d0a2
push str.russian
jmp 0x40d0a7
push str.nonrussian
call fcn.004010c0
mov ecx, dword [0x48ba70]
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.0043d8f7
add esp, 8
test eax, eax
je 0x40d0e1
mov word [eax], 0
cmp byte [0x48ba58], bl
mov eax, str.LangDLLsLangRsRu.dll
je 0x40d0f3
mov eax, str.LangDLLsLangRsEn.dll
push eax
lea eax, [esp + 0x87c]
push 0x200
push eax
call fcn.0043e64c
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 [0x48ba6c], eax
jne 0x40d130
mov ebx, str.DLL_load_ERROR
call fcn.00401030
jmp 0x40d13a
push str.DLL_load_OK
call fcn.004010c0
mov edx, dword [0x48ba6c]
push str.LOOKALF
push edx
call dword [sym.imp.USER32.dll_LoadMenuW]
test eax, eax
mov dword [0x48ba50], eax
jne 0x40d161
mov ebx, str.Menu_load_ERROR
call fcn.00401030
jmp 0x40d16b
push str.Menu_load_OK
call fcn.004010c0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x48ba50]
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 0x47a7e0
push 0x47a7e0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, 0xca
mov dword [0x48bae4], eax
call fcn.004191c0
mov edx, dword [0x48bae4]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x48ba6c], 0
jne 0x40d1e7
mov eax, dword [0x48bae4]
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 0x40d1f0
sub eax, esi
add eax, 1
push eax
push 0x48cb10
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, 0x48cb10
call fcn.00401030
cmp word [0x48cb10], 0x22
jne 0x40d25b
push 0x22
push 0x48cb12
call fcn.0043d8f7
add esp, 8
test eax, eax
je 0x40d25b
fld qword [0x47b798]
mov esi, dword [0x48ba7c]
sub esp, 8
fstp qword [esp]
push 0xffffffffffffffff
push 0x48cb12
mov word [eax], 0
call fcn.0040d850
mov ecx, dword [0x48bae4]
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 [0x48ba4c], eax
call esi
test eax, eax
je 0x40d2af
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 0x40d290
mov eax, dword [0x48ba50]
test eax, eax
je 0x40d2bf
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [0x48ba7c]
test eax, eax
mov esi, eax
je 0x40d2d9
push eax
call fcn.0040f190
push esi
call fcn.0041cb76
add esp, 4
mov eax, dword [0x48ba6c]
test eax, eax
je 0x40d2e9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x48bae8]
push eax
call fcn.0041cb76
mov ecx, dword [esp + 0xc80]
mov eax, dword [esp + 0x68]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043c4a7
mov esp, ebp
pop ebp
ret 0x10