Function at 0x404260
Capabilities:
Accept command line arguments
Check mutex on windows
Check os version
Create directory
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Set current directory
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, 0x1228
call fcn.004270d0
mov eax, dword [0x450eac]
xor eax, esp
mov dword [esp + 0x1224], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esp + 0xe14]
push edi
push 0x208
push 0
push eax
mov byte [esp + 0x1f], 0
call fcn.004288f0
add esp, 0xc
mov dword [esp + 0xa4], 0
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
mov edi, eax
cmp dword [esp + 0xa4], esi
jbe 0x404323
nop word [eax + eax]
push str._noregister
push dword [edi + esi*4]
call fcn.0042dabf
add esp, 8
test eax, eax
jne 0x4042eb
mov byte [esp + 0x13], 1
jmp 0x404319
push str._path
push dword [edi + esi*4]
call fcn.0042dabf
add esp, 8
test eax, eax
jne 0x404319
push dword [edi + esi*4 + 4]
inc esi
lea eax, [esp + 0xe1c]
push 0x104
push eax
call fcn.0042dc34
add esp, 0xc
inc esi
cmp esi, dword [esp + 0xa4]
jb 0x4042d0
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x208
lea eax, [esp + 0x4f4]
push 0
push eax
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0x4f0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x1c8
lea eax, [esp + 0xc54]
push 0
push eax
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0xc10]
push 0x40
push 0
push eax
call fcn.004288f0
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xac]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x404411
movzx eax, byte [esp + 0xbb]
push eax
movzx eax, byte [esp + 0xbe]
push eax
movzx eax, byte [esp + 0xc1]
push eax
movzx eax, byte [esp + 0xc4]
push eax
movzx eax, byte [esp + 0xc7]
push eax
movzx eax, byte [esp + 0xca]
push eax
movzx eax, byte [esp + 0xcd]
push eax
movzx eax, byte [esp + 0xd0]
push eax
movzx eax, word [esp + 0xd2]
push eax
movzx eax, word [esp + 0xd4]
push eax
push dword [esp + 0xd4]
lea eax, [esp + 0xc3c]
push 0x44d6c0
push 0x40
push eax
call fcn.00401010
add esp, 0x38
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esp + 0xc10]
push eax
lea eax, [esp + 0x4f4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [esp + 0x4f4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0x4f0]
push eax
call esi
xorps xmm0, xmm0
mov dword [esp + 0xd4], 0
lea ecx, [esp + 0xcc]
movq qword [esp + 0xcc], xmm0
call fcn.00403d30
mov eax, dword [esp + 0xcc]
or edx, 0xffffffff
test eax, eax
je 0x405be7
mov ecx, dword [eax]
test ecx, ecx
jne 0x40448c
xor al, al
jmp 0x404498
cmp ecx, 5
jne 0x404496
mov al, byte [eax + 8]
jmp 0x404498
mov al, 1
test al, al
je 0x405be7
push 0x44d74c
lea eax, [esp + 0xc4]
mov dword [esp + 0xac], 0
xorps xmm0, xmm0
mov dword [esp + 0xcc], 0
push eax
lea ecx, [esp + 0xd4]
movq qword [esp + 0xc8], xmm0
call fcn.00406260
mov ecx, dword [esp + 0xc0]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
test ecx, ecx
je 0x404ed5
mov eax, dword [ecx]
dec eax
cmp eax, 6
ja case.default.0x4044f8
jmp dword [eax*4 + 0x405c38]
mov eax, 1
jmp 0x40452b
mov eax, dword [ecx + 8]
mov eax, dword [eax + 4]
jmp 0x40452b
mov eax, dword [ecx + 8]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x40452b
xor eax, eax
xor esi, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xa4], esi
test eax, eax
jne 0x4045eb
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esp + 0x13], 0
je 0x4053d3
lea eax, [esp + 0xe18]
push eax
call esi
xor esi, esi
mov dword [esp + 0xa4], esi
test edi, edi
je 0x4052ac
nop
push 0x208
lea eax, [esp + 0x6fc]
push 0
push eax
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0x4f0]
push eax
lea eax, [esp + 0x6fc]
push 0x104
push eax
call fcn.0042dc34
add esp, 0xc
lea eax, [esp + 0xac]
lea ecx, [esp + 0xc0]
push 0x44d75c
push eax
push esi
lea eax, [esp + 0x54]
push eax
call fcn.004061b0
mov ecx, eax
call fcn.00406260
mov esi, dword [eax]
test esi, esi
je 0x404ef7
cmp dword [esi], 4
jne 0x404ee0
mov esi, dword [esi + 8]
jmp 0x404ee5
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x1c8
lea eax, [esp + 0x32c]
push 0
push eax
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0x2e8]
push 0x40
push 0
push eax
call fcn.004288f0
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xd8]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4046ac
movzx eax, byte [esp + 0xe7]
push eax
movzx eax, byte [esp + 0xea]
push eax
movzx eax, byte [esp + 0xed]
push eax
movzx eax, byte [esp + 0xf0]
push eax
movzx eax, byte [esp + 0xf3]
push eax
movzx eax, byte [esp + 0xf6]
push eax
movzx eax, byte [esp + 0xf9]
push eax
movzx eax, byte [esp + 0xfc]
push eax
movzx eax, word [esp + 0xfe]
push eax
movzx eax, word [esp + 0x100]
push eax
push dword [esp + 0x100]
lea eax, [esp + 0x314]
push 0x44d6c0
push 0x40
push eax
call fcn.00401010
add esp, 0x38
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x44d754
lea eax, [esp + 0x64]
push eax
push esi
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0xd0]
call fcn.004061b0
mov ecx, eax
call fcn.00406260
mov esi, dword [eax]
test esi, esi
je 0x404757
mov eax, dword [esi]
cmp eax, 5
jne 0x4046f0
xor eax, eax
cmp byte [esi + 8], al
setne al
jmp 0x404759
cmp eax, 2
jne 0x4046fa
mov eax, dword [esi + 8]
jmp 0x404759
cmp eax, 1
jne 0x404704
mov eax, dword [esi + 8]
jmp 0x404759
cmp eax, 3
jne 0x404715
movsd xmm0, qword [esi + 8]
call fcn.0043f4d5
jmp 0x404759
cmp eax, 4
jne 0x404757
push 0x2e
push dword [esi + 8]
call fcn.00428240
mov ecx, dword [esi + 8]
add esp, 8
test eax, eax
je 0x404748
push ecx
call fcn.00431dc5
add esp, 4
fstp qword [esp + 0x18]
movsd xmm0, qword [esp + 0x18]
call fcn.0043f4d5
jmp 0x404759
push 0
push 0
push ecx
call fcn.0042e9e5
add esp, 0xc
jmp 0x404759
xor eax, eax
push 0x44d6ac
movzx esi, ax
push esi
push 0
call edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4047ed
push 0x44d6ac
push esi
push 0
call edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x4047ed
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4047ed
push 0
lea eax, [esp + 0x104]
mov dword [esp + 0x104], 0
push eax
push edi
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 8], 0
jmp 0x4047f5
mov dword [esp + 8], 1
mov esi, dword [esp + 0x68]
or edi, 0xffffffff
test esi, esi
je 0x40481f
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40481f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40481f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0x74]
test esi, esi
je 0x404846
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404846
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404846
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [esp + 8], 0
jne 0x405b9c
xor edi, edi
lea ecx, [esp + 0x2e8]
mov dword [esp + 8], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404861
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
mov esi, eax
lea ecx, [esp + 0x2ec]
add esp, 4
mov dword [esp + 0xc], esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4048a0
sub ecx, edx
lea eax, [esp + 0x2e8]
sar ecx, 1
push eax
lea eax, [ecx + 1]
push eax
push esi
call fcn.0042dc34
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40490b
lea esi, [eax + 1]
push esi
call fcn.00427083
add esp, 4
mov edi, eax
mov dword [esp + 8], edi
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 4
test edi, edi
jne 0x40493e
push 1
call fcn.00427083
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov byte [eax], 0
jmp 0x404987
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404943
sub ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ecx
lea esi, [ecx + 1]
push esi
call fcn.00427083
add esp, 4
mov edi, eax
mov dword [esp + 0x28], edi
push esi
push 0
push edi
call fcn.004288f0
add esp, 0xc
push dword [esp + 0x18]
push dword [esp + 0xc]
push edi
call fcn.00428370
mov edi, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x44d754
lea eax, [esp + 0x80]
push eax
push dword [esp + 0xb0]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xd4]
call fcn.004061b0
mov ecx, eax
call fcn.00406260
mov ecx, eax
call fcn.00406490
mov esi, dword [esp + 0x80]
test esi, esi
je 0x4049ee
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x4049ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x4049ee
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x404a1a
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x404a1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x404a1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x20]
sub eax, 4
je 0x404a74
sub eax, 2
je 0x404a58
sub eax, 1
jne 0x404a80
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404a80
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.004076c0
push 0x40
push dword [esi]
call fcn.00427075
push 8
push esi
call fcn.00427075
add esp, 0x10
jmp 0x404a80
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404a80
mov ecx, esi
call fcn.00406a00
push 0xc
push esi
call fcn.00427075
add esp, 8
jmp 0x404a80
push dword [esp + 0x28]
call fcn.00427040
add esp, 4
test edi, edi
je 0x404a8d
push edi
call fcn.00427040
add esp, 4
push dword [esp + 0xc]
call fcn.00427040
add esp, 4
lea eax, [esp + 0x2e8]
push 0x40
push 0
push eax
call fcn.004288f0
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x404b43
movzx eax, byte [esp + 0x9f]
push eax
movzx eax, byte [esp + 0xa2]
push eax
movzx eax, byte [esp + 0xa5]
push eax
movzx eax, byte [esp + 0xa8]
push eax
movzx eax, byte [esp + 0xab]
push eax
movzx eax, byte [esp + 0xae]
push eax
movzx eax, byte [esp + 0xb1]
push eax
movzx eax, byte [esp + 0xb4]
push eax
movzx eax, word [esp + 0xb6]
push eax
movzx eax, word [esp + 0xb8]
push eax
push dword [esp + 0xb8]
lea eax, [esp + 0x314]
push 0x44d6c0
push 0x40
push eax
call fcn.00401010
add esp, 0x38
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x44d75c
lea eax, [esp + 0x58]
push eax
push dword [esp + 0xac]
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xd0]
call fcn.004061b0
mov ecx, eax
call fcn.00406260
mov ecx, eax
call fcn.004063f0
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x44d6ac
movzx esi, ax
push esi
push 0
call edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x404c13
push 0x44d6ac
push esi
push 0
call edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x404c13
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x300]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404c13
push 0
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0
push eax
push edi
push dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 8], 0
jmp 0x404c1b
mov dword [esp + 8], 1
mov esi, dword [esp + 0x5c]
or edi, 0xffffffff
test esi, esi
je 0x404c45
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404c45
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404c45
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0x44]
test esi, esi
je 0x404c6c
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404c6c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404c6c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp byte [esp + 8], 0
jne 0x405b9c
xor edi, edi
lea ecx, [esp + 0x2e8]
mov dword [esp + 8], edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404c87
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
mov esi, eax
lea ecx, [esp + 0x2ec]
add esp, 4
mov dword [esp + 0xc], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404cc2
sub ecx, edx
lea eax, [esp + 0x2e8]
sar ecx, 1
push eax
lea eax, [ecx + 1]
push eax
push esi
call fcn.0042dc34
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x404d2d
lea esi, [eax + 1]
push esi
call fcn.00427083
add esp, 4
mov edi, eax
mov dword [esp + 8], edi
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 4
test edi, edi
jne 0x404d60
push 1
call fcn.00427083
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edi
mov byte [eax], 0
jmp 0x404da9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404d65
sub ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], ecx
lea esi, [ecx + 1]
push esi
call fcn.00427083
add esp, 4
mov edi, eax
mov dword [esp + 0x28], edi
push esi
push 0
push edi
call fcn.004288f0
add esp, 0xc
push dword [esp + 0x18]
push dword [esp + 0xc]
push edi
call fcn.00428370
mov edi, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0x44d75c
lea eax, [esp + 0x50]
push eax
push dword [esp + 0xb0]
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0xd4]
call fcn.004061b0
mov ecx, eax
call fcn.00406260
mov ecx, eax
call fcn.00406490
mov esi, dword [esp + 0x50]
test esi, esi
je 0x404e0a
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x404e0a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x404e0a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0xb4]
test esi, esi
je 0x404e36
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x404e36
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x404e36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [esp + 0x20]
sub eax, 4
je 0x404e90
sub eax, 2
je 0x404e74
sub eax, 1
jne 0x404e9c
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404e9c
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.004076c0
push 0x40
push dword [esi]
call fcn.00427075
push 8
push esi
call fcn.00427075
add esp, 0x10
jmp 0x404e9c
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404e9c
mov ecx, esi
call fcn.00406a00
push 0xc
push esi
call fcn.00427075
add esp, 8
jmp 0x404e9c
push dword [esp + 0x28]
call fcn.00427040
add esp, 4
test edi, edi
je 0x404ea9
push edi
call fcn.00427040
add esp, 4
push dword [esp + 0xc]
call fcn.00427040
mov esi, dword [esp + 0xa8]
add esp, 4
mov edi, dword [esp + 0x14]
inc esi
mov dword [esp + 0xa4], esi
cmp esi, edi
jb 0x4045e5
jmp 0x404542
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x404548
mov esi, 0x44d66f
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
test esi, esi
je 0x404f88
jmp 0x404efc
mov esi, 0x44d66f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404f01
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00427083
mov ecx, esi
mov edi, eax
add esp, 4
mov dword [esp + 8], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404f21
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
push edi
call fcn.0042ea3d
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
test eax, eax
je 0x404f88
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
add esp, 4
mov edi, eax
mov eax, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea eax, [esp + 0x6fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esp + 8]
test eax, eax
je 0x404fa8
push eax
call fcn.00427040
add esp, 4
test edi, edi
je 0x404fb5
push edi
call fcn.00427040
add esp, 4
mov esi, dword [esp + 0xb4]
or edi, 0xffffffff
test esi, esi
je 0x404fe2
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x404fe2
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x404fe2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0x50]
test esi, esi
je 0x405009
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x405009
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x405009
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x6f8]
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405015
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
mov esi, eax
lea ecx, [esp + 0x6fc]
add esp, 4
mov dword [esp + 0xc], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405050
sub ecx, edx
lea eax, [esp + 0x6f8]
sar ecx, 1
push eax
lea eax, [ecx + 1]
push eax
push esi
call fcn.0042dc34
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x4050b7
lea esi, [eax + 1]
push esi
call fcn.00427083
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push dword [esp + 0x20]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.00408014
mov esi, eax
add esp, 4
test esi, esi
je 0x4050e4
mov ecx, esi
call fcn.00404010
push esi
mov dword [esp + 0xa4], eax
call fcn.00408100
mov esi, dword [esp + 0xa4]
add esp, 4
test edi, edi
je 0x4050f1
push edi
call fcn.00427040
add esp, 4
push dword [esp + 0xc]
call fcn.00427040
add esp, 4
test esi, esi
je 0x4053c9
lea eax, [esp + 0x6f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x6f8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x44d754
lea eax, [esp + 0x40]
push eax
push dword [esp + 0xac]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xd0]
call fcn.004061b0
mov ecx, eax
call fcn.00406260
mov esi, dword [eax]
test esi, esi
je 0x405171
cmp dword [esi], 4
jne 0x40515a
mov esi, dword [esi + 8]
jmp 0x40515f
mov esi, 0x44d66f
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
test esi, esi
je 0x405207
jmp 0x405176
mov esi, 0x44d66f
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405180
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00427083
mov ecx, esi
mov edi, eax
add esp, 4
mov dword [esp + 8], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4051a0
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
push edi
call fcn.0042ea3d
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
test eax, eax
je 0x405207
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
add esp, 4
mov edi, eax
mov eax, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea eax, [esp + 0x6fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [esp + 8]
test eax, eax
je 0x405227
push eax
call fcn.00427040
add esp, 4
test edi, edi
je 0x405234
push edi
call fcn.00427040
add esp, 4
mov esi, dword [esp + 0x44]
or edi, 0xffffffff
test esi, esi
je 0x40525e
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40525e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40525e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x405285
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x405285
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x405285
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x6f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0xa4]
inc esi
mov dword [esp + 0xa4], esi
cmp esi, dword [esp + 0x14]
jb 0x404570
push 0x104
lea eax, [esp + 0x154]
push 0
push eax
call fcn.004288f0
lea ecx, [esp + 0x4fc]
add esp, 0xc
xor edi, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4052d0
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
mov esi, eax
lea ecx, [esp + 0x4f4]
add esp, 4
mov dword [esp + 0xa0], esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405310
sub ecx, edx
lea eax, [esp + 0x4f0]
sar ecx, 1
push eax
lea eax, [ecx + 1]
push eax
push esi
call fcn.0042dc34
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40537b
lea esi, [eax + 1]
push esi
call fcn.00427083
add esp, 4
mov edi, eax
push 0
push 0
push esi
mov esi, dword [esp + 0xac]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
lea eax, [esp + 0x154]
push str._c_rd__s_q__s
push eax
call fcn.00406d70
add esp, 0xc
test edi, edi
je 0x40539e
push edi
call fcn.00427040
add esp, 4
push esi
call fcn.00427040
add esp, 4
lea eax, [esp + 0x150]
push 0
push 0
push eax
push 0x44d770
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor esi, esi
jmp 0x405ba1
mov esi, 4
jmp 0x405ba1
push 0x44d774
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
push str.GlobalHuaTuCoreSetupConfirm
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
jne 0x40541d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x405424
push 0x64
call edi
inc esi
cmp esi, 0xa
jl 0x4053f0
jmp 0x405424
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x208
lea eax, [esp + 0xa0c]
push 0
push eax
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0xac]
lea ecx, [esp + 0xcc]
push 0x44d7dc
push eax
call fcn.00406260
mov esi, dword [eax]
test esi, esi
je 0x40547b
cmp dword [esi], 4
jne 0x405464
mov esi, dword [esi + 8]
jmp 0x405469
mov esi, 0x44d66f
xor eax, eax
xor edi, edi
mov dword [esp + 8], eax
test esi, esi
je 0x40550c
jmp 0x405480
mov esi, 0x44d66f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405485
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.00427083
mov ecx, esi
mov edi, eax
add esp, 4
mov dword [esp + 8], edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4054a5
sub ecx, edx
push esi
lea eax, [ecx + 1]
push eax
push edi
call fcn.0042ea3d
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
test eax, eax
je 0x40550c
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
add esp, 4
mov edi, eax
mov eax, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
lea eax, [esp + 0xa0c]
push str.Install_s.exe
push eax
call fcn.00406db0
mov eax, dword [esp + 0x14]
add esp, 0xc
test eax, eax
je 0x405533
push eax
call fcn.00427040
add esp, 4
test edi, edi
je 0x405540
push edi
call fcn.00427040
add esp, 4
mov esi, dword [esp + 0xb4]
test esi, esi
je 0x40556d
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40556d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40556d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x44d6ac
push 0x3e7
push 0
call esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x18], eax
test eax, eax
je 0x405b9c
push 0x44d6ac
push 0x3e7
push 0
call esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x405b9c
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0xa20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b9c
push 0
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0
push eax
push edi
push dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0xd4]
lea eax, [esp + 0xe8]
push eax
sub esp, 0xc
mov dword [esp + 0x108], 0
mov dword [esp + 0x10c], 0xf
mov ecx, esp
mov byte [esp + 0xf8], 0
mov dword [esp + 0x1c], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
test edi, edi
je 0x40565c
lock inc dword [edi + 4]
mov esi, dword [ecx + 8]
mov eax, dword [esp + 0xe0]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edi
test esi, esi
je 0x405695
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x405695
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x405691
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xdc]
mov dword [ecx], eax
lea ecx, [esp + 0xcf]
call fcn.004029b0
push 0x40
lea eax, [esp + 0x2ac]
push 0
push eax
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0x268]
push 0x40
push 0
push eax
call fcn.004288f0
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x405768
movzx eax, byte [esp + 0x9f]
push eax
movzx eax, byte [esp + 0xa2]
push eax
movzx eax, byte [esp + 0xa5]
push eax
movzx eax, byte [esp + 0xa8]
push eax
movzx eax, byte [esp + 0xab]
push eax
movzx eax, byte [esp + 0xae]
push eax
movzx eax, byte [esp + 0xb1]
push eax
movzx eax, byte [esp + 0xb4]
push eax
movzx eax, word [esp + 0xb6]
push eax
movzx eax, word [esp + 0xb8]
push eax
push dword [esp + 0xb8]
lea eax, [esp + 0x294]
push 0x44d6c0
push 0x40
push eax
call fcn.00401010
add esp, 0x38
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405b3b
cmp dword [esp + 0xfc], 0x10
lea eax, [esp + 0x104]
push 0
push eax
push dword [esp + 0x100]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x110], 0
cmovae ecx, dword [esp + 0xf4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405b3b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x800
call fcn.00427083
add esp, 4
mov esi, eax
push 0x400
push 0
push esi
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0xa0c]
push eax
push str.__s___products___s_
push 0x400
push esi
call fcn.00401010
add esp, 0x14
lea eax, [esp + 0x154]
push 0x110
push 0
push eax
call fcn.004288f0
add esp, 0xc
mov dword [esp + 0x150], 0x114
lea eax, [esp + 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x154], 6
jae 0x405907
push 0x44
lea eax, [esp + 0x10c]
push 0
push eax
call fcn.004288f0
add esp, 0xc
mov dword [esp + 0x108], 0x44
xor eax, eax
xorps xmm0, xmm0
mov word [esp + 0x138], ax
lea eax, [esp + 0x90]
movaps xmmword [esp + 0x90], xmm0
push eax
lea eax, [esp + 0x10c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea eax, [esp + 0xa2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40598c
push dword [esp + 0x94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esp + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x94]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x90]
jmp 0x4059c4
lea eax, [esp + 0xa08]
mov dword [esp + 0x110], 0
xorps xmm0, xmm0
mov dword [esp + 0x118], eax
lea eax, [esp + 0x108]
movlpd qword [esp + 0x120], xmm0
push eax
movlpd qword [esp + 0x12c], xmm0
movlpd qword [esp + 0x134], xmm0
movlpd qword [esp + 0x13c], xmm0
mov dword [esp + 0x144], 0
mov dword [esp + 0x10c], 0x3c
mov dword [esp + 0x110], 0x40
mov dword [esp + 0x120], esi
mov dword [esp + 0x118], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x405999
mov dword [esp + 0xa8], 0xa
jmp 0x4059ca
push 0xffffffffffffffff
push dword [esp + 0x144]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x144]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [esp + 0x140]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00427040
add esp, 4
lea eax, [esp + 0x1020]
push 0x208
push 0
push eax
call fcn.004288f0
add esp, 0xc
lea eax, [esp + 0x1020]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x104
lea eax, [esp + 0x904]
push 0
push eax
call fcn.004288f0
lea ecx, [esp + 0x4fc]
add esp, 0xc
xor esi, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a30
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00427083
mov edx, eax
lea ecx, [esp + 0x4f4]
lea eax, [ecx + 2]
mov dword [esp + 0xc], edx
add esp, 4
mov dword [esp + 0xa0], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a72
sub ecx, dword [esp + 0xa0]
lea eax, [esp + 0x4f0]
sar ecx, 1
push eax
lea eax, [ecx + 1]
push eax
push edx
call fcn.0042dc34
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esp + 0x1c]
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x405ae8
lea esi, [eax + 1]
push esi
call fcn.00427083
add esp, 4
mov dword [esp + 0xa0], eax
push 0
push 0
push esi
mov esi, eax
push esi
push 0xffffffffffffffff
push dword [esp + 0x1c]
push 0
push 0x3a8
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [esp + 0x904]
push str._c_rd__s_q__s
push eax
call fcn.00406d70
add esp, 0xc
test esi, esi
je 0x405b0b
push esi
call fcn.00427040
add esp, 4
push dword [esp + 8]
call fcn.00427040
add esp, 4
lea eax, [esp + 0x900]
push 0
push 0
push eax
push 0x44d770
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, dword [esp + 0xa8]
jmp 0x405b40
mov esi, 5
mov edx, dword [esp + 0xfc]
cmp edx, 0x10
jb 0x405b7c
mov ecx, dword [esp + 0xe8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405b72
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405c30
push edx
push ecx
call fcn.00427075
add esp, 8
mov dword [esp + 0xf8], 0
mov dword [esp + 0xfc], 0xf
mov byte [esp + 0xe8], 0
jmp 0x405ba8
mov esi, 5
mov edi, dword [esp + 0xd4]
mov ecx, dword [esp + 0xc8]
or edx, 0xffffffff
mov dword [esp + 0xa0], ecx
test ecx, ecx
je 0x405bf3
mov eax, edx
lock xadd dword [ecx + 4], eax
jne 0x405bf3
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0xa0]
or edx, 0xffffffff
mov eax, edx
lock xadd dword [ecx + 8], eax
jne 0x405bf3
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
jmp 0x405bf3
mov edi, dword [esp + 0xd4]
mov esi, 5
test edi, edi
je 0x405c18
mov eax, edx
lock xadd dword [edi + 4], eax
jne 0x405c18
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
dec eax
jne 0x405c18
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
mov ecx, dword [esp + 0x122c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0042702f
mov esp, ebp
pop ebp
ret 0x10
call fcn.00432064
nop dword [eax]
inc dword [eax + eax*2]
inc dword [eax + eax*2]
inc dword [eax + eax*2]
inc dword [eax + eax*2]
inc dword [eax + eax*2]
push cs
inc ebp
inc eax
add byte [esi], al
inc ebp
inc eax
add ah, cl
int3