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

Disassembly:
sub esp, 0xc58
mov eax, dword [0x436ebc]
push esi
xor esi, esi
push esi
push 0x40ac80
mov dword [esp + 0xc60], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x4405b0], esi
je 0x40adf1
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc54]
call fcn.00419ef4
add esp, 0xc58
ret 0x10
push edi
mov dword [esp + 0x48], esi
call fcn.0040ace0
mov edi, dword [esp + 0xc64]
mov eax, dword [0x4367c0]
push 0x7f00
push esi
mov dword [0x440540], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0x4099e0
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 0x40ae89
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc54]
call fcn.00419ef4
add esp, 0xc58
ret 0x10
push 0x304
call fcn.00427e36
add esp, 4
cmp eax, esi
je 0x40aea3
mov ecx, eax
call fcn.00409960
jmp 0x40aea5
xor eax, eax
push 0x4da0
mov dword [0x4405b8], eax
call fcn.00427e36
add esp, 4
cmp eax, esi
je 0x40aed9
mov edx, dword [esp + 0xc6c]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x40aec5
sub edx, esi
push edx
push edi
mov ecx, eax
call fcn.0040d160
jmp 0x40aedb
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [0x44054c], 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.0041a7b0
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.0041a7b0
lea eax, [esp + 0x6c]
push eax
call fcn.004158b0
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0xc
test eax, eax
je 0x40af65
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.0041a7b0
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.0041a7b0
lea ecx, [esp + 0x6c]
push ecx
call fcn.004158b0
add esp, 0xc
test eax, eax
je 0x40afc6
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 [0x4405b8]
push 0x42f4dc
push str.Debug.txt
mov word [0x440528], ax
movzx esi, ax
call fcn.0041a059
push esi
push esi
push str._int_langUI
push str._s_d__x__n
push eax
mov dword [ebx], eax
call fcn.00419f9f
mov ecx, dword [ebx]
push ecx
call fcn.00419f4e
mov al, byte [0x440528]
mov ecx, dword [0x4405b8]
mov bl, 0x19
add esp, 0x20
cmp al, bl
jne 0x40b021
push str.russian
jmp 0x40b026
push str.nonrussian
call fcn.00401070
mov eax, dword [0x440540]
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.0041ac29
add esp, 8
test eax, eax
je 0x40b05f
mov word [eax], 0
cmp byte [0x440528], bl
mov eax, str.LangDLLsLangRsRu.dll
je 0x40b071
mov eax, str.LangDLLsLangRsEn.dll
push eax
lea edx, [esp + 0x868]
push edx
call fcn.0041a7b0
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 [0x4405b8]
mov dword [0x44053c], eax
jne 0x40b0af
push str.DLL_load_ERROR
call fcn.00401000
jmp 0x40b0b9
push str.DLL_load_OK
call fcn.00401070
mov ecx, dword [0x44053c]
push str.LOOKALF
push ecx
call dword [sym.imp.USER32.dll_LoadMenuW]
test eax, eax
mov ecx, dword [0x4405b8]
mov dword [0x440520], eax
jne 0x40b0e6
push str.Menu_load_ERROR
call fcn.00401000
jmp 0x40b0f0
push str.Menu_load_OK
call fcn.00401070
mov edx, dword [esp + 0xc6c]
mov eax, dword [0x440520]
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 [0x4367c0]
push 0xcf0000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xca
mov dword [0x4405b4], eax
call fcn.004159d0
mov ecx, dword [0x4405b4]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x44053c]
test eax, eax
jne 0x40b16b
mov edx, dword [0x4405b4]
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.00415990
mov ecx, dword [0x4405b8]
add esp, 4
mov esi, eax
push esi
call fcn.00401000
test esi, esi
je 0x40b1c4
cmp word [esi], 0x22
jne 0x40b1c4
add esi, 2
push 0x22
push esi
call fcn.0041ac29
add esp, 8
test eax, eax
je 0x40b1c4
fld qword [0x42fdc8]
sub esp, 8
fstp qword [esp]
push 0xffffffffffffffff
mov word [eax], 0
mov ecx, dword [0x44054c]
push esi
call fcn.0040b590
mov ecx, dword [0x4405b4]
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 [0x44051c], eax
call esi
test eax, eax
je 0x40b21f
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 0x40b200
mov eax, dword [0x440520]
test eax, eax
pop ebp
pop ebx
je 0x40b231
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [0x44054c]
test ecx, ecx
mov esi, ecx
je 0x40b24b
call fcn.0040c840
push esi
call fcn.00427e66
add esp, 4
mov eax, dword [0x44053c]
test eax, eax
je 0x40b25b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4405b8]
push eax
call fcn.00427e66
mov ecx, dword [esp + 0xc60]
mov eax, dword [esp + 0x4c]
add esp, 4
pop edi
pop esi
call fcn.00419ef4
add esp, 0xc58
ret 0x10