Function at 0x40b970
Capabilities:
Copy file
Enumerate gui resources
Get common file path
Identify system language via api

Disassembly:
sub esp, 0xc58
mov eax, dword [0x437ebc]
push esi
xor esi, esi
push esi
push 0x40b840
mov dword [esp + 0xc60], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x4425b0], esi
je 0x40b9b1
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc54]
call fcn.0041b2b5
add esp, 0xc58
ret 0x10
push edi
mov dword [esp + 0x48], esi
call fcn.0040b8a0
mov edi, dword [esp + 0xc64]
mov eax, dword [0x4377c0]
push 0x7f00
push esi
mov dword [0x442540], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0x40a3a0
mov dword [esp + 0x10], 3
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], str.LOOKALF
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x40ba49
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc54]
call fcn.0041b2b5
add esp, 0xc58
ret 0x10
push 0x304
call fcn.004291ea
add esp, 4
cmp eax, esi
je 0x40ba63
mov ecx, eax
call fcn.0040a320
jmp 0x40ba65
xor eax, eax
push 0x50a0
mov dword [0x4425b8], eax
call fcn.004291ea
add esp, 4
cmp eax, esi
je 0x40ba99
mov edx, dword [esp + 0xc6c]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40ba85
sub edx, esi
push edx
push edi
mov ecx, eax
call fcn.0040dea0
jmp 0x40ba9b
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [0x44254c], eax
add eax, 0x40
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 8]
push ebx
push ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x64]
push edx
push 0x1ff
mov dword [esp + 0x44], ecx
call esi
lea eax, [esp + 0x64]
push str.LangRsRuReleaseLangRsRu.dll
push eax
call fcn.0041bc90
add esp, 8
lea ecx, [esp + 0x464]
push ecx
push 0x1ff
call esi
lea edx, [esp + 0x464]
push str.ReleaseLangDLLsLangRsRu.dll
push edx
call fcn.0041bc90
lea eax, [esp + 0x6c]
push eax
call fcn.00416c70
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0xc
test eax, eax
je 0x40bb25
push 0
lea ecx, [esp + 0x468]
push ecx
lea edx, [esp + 0x6c]
push edx
call ebx
lea eax, [esp + 0x64]
push eax
push 0x1ff
call esi
lea ecx, [esp + 0x64]
push str.LangRsEnReleaseLangRsEn.dll
push ecx
call fcn.0041bc90
add esp, 8
lea edx, [esp + 0x464]
push edx
push 0x1ff
call esi
lea eax, [esp + 0x464]
push str.ReleaseLangDLLsLangRsEn.dll
push eax
call fcn.0041bc90
lea ecx, [esp + 0x6c]
push ecx
call fcn.00416c70
add esp, 0xc
test eax, eax
je 0x40bb86
push 0
lea edx, [esp + 0x468]
push edx
lea eax, [esp + 0x6c]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ebx, dword [0x4425b8]
push 0x430518
push str.Debug.txt
mov word [0x442528], ax
movzx esi, ax
call fcn.0041b556
push esi
push esi
push str._int_langUI
push str._s_d__x__n
push eax
mov dword [ebx], eax
call fcn.0041b49c
mov ecx, dword [ebx]
push ecx
call fcn.0041b44b
mov al, byte [0x442528]
mov ecx, dword [0x4425b8]
mov bl, 0x19
add esp, 0x20
cmp al, bl
jne 0x40bbe1
push str.russian
jmp 0x40bbe6
push str.nonrussian
call fcn.004012f0
mov eax, dword [0x442540]
push 0x1ff
lea edx, [esp + 0x868]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x864]
push 0x5c
push ecx
call fcn.0041bfe3
add esp, 8
test eax, eax
je 0x40bc1f
mov word [eax], 0
cmp byte [0x442528], bl
mov eax, str.LangDLLsLangRsRu.dll
je 0x40bc31
mov eax, str.LangDLLsLangRsEn.dll
push eax
lea edx, [esp + 0x868]
push edx
call fcn.0041bc90
add esp, 8
push 2
push 0
lea eax, [esp + 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov ecx, dword [0x4425b8]
mov dword [0x44253c], eax
jne 0x40bc6f
push str.DLL_load_ERROR
call fcn.00401280
jmp 0x40bc79
push str.DLL_load_OK
call fcn.004012f0
mov ecx, dword [0x44253c]
push str.LOOKALF
push ecx
call dword [sym.imp.USER32.dll_LoadMenuW]
test eax, eax
mov ecx, dword [0x4425b8]
mov dword [0x442520], eax
jne 0x40bca6
push str.Menu_load_ERROR
call fcn.00401280
jmp 0x40bcb0
push str.Menu_load_OK
call fcn.004012f0
mov edx, dword [esp + 0xc6c]
mov eax, dword [0x442520]
mov ecx, dword [esp + 0x3c]
push 0
push edx
push eax
mov eax, dword [esp + 0x44]
push 0
sub ebp, ecx
push ebp
sub edi, eax
push edi
push ecx
push eax
mov eax, dword [0x4377c0]
push 0xcf0000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xca
mov dword [0x4425b4], eax
call fcn.00416d90
mov ecx, dword [0x4425b4]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x44253c]
test eax, eax
jne 0x40bd2b
mov edx, dword [0x4425b4]
push 0x1010
push str.Error
push str.Language_Resource_DLL_not_found_in_current_dir
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [esp + 0xc74]
push eax
call fcn.00416d50
mov ecx, dword [0x4425b8]
add esp, 4
mov esi, eax
push esi
call fcn.00401280
test esi, esi
je 0x40bd84
cmp word [esi], 0x22
jne 0x40bd84
add esi, 2
push 0x22
push esi
call fcn.0041bfe3
add esp, 8
test eax, eax
je 0x40bd84
fld qword [0x430e60]
sub esp, 8
fstp qword [esp]
push 0xffffffffffffffff
mov word [eax], 0
mov ecx, dword [0x44254c]
push esi
call fcn.0040c150
mov ecx, dword [0x4425b4]
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 + 0x54]
push edx
mov dword [0x44251c], eax
call esi
test eax, eax
je 0x40bddf
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea esp, [esp]
lea eax, [esp + 0x48]
push eax
call edi
lea ecx, [esp + 0x48]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x54]
push edx
call esi
test eax, eax
jne 0x40bdc0
mov eax, dword [0x442520]
test eax, eax
pop ebp
pop ebx
je 0x40bdf1
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [0x44254c]
test ecx, ecx
mov esi, ecx
je 0x40be0b
call fcn.0040d570
push esi
call fcn.0042921a
add esp, 4
mov eax, dword [0x44253c]
test eax, eax
je 0x40be1b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4425b8]
push eax
call fcn.0042921a
mov ecx, dword [esp + 0xc60]
mov eax, dword [esp + 0x4c]
add esp, 4
pop edi
pop esi
call fcn.0041b2b5
add esp, 0xc58
ret 0x10