Function at 0x402710
Capabilities:
Delete file
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407675
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0x100], esi
mov dword [ebp - 0xfc], 1
push str.temp
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
lea ecx, [ebp - 0x40]
push eax
call fcn.004050e0
mov byte [ebp - 4], 1
mov eax, 0x7fffffff
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 0xd
jb 0x402ad9
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0xd
cmovae eax, dword [ebp - 0x40]
push str.guctemp.txt
push ecx
push eax
push ecx
push dword [ebp - 0x100]
lea ecx, [ebp - 0x28]
call fcn.004062c0
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov dword [ebp - 0xfc], esp
mov ecx, esp
push eax
call fcn.004051f0
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.004051f0
mov byte [ebp - 4], 2
call fcn.00401fc0
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00401b00
test al, al
je 0x402a2e
push 0xb8
lea eax, [ebp - 0xf8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0xf8]
call fcn.00404fb0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xe8]
push 1
push eax
call fcn.00405600
test eax, eax
lea ecx, [ebp - 0xf8]
mov eax, dword [ebp - 0xf8]
push 0
je 0x402850
add ecx, dword [eax + 4]
push 0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x40285b
add ecx, dword [eax + 4]
push 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xf8]
mov edx, esi
mov dword [ebp - 0xfc], 5
call fcn.00405bf0
lea ecx, [ebp - 0xe8]
call fcn.00405570
test eax, eax
jne 0x4028c2
push eax
mov eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0xf8]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov dword [ebp - 4], 4
add esp, 4
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xfc], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x9c], 0
mov dword [ebp - 0xe8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x40294c
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xac]
cmp dword [eax], ecx
jne 0x40294c
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x98]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xcc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xbc]
mov dword [eax], edx
cmp byte [ebp - 0xa0], 0
je 0x402960
lea ecx, [ebp - 0xe8]
call fcn.00405570
lea ecx, [ebp - 0xe8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xe0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4029b4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4029aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a28
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4029f6
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4029ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a28
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x402abd
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402ab3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x402ab3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.geturlfailed
mov ecx, esi
call fcn.004050e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x402a6a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x402a60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a28
push ecx
push edx
call fcn.004068d1
add esp, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x4029f6
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4029ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402a28
jmp 0x4029ec
push ecx
push edx
call fcn.004068d1
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406642
mov esp, ebp
pop ebp
ret
call fcn.00401630
int3