Function at 0x406a30
Capabilities:
Create directory
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42ebdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c8
push ebx
push ebp
push esi
push edi
mov ecx, str.ProgramFiles
lea esi, [esp + 0x10]
call fcn.004077b0
push eax
mov edi, str.uTorrentuTorrent.exe
lea esi, [esp + 0x4c]
mov dword [esp + 0x4e4], 0
call fcn.00402c50
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, 0x43b268
mov byte [esp + 0x4ec], 1
call fcn.004023e0
mov ebp, 0x10
cmp dword [esp + 0x60], ebp
jb 0x406aa9
mov eax, dword [esp + 0x4c]
push eax
call fcn.0041c141
add esp, 4
mov ebx, 0xf
mov dword [esp + 0x4e0], 0xffffffff
cmp dword [esp + 0x28], ebp
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jb 0x406add
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041c141
add esp, 4
mov ecx, str.ProgramFiles
lea esi, [esp + 0x48]
call fcn.004077b0
push eax
mov edi, str.uTorrentupx.exe
lea esi, [esp + 0x30]
mov dword [esp + 0x4e4], 2
call fcn.00402c50
add esp, 4
mov byte [esp + 0x4e0], 4
cmp dword [esp + 0x60], ebp
jb 0x406b23
mov edx, dword [esp + 0x4c]
push edx
call fcn.0041c141
add esp, 4
cmp dword [0x43b280], ebp
mov eax, dword [0x43b26c]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
jae 0x406b46
mov eax, 0x43b26c
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
jne 0x406f04
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 3
jne 0x406c18
mov ecx, str.ProgramFiles
lea esi, [esp + 0x64]
call fcn.004077b0
push eax
mov edi, str.uTorrent
lea esi, [esp + 0x14]
mov byte [esp + 0x4e4], 5
call fcn.00402c50
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x406ba6
mov eax, dword [eax + 4]
jmp 0x406ba9
add eax, 4
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
sete bl
cmp dword [esp + 0x28], ebp
jb 0x406bca
mov eax, dword [esp + 0x14]
push eax
call fcn.0041c141
add esp, 4
mov byte [esp + 0x4e0], 4
cmp dword [esp + 0x7c], ebp
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x406bfa
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0041c141
add esp, 4
test bl, bl
je 0x406c18
cmp dword [esp + 0x44], ebp
jb 0x406c11
mov edx, dword [esp + 0x30]
push edx
call fcn.0041c141
add esp, 4
xor al, al
jmp 0x406f41
cmp dword [0x43b280], ebp
mov eax, dword [0x43b26c]
jae 0x406c2a
mov eax, 0x43b26c
push str.http:__download.utorrent.com_1.7.7_utorrent.exe
call fcn.00407930
add esp, 4
test al, al
jne 0x406c55
cmp dword [esp + 0x44], ebp
jb 0x406c11
mov eax, dword [esp + 0x30]
push eax
call fcn.0041c141
add esp, 4
xor al, al
jmp 0x406f41
lea ecx, [esp + 0x2c]
push ecx
mov edi, str..zip
lea esi, [esp + 0x68]
call fcn.00402c50
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x406c75
mov eax, dword [eax + 4]
jmp 0x406c78
add eax, 4
push str.http:__upx.sourceforge.net_download_upx302w.zip
call fcn.00407930
add esp, 4
test al, al
sete bl
cmp dword [esp + 0x7c], ebp
jb 0x406c9d
mov edx, dword [esp + 0x68]
push edx
call fcn.0041c141
add esp, 4
test bl, bl
jne 0x406c3b
lea ecx, [esp + 0x2c]
push ecx
mov edi, str..zip
lea esi, [esp + 0x14]
call fcn.00402c50
add esp, 4
mov byte [esp + 0x4e0], 6
cmp dword [eax + 0x18], ebp
jb 0x406cc9
mov eax, dword [eax + 4]
jmp 0x406ccc
add eax, 4
call fcn.004084f0
mov byte [esp + 0x4e0], 4
cmp dword [esp + 0x28], ebp
mov esi, eax
jb 0x406cee
mov edx, dword [esp + 0x14]
push edx
call fcn.0041c141
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jmp 0x406d10
push 0x400
lea eax, [esp + 0x88]
push 0
push eax
lea eax, [esp + 0xe0]
mov ecx, esi
call fcn.00408730
add esp, 0xc
lea ecx, [esp + 0xd4]
push str.upx.exe
push ecx
call fcn.0041c7a0
add esp, 8
test eax, eax
jne 0x406d54
call fcn.00408a00
test eax, eax
je 0x406d10
jmp 0x406da4
push esi
call fcn.00408c60
mov ebx, dword [esp + 0xa4]
add esp, 4
push ebx
call fcn.0041bc9a
add esp, 4
mov edi, eax
push edi
push esi
mov ecx, ebx
call fcn.00408db0
mov eax, dword [esp + 0x38]
add esp, 8
cmp dword [esp + 0x44], ebp
jae 0x406d89
lea eax, [esp + 0x30]
push ebx
push edi
push eax
call fcn.00407810
add esp, 0xc
push edi
call fcn.0041bb78
add esp, 4
mov ebx, esi
call fcn.00409020
mov eax, esi
call fcn.004086f0
push 0x43b268
mov ecx, str._d__
lea edi, [esp + 0x68]
call fcn.004071b0
add esp, 4
push eax
mov edi, 0x436770
lea esi, [esp + 0x14]
mov byte [esp + 0x4e4], 7
call fcn.00402c50
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x406de5
mov eax, dword [eax + 4]
jmp 0x406de8
add eax, 4
cmp dword [esp + 0x44], ebp
mov ecx, dword [esp + 0x30]
jae 0x406df6
lea ecx, [esp + 0x30]
mov edi, eax
push 1
mov eax, ecx
call fcn.00407a10
add esp, 4
cmp dword [esp + 0x28], ebp
jb 0x406e17
mov edx, dword [esp + 0x14]
push edx
call fcn.0041c141
add esp, 4
mov byte [esp + 0x4e0], 4
cmp dword [esp + 0x7c], ebp
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jb 0x406e47
mov eax, dword [esp + 0x68]
push eax
call fcn.0041c141
add esp, 4
cmp dword [esp + 0x44], ebp
mov eax, dword [esp + 0x30]
jae 0x406e55
lea eax, [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push eax
call ebx
lea ecx, [esp + 0x2c]
push ecx
mov edi, str..zip
lea esi, [esp + 0x68]
call fcn.00402c50
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x406e7e
mov eax, dword [eax + 4]
jmp 0x406e81
add eax, 4
push eax
call ebx
cmp dword [esp + 0x7c], ebp
jb 0x406e97
mov edx, dword [esp + 0x68]
push edx
call fcn.0041c141
add esp, 4
cmp dword [0x43b280], ebp
mov eax, dword [0x43b26c]
jae 0x406ea9
mov eax, 0x43b26c
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edi, eax
mov esi, 0x4365e4
mov ebx, 0x1b
mov eax, dword [esi - 4]
push 0
push 0
push eax
push edi
call ebp
push 0
lea ecx, [esp + 0x84]
push ecx
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
add esi, 8
sub ebx, 1
jne 0x406ed1
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebp, 0x10
cmp dword [0x43b280], ebp
mov eax, dword [0x43b26c]
jae 0x406f16
mov eax, 0x43b26c
push 0
mov edi, str._minimized
call fcn.00407a10
add esp, 4
cmp dword [esp + 0x44], ebp
mov byte [0x43c329], al
mov bl, al
jb 0x406f3f
mov edx, dword [esp + 0x30]
push edx
call fcn.0041c141
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x4d8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4d4
ret