Function at 0x4050c0
Capabilities:
Get hostname
Identify system language via api

Disassembly:
sub esp, 0xa0
mov eax, dword [0x42ad20]
xor eax, esp
push esi
mov esi, dword [esp + 0xa8]
push 0x42ca00
mov dword [esp + 0xa4], eax
call fcn.00401e50
add esp, 4
test eax, eax
jne 0x40515a
movzx ecx, word [0x42ca04]
push eax
push eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [0x42bd4c]
mov eax, dword [esp + 4]
push 0x10
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004131be
add esp, 0xa0
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp al, 9
mov word [0x42ca04], ax
je 0x405173
mov word [0x42ca04], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
push ebp
push edi
mov ebp, pe_nt_image_headers32
mov edi, 0x42bd48
push 0x64
lea edx, [esp + 0x4c]
push edx
push ebp
push esi
call ebx
lea eax, [esp + 0x48]
push eax
call fcn.00413999
add esp, 4
mov dword [edi], eax
add edi, 4
inc ebp
cmp edi, 0x42bda0
jle 0x405186
push 0x64
lea ecx, [esp + 0x4c]
push ecx
push 0x66
push esi
call ebx
mov dx, word [0x4244fc]
mov al, byte [0x4244fe]
lea ecx, [esp + 0x14]
mov word [esp + 0x34], dx
push ecx
lea edx, [esp + 0x3a]
push edx
mov dword [esp + 0x1c], 0x10
mov byte [esp + 0x3e], al
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x34]
push eax
call fcn.00413671
lea ecx, [esp + 0x38]
push ecx
call fcn.00413999
mov dword [0x42bde4], eax
lea edx, [esp + 0x3c]
xor eax, eax
mov ecx, 0x40
mov edi, 0x42bc48
push edx
rep stosd dword es:[edi], eax
call fcn.00413999
mov dword [0x42bc48], eax
lea eax, [esp + 0x54]
push eax
mov dword [0x42bc4c], 0x80000002
call fcn.00413999
add esp, 0x10
push 0x64
lea ecx, [esp + 0x4c]
push ecx
push 0x67
push esi
mov dword [0x42bc30], eax
call ebx
lea edx, [esp + 0x48]
push edx
call fcn.00413999
mov ecx, dword [0x42bc30]
add esp, 4
push ecx
push eax
mov dword [0x42bdb0], eax
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
call fcn.00413bbd
mov eax, dword [0x42dd9c]
cmp eax, 2
jne 0x40529e
mov edx, dword [0x42dda0]
mov eax, dword [edx + 4]
push str.__kill
push eax
call fcn.004135dd
add esp, 8
test eax, eax
jne 0x405299
call fcn.00404970
jmp 0x405553
mov eax, dword [0x42dd9c]
cmp eax, 4
mov ebp, 3
jne 0x4052f2
cmp dword [0x42ca00], ebp
jb 0x4052d4
mov eax, dword [0x42dda0]
mov ecx, dword [eax + 4]
push ecx
call fcn.00413a4c
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x4052de
cmp ebx, 0x80
je 0x4052de
cmp ebx, 1
je 0x4052de
mov eax, 1
jmp 0x405553
test edi, edi
je 0x405372
mov eax, edi
call fcn.004048b0
jmp 0x405372
cmp eax, 1
jne 0x4052d4
test edi, edi
je 0x40536e
mov eax, dword [0x42bd48]
test eax, eax
mov dword [esp + 0x10], 0
je 0x405323
mov edx, dword [0x42bd4c]
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x405551
movzx ecx, word [0x42ca04]
push 0
push 0
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [0x42bd4c]
mov eax, dword [esp + 0x10]
push 0x30
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x405551
mov ebx, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push 0
push 0x10
push 0x10
push 1
push 0x6b
push esi
call edi
push 0
push 0x10
push 0x10
push 1
push 0x6c
push esi
mov dword [0x42bc28], eax
call edi
push 0x8000
push 0x40
push 0x40
push 2
push 0x7f02
push 0
mov dword [0x42bc34], eax
call edi
push 0x8000
push 0x40
push 0x40
push 2
push 0x7f00
push 0
mov dword [0x42bc3c], eax
call edi
push 0
push 0x10
push 0x10
push 0
push 0x70
push esi
mov dword [0x42bdd8], eax
call edi
push 0
push 0x10
push 0x10
push 0
push 0x6f
push esi
mov dword [0x42bc2c], eax
call edi
mov dword [0x42bdd4], eax
xor eax, eax
mov ecx, 0x300
mov edi, 0x42bdf8
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push esi
mov dword [0x42ca10], esi
call fcn.00404a20
add esp, 4
push str.TaskbarCreated
mov dword [0x42bdd0], eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x6a0
mov dword [0x42c9f8], eax
call fcn.00412070
add esp, 4
test eax, eax
je 0x40544b
mov ecx, eax
call fcn.00404f70
jmp 0x40544d
xor eax, eax
push 0x42bdb8
mov dword [0x42ca1c], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x42bdd0]
test eax, eax
mov dword [0x42bc38], 0
je 0x4054e5
cmp dword [0x42dd9c], 4
jne 0x405499
cmp dword [0x42ca00], ebp
jb 0x405499
mov eax, dword [0x42dda0]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push ebx
push edx
push 0
push eax
call fcn.004029a0
add esp, 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
cmp eax, 1
jne 0x4054e0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ecx]
lea edx, [esp + 0x18]
push edx
call edi
lea eax, [esp + 0x18]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
cmp eax, 1
je 0x4054c0
call fcn.00401a90
call fcn.00401b10
push 0x42bdb8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [0x42bc28]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
push edx
call esi
mov eax, dword [0x42bc34]
push eax
call esi
mov ecx, dword [0x42bc3c]
mov esi, dword [sym.imp.USER32.dll_DestroyCursor]
push ecx
call esi
mov edx, dword [0x42bdd8]
push edx
call esi
mov eax, dword [0x42bc2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
mov ecx, dword [0x42bdd4]
push ecx
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [0x42ca1c]
test ecx, ecx
je 0x405551
mov edx, dword [ecx]
push 1
call dword [edx]
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.004131be
add esp, 0xa0
ret 0x10