Function at 0x403e94
Capabilities:
Delete file
Query environment variable
Write file on windows

Disassembly:
mov eax, 0x405ab8
call fcn.00405890
push ecx
mov eax, 0x2854
call fcn.00405740
mov dword [ebp - 0x18], edx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0x4061d0
push 0x17
lea eax, [ebp - 0x40]
push ebx
push eax
mov dword [ebp - 0x40], 0xf6d90f16
mov word [ebp - 0x3c], 0x9c73
mov word [ebp - 0x3a], 0x11d3
mov byte [ebp - 0x38], 0xb3
mov byte [ebp - 0x37], 0x2e
mov byte [ebp - 0x36], bl
mov byte [ebp - 0x35], 0xc0
mov byte [ebp - 0x34], 0x4f
mov byte [ebp - 0x33], 0x99
mov byte [ebp - 0x32], 0xb
mov byte [ebp - 0x31], 0xb4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x4041bb
lea eax, [ebp - 0x864]
push 0x3e8
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push 0x30
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x28], eax
push 0x4078dc
mov word [eax + 0x20], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x30]
mov edi, 0x800
push edx
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x28]
push edi
lea edx, [ebp - 0x2c]
mov word [eax + 0x10], 8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x864]
push 1
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x28]
mov esi, 0x4061c0
push edx
mov word [eax], 0xb
mov eax, dword [ebp - 0x28]
push esi
mov word [eax + 8], bx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], str.open
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
cmp eax, ebx
jne 0x403fc1
mov eax, dword [ebp - 0x14]
push ebx
push ebx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
push ebx
push edx
push 1
push edi
push esi
push dword [ebp - 0x30]
push eax
call dword [ecx + 0x18]
push dword [ebp - 0x28]
call fcn.0040572e
push ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
lea edx, [ebp - 0x2c]
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
push edx
push edi
lea edx, [ebp - 0x30]
push 1
mov dword [ebp - 0x30], str.send
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jne 0x404017
mov eax, dword [ebp - 0x14]
push ebx
push ebx
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
push ebx
push edx
push 1
push edi
push esi
push dword [ebp - 0x2c]
push eax
call dword [ecx + 0x18]
push dword [ebp - 0x28]
call fcn.0040572e
mov eax, dword [ebp - 0x14]
pop ecx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x60], ebx
push edx
push edi
lea edx, [ebp - 0x48]
push 1
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], str.readyState
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jne 0x404069
push ebx
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x14]
push ebx
push edx
lea edx, [ebp - 0x60]
mov ecx, dword [eax]
push edx
push 3
push edi
push esi
push dword [ebp - 0x44]
push eax
call dword [ecx + 0x18]
cmp dword [ebp - 0x7c], 4
push dword [ebp - 0x60]
jne 0x4041ac
call fcn.0040572e
mov eax, dword [ebp - 0x14]
pop ecx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x70], ebx
push edx
push edi
lea edx, [ebp - 0x4c]
push 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x4c], str.responseStream
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x14]
cmp eax, ebx
jne 0x4040c5
push ebx
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x14]
push ebx
push edx
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
push edx
push 3
push edi
push esi
push dword [ebp - 0x50]
push eax
call dword [ecx + 0x18]
mov esi, dword [ebp - 0x8c]
cmp esi, ebx
je 0x4041a9
cmp dword [ebp - 0x18], ebx
je 0x4040ec
push dword [ebp - 0x18]
lea eax, [ebp - 0x1864]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
pop ecx
jmp 0x404121
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
lea eax, [ebp - 0x2864]
push str.__temp___ld.tmp
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x1864]
push 0x1000
push eax
lea eax, [ebp - 0x2864]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x1864]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea eax, [ebp - 0x1864]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4041a3
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x2864]
push 0x1000
push ecx
push esi
call dword [eax + 0xc]
cmp eax, ebx
jne 0x404189
cmp dword [ebp - 0x18], 1
jb 0x404189
lea eax, [ebp - 0x74]
push ebx
push eax
lea eax, [ebp - 0x2864]
push dword [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
jmp 0x404151
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x70]
call fcn.0040572e
pop ecx
xor eax, eax
jmp 0x4041be
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x70]
call fcn.0040572e
mov eax, dword [ebp - 0x14]
pop ecx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8