Function at 0x4049e0
Capabilities:
Create process on windows
Create thread
Print debug messages
Query environment variable
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x44f6aa
mov eax, dword fs:[0]
push eax
sub esp, 0xcf8
mov eax, dword [0x47aed0]
xor eax, esp
mov dword [esp + 0xcf4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47aed0]
xor eax, esp
push eax
lea eax, [esp + 0xd0c]
mov dword fs:[0], eax
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xd24]
mov ebp, 0xf
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0xd20], ebx
mov dword [esp + 0x64], ebp
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.004024b0
push 0xa
push str.xreag.exe
lea ecx, [esp + 0x48]
mov byte [esp + 0xd1c], 1
call fcn.004026f0
mov eax, dword [esp + 0x44]
mov esi, 0x10
cmp dword [esp + 0x58], esi
jae 0x404a74
lea eax, [esp + 0x44]
push 5
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x58], esi
jae 0x404a93
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xd24]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
call fcn.004024b0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xd24]
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd20], 2
mov dword [esp + 0xb8], ebp
mov dword [esp + 0xb4], ebx
mov byte [esp + 0xa4], bl
call fcn.004024b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xd40]
mov dword [ecx + 0x18], ebp
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0xd3c], 3
mov byte [ecx + 4], bl
call fcn.004024b0
call fcn.00403060
add esp, 0x1c
push ebp
push str._tinxingbox.exe
lea ecx, [esp + 0x2c]
call fcn.004026f0
push 0xe
push str.Uninstall.exe
lea ecx, [esp + 0x9c]
call fcn.004026f0
push 0x3ff
lea ecx, [esp + 0x10d]
push ebx
push ecx
mov byte [esp + 0x114], bl
call fcn.0043f190
add esp, 0xc
push 0x400
lea edx, [esp + 0x10c]
push edx
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x3ff
lea eax, [esp + 0x50d]
push ebx
push eax
mov byte [esp + 0x514], bl
call fcn.0043f190
push 0x3ff
lea ecx, [esp + 0x919]
push ebx
push ecx
mov byte [esp + 0x920], bl
call fcn.0043f190
lea eax, [esp + 0x120]
add esp, 0x18
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404bb7
lea edi, [esp + 0x508]
sub eax, ecx
mov esi, ecx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404bd0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x508]
rep movsb byte es:[edi], byte [esi]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x404bf0
lea eax, [esp + 0x108]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404c01
lea edi, [esp + 0x908]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404c12
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x908]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x404c32
mov eax, dword [esp + 0x28]
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jae 0x404c4d
lea eax, [esp + 0x28]
push ebx
push 0x4527a4
push eax
call fcn.004013c0
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [esp + 0x3c], esi
jae 0x404c6a
lea eax, [esp + 0x28]
push eax
call fcn.004015b0
add esp, 4
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xd24]
push edx
lea ecx, [esp + 0x84]
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x98], ebx
mov byte [esp + 0x88], bl
call fcn.004024b0
push 0xe
push str.Uninstall.exe
lea ecx, [esp + 0x80]
mov byte [esp + 0xd1c], 4
call fcn.004026f0
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], esi
jae 0x404ccb
lea eax, [esp + 0x7c]
push eax
call fcn.00401740
mov eax, dword [esp + 0x2c]
add esp, 4
cmp dword [esp + 0x3c], esi
jae 0x404ce2
lea eax, [esp + 0x28]
push eax
push 1
call fcn.00402a10
add esp, 8
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xd24]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.004024b0
push 0xa
push str.xreag.exe
lea ecx, [esp + 0x64]
mov byte [esp + 0xd1c], 5
call fcn.004026f0
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x404d36
lea eax, [esp + 0x60]
push eax
push 1
call fcn.00402a10
add esp, 8
cmp dword [0x47c1f8], ebx
jne 0x404d86
mov eax, dword [0x47c1b8]
cmp eax, ebx
je 0x404d86
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404d73
mov ecx, dword [0x47c1b8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [0x47c1b8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x47c1b8], ebx
mov ecx, dword [0x47c1e0]
mov eax, dword [0x47c1f4]
mov ebp, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x47c1d8]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [0x47c1d8]
mov dword [ecx + 4], ecx
mov dword [0x47c1dc], ebx
cmp eax, dword [0x47c1d8]
je 0x404dcd
mov esi, dword [eax]
push eax
call fcn.0043f32c
add esp, 4
mov eax, esi
cmp esi, dword [0x47c1d8]
jne 0x404db8
mov edi, dword [esp + 0x1c]
mov esi, dword [0x47c1f4]
cmp edi, ebx
je 0x404de3
cmp edi, dword [0x47c1e0]
je 0x404de8
call fcn.0043f56e
cmp ebp, esi
je 0x404faa
cmp edi, ebx
jne 0x404e5d
call fcn.0043f56e
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x404e05
call fcn.0043f56e
lea eax, [ebp + 8]
push eax
lea ecx, [esp + 0xb4]
call fcn.00402800
cmp dword [esp + 0x104], 1
mov byte [esp + 0xd14], 6
jne 0x404ef4
push 0x58
call fcn.0043f599
add esp, 4
cmp eax, ebx
je 0x404e61
mov dword [eax + 0x14], ebx
mov ecx, 0xf
mov dword [eax + 0x18], ecx
mov byte [eax + 4], bl
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], ebx
mov byte [eax + 0x20], bl
mov dword [eax + 0x50], ecx
mov dword [eax + 0x4c], ebx
mov byte [eax + 0x3c], bl
mov esi, eax
jmp 0x404e63
mov eax, dword [edi]
jmp 0x404dfb
xor esi, esi
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xb8]
push edx
lea ecx, [esi + 0x1c]
call fcn.004024b0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xf0]
push eax
mov ecx, esi
call fcn.004024b0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esi + 0x38]
call fcn.004024b0
lea edx, [esp + 0x18]
push edx
push ebx
push esi
push 0x406e40
push 0x400
push ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x404ef4
mov dword [esp + 0x14], eax
mov eax, dword [0x47c1d8]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
mov ecx, 0x47c1c4
call fcn.004020c0
push 1
mov ecx, 0x47c1c4
mov esi, eax
call fcn.00402b50
mov dword [edi], esi
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [eax], esi
cmp edi, ebx
jne 0x404fa3
call fcn.0043f56e
xor eax, eax
cmp ebp, dword [eax + 0x14]
jne 0x404f0d
call fcn.0043f56e
mov ebp, dword [ebp]
mov esi, 0x10
mov byte [esp + 0xd14], 5
cmp dword [esp + 0x100], esi
jb 0x404f36
mov eax, dword [esp + 0xec]
push eax
call fcn.0043f32c
add esp, 4
mov dword [esp + 0x100], 0xf
mov dword [esp + 0xfc], ebx
mov byte [esp + 0xec], bl
cmp dword [esp + 0xe4], esi
jb 0x404f68
mov ecx, dword [esp + 0xd0]
push ecx
call fcn.0043f32c
add esp, 4
mov dword [esp + 0xe4], 0xf
mov dword [esp + 0xe0], ebx
mov byte [esp + 0xd0], bl
cmp dword [esp + 0xc8], esi
jb 0x404dd1
mov edx, dword [esp + 0xb4]
push edx
call fcn.0043f32c
add esp, 4
jmp 0x404dd1
mov eax, dword [edi]
jmp 0x404f03
cmp dword [0x47c1dc], ebx
jbe 0x4050dc
jmp 0x404fc0
mov eax, dword [0x47c1d8]
mov esi, dword [eax]
mov edi, dword [0x47c1c4]
lea ecx, [ecx]
mov ebp, dword [0x47c1d8]
cmp edi, ebx
je 0x404fe2
cmp edi, dword [0x47c1c4]
je 0x404fe7
call fcn.0043f56e
cmp esi, ebp
je 0x4050d0
cmp edi, ebx
jne 0x40509a
call fcn.0043f56e
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x405008
call fcn.0043f56e
cmp dword [esi + 8], ebx
je 0x4050b0
cmp edi, ebx
jne 0x4050a1
call fcn.0043f56e
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40502a
call fcn.0043f56e
mov ecx, dword [esi + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4050b0
cmp edi, ebx
jne 0x4050a8
call fcn.0043f56e
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x40504e
call fcn.0043f56e
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x4050ac
call fcn.0043f56e
xor edi, edi
cmp esi, dword [edi + 0x14]
jne 0x40506d
call fcn.0043f56e
mov ebp, dword [esi]
cmp esi, dword [0x47c1d8]
je 0x405093
mov eax, dword [esi + 4]
mov dword [eax], ebp
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push esi
mov dword [ecx + 4], edx
call fcn.0043f32c
add esp, 4
dec dword [0x47c1dc]
mov esi, ebp
jmp 0x404fc7
mov eax, dword [edi]
jmp 0x404ffe
mov eax, dword [edi]
jmp 0x405020
mov eax, dword [edi]
jmp 0x405044
mov edi, dword [edi]
jmp 0x405063
cmp edi, ebx
jne 0x4050cc
call fcn.0043f56e
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4050c5
call fcn.0043f56e
mov esi, dword [esi]
jmp 0x404fd0
mov eax, dword [edi]
jmp 0x4050bb
cmp dword [0x47c1dc], ebx
ja 0x404fc0
cmp dword [esp + 0x74], 0x10
jb 0x4050f0
mov eax, dword [esp + 0x60]
push eax
call fcn.0043f32c
add esp, 4
cmp dword [esp + 0x90], 0x10
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
jb 0x405117
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.0043f32c
add esp, 4
cmp dword [esp + 0xac], 0x10
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
jb 0x405147
mov edx, dword [esp + 0x98]
push edx
call fcn.0043f32c
add esp, 4
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], ebx
mov byte [esp + 0x98], bl
jb 0x405174
mov eax, dword [esp + 0x28]
push eax
call fcn.0043f32c
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jb 0x405198
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0043f32c
add esp, 4
cmp dword [esp + 0xd34], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x4051c2
mov edx, dword [esp + 0xd20]
push edx
call fcn.0043f32c
add esp, 4
mov ecx, dword [esp + 0xd0c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xcf4]
xor ecx, esp
call fcn.0043ee6a
add esp, 0xd04
ret