Function at 0x40d720
Capabilities:
Create directory
Create thread
Delete file
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4399bb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x168
mov eax, dword [0x44f00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x4514b4]
mov ecx, edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x168], edi
call fcn.0040d6a0
cmp byte [edi + 0x23c], 0
lea eax, [edi + 0x760]
mov edx, dword [edi + 0x770]
lea ecx, [edi + 0x57d]
push 0
je 0x40d7a1
push 0xc00000
jmp 0x40d7a6
push 0x400000
push eax
push 0
push 0
push ecx
push str.POST
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0x28
mov dword [ebp - 0x15c], eax
call fcn.00421cc3
mov esi, eax
add esp, 4
test esi, esi
je 0x40d7e4
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [esi + 0xc], 6
lea ecx, [edi + 0x6c]
call fcn.00408a10
mov dword [ebp - 0x154], eax
test eax, eax
je 0x40d843
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40d806
push eax
call fcn.00421ca8
add esp, 4
push 8
call fcn.00421cc3
add esp, 4
test eax, eax
je 0x40d821
mov dword [eax], 0x6e616863
mov dword [eax + 4], 0x6c656e
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x20], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x40d836
mov dword [esi + 8], edx
jmp 0x40d843
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x40d836
mov dword [ecx], edx
mov dword [edx + 4], ecx
lea ecx, [edi + 8]
call fcn.00408a10
mov dword [ebp - 0x154], eax
test eax, eax
je 0x40d89d
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40d865
push eax
call fcn.00421ca8
add esp, 4
push 4
call fcn.00421cc3
add esp, 4
test eax, eax
je 0x40d879
mov dword [eax], 0x646975
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x20], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x40d890
mov dword [esi + 8], edx
jmp 0x40d89d
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x40d890
mov dword [ecx], edx
mov dword [edx + 4], ecx
movd xmm0, dword [edi + 0x134]
cvtdq2pd xmm0, xmm0
push 0x28
movsd qword [ebp - 0x158], xmm0
call fcn.00421cc3
mov edi, eax
add esp, 4
test edi, edi
je 0x40d95d
movsd xmm0, qword [ebp - 0x158]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cvttsd2si eax, xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0xc], 3
movsd qword [edi + 0x18], xmm0
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40d919
push eax
call fcn.00421ca8
add esp, 4
push 9
call fcn.00421cc3
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40d93d
movq xmm0, qword [str.platType]
movq qword [ecx], xmm0
mov al, byte [0x44aad0]
mov byte [ecx + 8], al
mov dword [edi + 0x20], ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x40d950
mov dword [esi + 8], edi
jmp 0x40d95d
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x40d950
mov dword [ecx], edi
mov dword [edi + 4], ecx
mov edi, dword [ebp - 0x168]
lea ecx, [edi + 0xd0]
call fcn.00408a10
mov dword [ebp - 0x154], eax
test eax, eax
je 0x40d9be
mov eax, dword [eax + 0x20]
test eax, eax
je 0x40d988
push eax
call fcn.00421ca8
add esp, 4
push 4
call fcn.00421cc3
add esp, 4
test eax, eax
je 0x40d99c
mov dword [eax], 0x646973
mov edx, dword [ebp - 0x154]
mov dword [edx + 0x20], eax
mov eax, dword [esi + 8]
test eax, eax
jne 0x40d9b1
mov dword [esi + 8], edx
jmp 0x40d9be
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x40d9b1
mov dword [ecx], edx
mov dword [edx + 4], ecx
push 0
push 1
xor edx, edx
mov ecx, esi
call fcn.00407d90
add esp, 8
mov dword [ebp - 0x154], eax
mov ecx, esi
call fcn.004072c0
mov esi, dword [ebp - 0x154]
mov ecx, esi
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40da10
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x150]
call fcn.00406fc0
push esi
mov dword [ebp - 4], 0
call fcn.00421ca8
mov dword [ebp - 0x138], 0
add esp, 4
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x150]
mov ecx, edi
push eax
push dword [ebp - 0x15c]
call fcn.0040f890
mov ecx, dword [ebp - 0x15c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x154], eax
test ecx, ecx
je 0x40da99
push ecx
call esi
mov eax, dword [ebp - 0x154]
test eax, eax
jns 0x40db63
mov eax, dword [edi + 0x770]
test eax, eax
je 0x40dab8
push eax
call esi
mov dword [edi + 0x770], 0
mov eax, dword [edi + 0x76c]
test eax, eax
je 0x40dacf
push eax
call esi
mov dword [edi + 0x76c], 0
xor esi, esi
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x40db0b
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40db01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dfbe
push edx
push ecx
call fcn.00419332
add esp, 8
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp edx, 0x10
jb 0x40df9c
mov ecx, dword [ebp - 0x150]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40df92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40dfbe
jmp 0x40df92
cmp dword [ebp - 0x124], 0x10
lea ecx, [ebp - 0x138]
cmovae ecx, dword [ebp - 0x138]
call fcn.00407c40
mov esi, eax
mov dword [ebp - 0x15c], esi
test esi, esi
je 0x40dacf
mov edi, dword [esi + 8]
mov dword [ebp - 0x164], edi
test edi, edi
je 0x40dbbd
nop dword [eax]
mov ecx, dword [edi + 0x20]
mov edx, 0x44aad4
call fcn.00407230
test eax, eax
je 0x40dbb7
mov edi, dword [edi]
test edi, edi
jne 0x40dba0
mov dword [ebp - 0x164], edi
mov esi, dword [esi + 8]
test esi, esi
je 0x40dbe7
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esi + 0x20]
mov edx, str.name
call fcn.00407230
test eax, eax
je 0x40dbe7
mov esi, dword [esi]
test esi, esi
jne 0x40dbd0
mov eax, dword [ebp - 0x15c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x16c], eax
test eax, eax
je 0x40dc23
mov edi, eax
nop dword [eax]
mov ecx, dword [edi + 0x20]
mov edx, str.fileName
call fcn.00407230
test eax, eax
je 0x40dc17
mov edi, dword [edi]
test edi, edi
jne 0x40dc00
mov dword [ebp - 0x16c], edi
mov edi, dword [ebp - 0x164]
mov eax, dword [ebp - 0x15c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x170], eax
test eax, eax
je 0x40dc63
mov edi, eax
nop dword [eax + eax]
mov ecx, dword [edi + 0x20]
mov edx, str.downUrl
call fcn.00407230
test eax, eax
je 0x40dc57
mov edi, dword [edi]
test edi, edi
jne 0x40dc40
mov dword [ebp - 0x170], edi
mov edi, dword [ebp - 0x164]
mov eax, dword [ebp - 0x15c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x40dca9
mov edi, eax
nop dword [eax + eax]
mov ecx, dword [edi + 0x20]
mov edx, 0x44aaf4
call fcn.00407230
test eax, eax
je 0x40dc97
mov edi, dword [edi]
test edi, edi
jne 0x40dc80
mov dword [ebp - 0x168], edi
mov edi, dword [ebp - 0x164]
mov eax, dword [ebp - 0x168]
test edi, edi
je 0x40dacf
cmp dword [edi + 0xc], 3
jne 0x40dacf
test esi, esi
je 0x40dacf
cmp dword [esi + 0xc], 4
jne 0x40dacf
mov esi, dword [ebp - 0x16c]
test esi, esi
je 0x40dacf
cmp dword [esi + 0xc], 4
jne 0x40dacf
mov ecx, dword [ebp - 0x170]
test ecx, ecx
je 0x40dacf
cmp dword [ecx + 0xc], 4
jne 0x40dacf
test eax, eax
je 0x40dacf
cmp dword [eax + 0xc], 4
jne 0x40dacf
push 0x104
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0041c210
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dd40
sub ecx, edx
mov edx, 0x104
cmp byte [ebp + ecx - 0x121], 0x5c
je 0x40dde8
mov ecx, edx
lea eax, [ebp - 0x120]
cmp byte [eax], 0
je 0x40dd6f
inc eax
sub ecx, 1
jne 0x40dd64
mov eax, edx
mov edi, ecx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
mov dword [ebp - 0x154], edi
mov edi, dword [ebp - 0x164]
test ecx, ecx
je 0x40dde8
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x120]
sub edx, eax
mov dword [ebp - 0x154], edx
lea ecx, [ecx + eax]
je 0x40ddd8
mov esi, 0x44a6d0
mov eax, SysReAllocString
sub esi, ecx
test eax, eax
je 0x40ddd8
cmp byte [esi + ecx], 0
mov edx, dword [ebp - 0x154]
je 0x40ddd8
mov dl, byte [esi + ecx]
dec eax
mov byte [ecx], dl
inc ecx
mov edx, dword [ebp - 0x154]
dec edx
mov dword [ebp - 0x154], edx
test edx, edx
jne 0x40ddb0
test edx, edx
lea eax, [ecx - 1]
mov edx, 0x104
cmovne eax, ecx
mov byte [eax], 0
mov ecx, 0x104
lea eax, [ebp - 0x120]
cmp byte [eax], 0
je 0x40ddfe
inc eax
sub ecx, 1
jne 0x40ddf3
mov eax, edx
mov esi, ecx
sub eax, ecx
neg esi
sbb esi, esi
and esi, eax
mov dword [ebp - 0x154], esi
mov esi, dword [ebp - 0x16c]
test ecx, ecx
je 0x40de79
mov eax, dword [ebp - 0x154]
lea ecx, [ebp - 0x120]
sub edx, eax
mov dword [ebp - 0x154], edx
lea ecx, [ecx + eax]
je 0x40de6e
mov edi, str.SoftInstall
mov eax, SysReAllocString
sub edi, ecx
nop
test eax, eax
je 0x40de68
mov dl, byte [edi + ecx]
test dl, dl
je 0x40de62
mov byte [ecx], dl
dec eax
mov edx, dword [ebp - 0x154]
inc ecx
dec edx
mov dword [ebp - 0x154], edx
test edx, edx
jne 0x40de40
jmp 0x40de68
mov edx, dword [ebp - 0x154]
mov edi, dword [ebp - 0x164]
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422827
add esp, 8
cmp eax, 0xffffffff
jne 0x40dea0
push 0
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
push dword [esi + 0x10]
lea eax, [ebp - 0x120]
push eax
push str._s_s
push 0x104
push eax
call fcn.004035c0
add esp, 0x14
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00422827
add esp, 8
test eax, eax
jne 0x40dedf
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [edi + 0x14]
lea ecx, [ebp - 0x120]
mov dword [0x44fd30], eax
lea edx, [ecx + 1]
mov eax, dword [ebp - 0x174]
mov dword [0x44fd34], eax
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40df00
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
mov ecx, 0x44fd50
call fcn.00406fc0
mov eax, dword [ebp - 0x170]
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40df30
sub ecx, esi
push ecx
push edx
mov ecx, 0x44fd38
call fcn.00406fc0
mov eax, dword [ebp - 0x168]
mov edx, dword [eax + 0x10]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40df53
sub ecx, esi
push ecx
push edx
mov ecx, 0x44fd68
call fcn.00406fc0
push 0
push 0
push 0
push 0x411a00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0x15c]
call fcn.004072c0
mov esi, 1
jmp 0x40dad1
push edx
push ecx
call fcn.00419332
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004192ef
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004219d1
int3