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

Disassembly:
sub esp, 0xc5c
mov eax, dword [0x42ea5c]
push ebx
xor ebx, ebx
push ebx
push 0x4062f0
mov dword [esp + 0xc64], eax
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x42f9dc], ebx
je 0x4071b1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc58]
call fcn.00412538
add esp, 0xc5c
ret 0x10
push edi
mov dword [esp + 0x4c], ebx
call fcn.00406350
mov edi, dword [esp + 0xc68]
mov eax, dword [0x42e360]
push 0x7f00
push ebx
mov dword [0x42f96c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], 0x406490
mov dword [esp + 0x14], 3
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], str.LOOKALF
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x407249
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc58]
call fcn.00412538
add esp, 0xc5c
ret 0x10
push 0x304
call fcn.004204a4
add esp, 4
cmp eax, ebx
je 0x407263
mov ecx, eax
call fcn.00405f70
jmp 0x407265
xor eax, eax
push esi
push 0xe68
mov dword [0x42f9e4], eax
call fcn.004204a4
add esp, 4
cmp eax, ebx
je 0x40729a
mov edx, dword [esp + 0xc74]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x407286
sub edx, esi
push edx
push edi
mov ecx, eax
call fcn.00408c20
jmp 0x40729c
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [0x42f978], eax
add eax, 0x3c
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov edi, dword [eax + 8]
push ebp
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
lea edx, [esp + 0x68]
push edx
push 0x1ff
mov dword [esp + 0x48], ecx
call esi
lea eax, [esp + 0x68]
push str.LangRsRuReleaseLangRsRu.dll
push eax
call fcn.00412e34
add esp, 8
lea ecx, [esp + 0x468]
push ecx
push 0x1ff
call esi
lea edx, [esp + 0x468]
push str.ReleaseLangDLLsLangRsRu.dll
push edx
call fcn.00412e34
lea eax, [esp + 0x70]
push 0x4279f4
push eax
call fcn.004131b2
add esp, 0x10
cmp eax, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
je 0x407333
push eax
call fcn.00412592
add esp, 4
push 0
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x70]
push edx
call ebx
lea eax, [esp + 0x68]
push eax
push 0x1ff
call esi
lea ecx, [esp + 0x68]
push str.LangRsEnReleaseLangRsEn.dll
push ecx
call fcn.00412e34
add esp, 8
lea edx, [esp + 0x468]
push edx
push 0x1ff
call esi
lea eax, [esp + 0x468]
push str.ReleaseLangDLLsLangRsEn.dll
push eax
call fcn.00412e34
lea ecx, [esp + 0x70]
push 0x4279f4
push ecx
call fcn.004131b2
add esp, 0x10
test eax, eax
je 0x4073a2
push eax
call fcn.00412592
add esp, 4
push 0
lea edx, [esp + 0x46c]
push edx
lea eax, [esp + 0x70]
push eax
call ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, dword [0x42f9e4]
push 0x4274ac
push str.Debug.txt
mov dword [esp + 0x18], ecx
mov esi, eax
movzx ebx, si
call fcn.0041269d
mov edx, dword [esp + 0x18]
push ebx
push ebx
push str._int_lang
push str._s_d__x__n
push eax
mov dword [edx], eax
call fcn.004125e3
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
push ecx
call fcn.00412592
mov ecx, dword [0x42f9e4]
and esi, 0xff
add esp, 0x20
cmp si, 0x19
jne 0x407406
push str.russian
jmp 0x40740b
push str.nonrussian
call fcn.00401070
mov eax, dword [0x42f96c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1ff
lea edx, [esp + 0x86c]
push edx
push eax
call ebx
mov edx, dword [0x42f96c]
push 0x1ff
lea ecx, [esp + 0x86c]
push ecx
push edx
call ebx
lea eax, [esp + 0x868]
push 0x5c
push eax
call fcn.00412f59
add esp, 8
test eax, eax
je 0x40745c
mov word [eax], 0
cmp si, 0x19
mov eax, str.LangDLLsLangRsRu.dll
je 0x40746c
mov eax, str.LangDLLsLangRsEn.dll
push eax
lea ecx, [esp + 0x86c]
push ecx
call fcn.00412e34
add esp, 8
push 2
push 0
lea edx, [esp + 0x870]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov ecx, dword [0x42f9e4]
mov dword [0x42f968], eax
jne 0x4074aa
push str.DLL_load_ERROR
call fcn.00401000
jmp 0x4074b4
push str.DLL_load_OK
call fcn.00401070
mov eax, dword [0x42f968]
push str.LOOKALF
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
mov ecx, dword [0x42f9e4]
mov ebx, eax
test ebx, ebx
jne 0x4074dd
push str.Menu_load_ERROR
call fcn.00401000
jmp 0x4074e7
push str.Menu_load_OK
call fcn.00401070
mov ecx, dword [esp + 0xc70]
mov eax, dword [esp + 0x3c]
push 0
push ecx
mov ecx, dword [esp + 0x48]
push ebx
push 0
sub ebp, ecx
push ebp
sub edi, eax
push edi
push ecx
push eax
mov eax, dword [0x42e360]
push 0xcf0000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xca
mov dword [0x42f9e0], eax
call fcn.004060c0
mov edx, dword [0x42f9e0]
add esp, 4
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x42f968]
test eax, eax
jne 0x40755c
mov eax, dword [0x42f9e0]
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 + 0xc78]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407568
sub eax, esi
inc eax
push eax
push 0x42fbe8
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [0x42f9e4]
push 0x42fbe8
call fcn.00401000
cmp word [0x42fbe8], 0x22
jne 0x4075d5
push 0x22
push 0x42fbea
call fcn.00412f59
add esp, 8
test eax, eax
je 0x4075d5
fld qword [0x427b98]
sub esp, 8
fstp qword [esp]
push 0xffffffffffffffff
mov word [eax], 0
mov ecx, dword [0x42f978]
push 0x42fbea
call fcn.00407990
mov ecx, dword [0x42f9e0]
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 + 0x58]
push edx
mov dword [0x42f950], eax
call esi
test eax, eax
je 0x40762f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ebx, [ebx]
lea eax, [esp + 0x4c]
push eax
call edi
lea ecx, [esp + 0x4c]
push ecx
call ebp
push 0
push 0
push 0
lea edx, [esp + 0x58]
push edx
call esi
test eax, eax
jne 0x407610
test ebx, ebx
pop ebp
je 0x40763b
push ebx
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [0x42f968]
test eax, eax
je 0x40764b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [0x42f978]
test ecx, ecx
mov esi, ecx
je 0x407665
call fcn.004083b0
push esi
call fcn.004204cf
add esp, 4
mov eax, dword [0x42f9e4]
push eax
call fcn.004204cf
mov ecx, dword [esp + 0xc68]
mov eax, dword [esp + 0x54]
add esp, 4
pop esi
pop edi
pop ebx
call fcn.00412538
add esp, 0xc5c
ret 0x10