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

Disassembly:
sub esp, 0xc60
mov eax, dword [0x449238]
xor eax, esp
mov dword [esp + 0xc5c], eax
push ebx
push esi
mov esi, dword [esp + 0xc74]
push edi
mov edi, dword [esp + 0xc70]
xor ebx, ebx
push ebx
push 0x40b710
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], esi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x454170], ebx
je 0x40b89a
xor eax, eax
jmp 0x40bd71
mov dword [esp + 0x54], ebx
call fcn.0040b780
mov eax, dword [0x448740]
push 0x7f00
push ebx
mov dword [0x454100], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], 0x40a120
mov dword [esp + 0x2c], 3
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], str.LOOKALF
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x40b893
push 0x304
call fcn.0041a184
add esp, 4
cmp eax, ebx
je 0x40b92b
mov ecx, eax
call fcn.0040a090
jmp 0x40b92d
xor eax, eax
push 0x50a0
mov dword [0x454178], eax
call fcn.0041a184
mov ecx, eax
add esp, 4
cmp ecx, ebx
je 0x40b964
mov edx, esi
lea esi, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
add edx, 1
test al, al
jne 0x40b950
sub edx, esi
push edx
push edi
call fcn.0040dee0
jmp 0x40b966
xor eax, eax
mov dword [0x45410c], eax
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x40]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x14], edx
mov edx, dword [eax + 0x48]
mov eax, dword [eax + 0x4c]
push ecx
push 0x1ff
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
call ebp
lea edi, [esp + 0x6c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40b9a1
mov ecx, 0xf
mov esi, str.LangRsRuReleaseLangRsRu.dll
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x46c]
push edx
push 0x1ff
movsw word es:[edi], word [esi]
call ebp
lea edi, [esp + 0x46c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x40b9d4
mov ecx, 0xf
mov esi, str.ReleaseLangDLLsLangRsRu.dll
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x6c]
push eax
movsw word es:[edi], word [esi]
call fcn.00416e20
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 4
test eax, eax
je 0x40ba16
push 0
lea ecx, [esp + 0x470]
push ecx
lea edx, [esp + 0x74]
push edx
call ebx
lea eax, [esp + 0x6c]
push eax
push 0x1ff
call ebp
lea edi, [esp + 0x6c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ba30
mov ecx, 0xf
mov esi, str.LangRsEnReleaseLangRsEn.dll
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x46c]
push ecx
push 0x1ff
movsw word es:[edi], word [esi]
call ebp
lea edi, [esp + 0x46c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40ba63
mov ecx, 0xf
mov esi, str.ReleaseLangDLLsLangRsEn.dll
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x6c]
push edx
movsw word es:[edi], word [esi]
call fcn.00416e20
add esp, 4
test eax, eax
je 0x40ba9f
push 0
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x74]
push ecx
call ebx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [0x454178]
push 0x43d5b8
push str.Debug.txt
mov word [0x4540e8], ax
movzx esi, ax
call fcn.004236af
push esi
push esi
push str._int_langUI
push str._s_d__x__n
push eax
mov dword [edi], eax
call fcn.0042349c
mov edx, dword [edi]
push edx
call fcn.00423420
mov ecx, dword [0x454178]
mov bl, 0x19
add esp, 0x20
cmp byte [0x4540e8], bl
jne 0x40baf9
push str.russian
jmp 0x40bafe
push str.nonrussian
call fcn.00401320
mov ecx, dword [0x454100]
push 0x1ff
lea eax, [esp + 0x870]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x86c]
push 0x5c
push edx
call fcn.00423fab
add esp, 8
test eax, eax
je 0x40bb38
mov word [eax], 0
cmp byte [0x4540e8], bl
mov eax, str.LangDLLsLangRsRu.dll
je 0x40bb4a
mov eax, str.LangDLLsLangRsEn.dll
mov edx, eax
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bb50
lea edi, [esp + 0x86c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40bb70
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40bb70
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 2
mov ecx, eax
push 0
lea eax, [esp + 0x874]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov ecx, dword [0x454178]
mov dword [0x4540fc], eax
jne 0x40bbb9
push str.DLL_load_ERROR
call fcn.00401290
jmp 0x40bbc3
push str.DLL_load_OK
call fcn.00401320
mov ecx, dword [0x4540fc]
push str.LOOKALF
push ecx
call dword [sym.imp.USER32.dll_LoadMenuW]
test eax, eax
mov ecx, dword [0x454178]
mov dword [0x4540e0], eax
jne 0x40bbf0
push str.Menu_load_ERROR
call fcn.00401290
jmp 0x40bbfa
push str.Menu_load_OK
call fcn.00401320
mov edx, dword [esp + 0x24]
mov eax, dword [0x4540e0]
mov ecx, dword [esp + 0x14]
push 0
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push 0
sub eax, edx
push eax
mov eax, dword [esp + 0x30]
sub eax, ecx
push eax
mov eax, dword [0x448740]
push edx
push ecx
push 0xcf0000
push eax
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0xca
mov dword [0x454174], eax
call fcn.00416f80
mov ecx, dword [0x454174]
add esp, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [0x4540fc], 0
jne 0x40bc7a
mov edx, dword [0x454174]
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 + 0x10]
push eax
call fcn.00416f40
mov ecx, dword [0x454178]
add esp, 4
mov esi, eax
push esi
call fcn.00401290
test esi, esi
je 0x40bcd0
cmp word [esi], 0x22
jne 0x40bcd0
add esi, 2
push 0x22
push esi
call fcn.00423fab
add esp, 8
test eax, eax
je 0x40bcd0
fld qword [0x43df60]
sub esp, 8
fstp qword [esp]
push 0xffffffffffffffff
mov word [eax], 0
mov ecx, dword [0x45410c]
push esi
call fcn.0040c080
mov ecx, dword [0x454174]
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 + 0x5c]
push edx
mov dword [0x4540dc], eax
call esi
test eax, eax
je 0x40bd24
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x50]
push eax
call edi
lea ecx, [esp + 0x50]
push ecx
call ebp
push 0
push 0
push 0
lea edx, [esp + 0x5c]
push edx
call esi
test eax, eax
jne 0x40bd05
mov eax, dword [0x4540e0]
test eax, eax
pop ebp
je 0x40bd35
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov ecx, dword [0x45410c]
test ecx, ecx
mov esi, ecx
je 0x40bd4f
call fcn.0040d560
push esi
call fcn.0041a1af
add esp, 4
mov eax, dword [0x4540fc]
test eax, eax
je 0x40bd5f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x454178]
push eax
call fcn.0041a1af
mov eax, dword [esp + 0x58]
add esp, 4
mov ecx, dword [esp + 0xc68]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423284
add esp, 0xc60
ret 0x10