Function at 0x1000b620
Capabilities:
Check http status code
Delete file
Get common file path
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d2a3
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x1003600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp - 0x40c]
push edx
call fcn.1002ab50
add esp, 4
mov dword [ebp - 4], 0
mov ecx, 0x1003756c
call fcn.1000e170
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x3f4]
call fcn.10001d90
mov byte [ebp - 4], 1
push 0xfa
push 0
lea ecx, [ebp - 0x30c]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0xfa
push 0
lea edx, [ebp - 0x10c]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x40c]
call fcn.1000e170
push eax
push 0xfa
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
mov ecx, 0x100376bc
call fcn.1000e170
push eax
push 0xfa
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea ecx, [ebp - 0x3f4]
call fcn.1000e170
push eax
push 0xfa
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x44c]
call fcn.10001d90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 0x3dc]
call fcn.10001d90
mov byte [ebp - 4], 3
push 0x10037554
lea ecx, [ebp - 0x3dc]
call fcn.1000e570
push 0xc
lea ecx, [ebp - 0x324]
call fcn.10004340
push 0x10037584
lea ecx, [ebp - 0x678]
call fcn.1000e730
mov byte [ebp - 4], 4
lea edx, [ebp - 0x10c]
push edx
lea ecx, [ebp - 0x660]
call fcn.10001d90
lea ecx, [ebp - 0x648]
call fcn.1000e6f0
lea ecx, [ebp - 0x630]
call fcn.1000e6f0
mov byte [ebp - 4], 5
push 0x1003759c
lea ecx, [ebp - 0x618]
call fcn.1000e730
mov byte [ebp - 4], 6
push 0x100376d4
lea ecx, [ebp - 0x600]
call fcn.1000e730
lea ecx, [ebp - 0x5e8]
call fcn.1000e6f0
lea ecx, [ebp - 0x5d0]
call fcn.1000e6f0
mov byte [ebp - 4], 7
push 0x100375e4
lea ecx, [ebp - 0x5b8]
call fcn.1000e730
mov byte [ebp - 4], 8
push 0x100375b4
lea ecx, [ebp - 0x5a0]
call fcn.1000e730
lea ecx, [ebp - 0x588]
call fcn.1000e6f0
lea ecx, [ebp - 0x570]
call fcn.1000e6f0
mov byte [ebp - 4], 9
push 0x100375cc
lea ecx, [ebp - 0x558]
call fcn.1000e730
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x540]
push eax
mov ecx, 0x1003771e
call fcn.1002a910
lea ecx, [ebp - 0x528]
call fcn.1000e6f0
lea ecx, [ebp - 0x510]
call fcn.1000e6f0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x46e]
call fcn.10002220
push eax
lea ecx, [ebp - 0x4f8]
push ecx
lea edx, [ebp - 0x678]
push edx
lea ecx, [ebp - 0x4dc]
call fcn.1000a1b0
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [eax]
push edx
lea ecx, [ebp - 0x324]
call fcn.1000bfb0
mov byte [ebp - 4], 0xd
push fcn.10006960
push 4
push 0x60
lea eax, [ebp - 0x678]
push eax
call fcn.1002b5ce
lea ecx, [ebp - 0x424]
call fcn.1000e6f0
mov byte [ebp - 4], 0xe
push 0
push 0x493e0
push 0
push 0x14
mov ecx, 0x10037720
call fcn.1000b2f0
push 0
push 0
push 0
push 0x1e
mov ecx, 0x10037720
call fcn.1000b320
push 0
push 0
push 0
push 0x1e
mov ecx, 0x10037720
call fcn.1000b350
push 0x10
lea ecx, [ebp - 0x344]
call fcn.10004340
lea ecx, [ebp - 0x324]
push ecx
mov ecx, 0x100375fc
call fcn.1000e170
push eax
lea edx, [ebp - 0x344]
push edx
mov ecx, 0x10037720
call fcn.1000b2b0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x344]
call fcn.10003b00
movzx eax, al
test eax, eax
je 0x1000be9b
lea ecx, [ebp - 0x344]
call fcn.10003b20
cmp dword [eax + 0x18], 0xc8
jne 0x1000be9b
push 8
lea ecx, [ebp - 0x314]
call fcn.10004340
lea ecx, [ebp - 0x314]
call fcn.1000d710
mov byte [ebp - 4], 0x10
mov ecx, 0x1003765c
call fcn.1000e170
mov dword [ebp - 0x4ac], eax
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x4ac]
push edx
lea eax, [ebp - 0x4c0]
push eax
lea ecx, [ebp - 0x314]
call fcn.10013990
mov ecx, 0x1003759c
call fcn.1000e170
mov dword [ebp - 0x480], eax
push 0x100376d4
lea ecx, [ebp - 0x480]
push ecx
lea edx, [ebp - 0x4c4]
push edx
lea ecx, [ebp - 0x314]
call fcn.100139d0
mov ecx, 0x100375e4
call fcn.1000e170
mov dword [ebp - 0x484], eax
push 0x100375b4
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x4bc]
push ecx
lea ecx, [ebp - 0x314]
call fcn.100139d0
mov ecx, 0x100375cc
call fcn.1000e170
mov dword [ebp - 0x490], eax
lea edx, [ebp - 0x4f4]
push edx
mov ecx, 0x1003771e
call fcn.1002a910
mov dword [ebp - 0x488], eax
mov eax, dword [ebp - 0x488]
mov dword [ebp - 0x48c], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x48c]
push ecx
lea edx, [ebp - 0x490]
push edx
lea eax, [ebp - 0x4b8]
push eax
lea ecx, [ebp - 0x314]
call fcn.10013a10
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x4f4]
call fcn.10001d70
push 0x10
lea ecx, [ebp - 0x334]
call fcn.10004340
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x4b0], esp
push 0
call fcn.1000c210
mov dword [ebp - 0x4d4], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x4d0]
call fcn.1000d710
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
mov dword [ebp - 0x498], ecx
mov byte [ebp - 4], 0x13
mov edx, dword [ebp - 0x498]
push edx
lea eax, [ebp - 0x314]
push eax
mov ecx, 0x10037614
call fcn.1000e170
push eax
lea ecx, [ebp - 0x334]
push ecx
mov byte [ebp - 4], 0x14
mov ecx, 0x10037720
call fcn.1000b210
mov dword [ebp - 0x49c], eax
mov edx, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x4a0]
mov dword [ebp - 0x4c8], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x4d0]
call fcn.10003a60
lea ecx, [ebp - 0x334]
call fcn.10003b00
movzx ecx, al
test ecx, ecx
je 0x1000be7d
lea ecx, [ebp - 0x334]
call fcn.10003b20
cmp dword [eax + 0x18], 0xc8
jne 0x1000be7d
lea ecx, [ebp - 0x334]
call fcn.10003b20
add eax, 0x3c
push eax
lea ecx, [ebp - 0x35c]
call fcn.1000e730
mov byte [ebp - 4], 0x17
mov ecx, 0x10037644
call fcn.1000e170
push eax
lea ecx, [ebp - 0x35c]
call fcn.1000de30
test eax, eax
je 0x1000be6e
push 0
push 0x100376ec
lea ecx, [ebp - 0x35c]
call fcn.1000df50
push eax
push 0
lea edx, [ebp - 0x3c4]
push edx
lea ecx, [ebp - 0x35c]
call fcn.1000deb0
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x35c]
call fcn.1000e150
push eax
push 0
push 0x100376ec
lea ecx, [ebp - 0x35c]
call fcn.1000df50
add eax, 1
push eax
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x35c]
call fcn.1000deb0
mov byte [ebp - 4], 0x19
mov cl, byte [0x1002f531]
mov byte [ebp - 0x210], cl
push 0x103
push 0
lea edx, [ebp - 0x20f]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1000be50
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x374]
call fcn.10001d90
mov byte [ebp - 4], 0x1a
lea edx, [ebp - 0x3c4]
push edx
lea ecx, [ebp - 0x374]
call fcn.1000e570
lea ecx, [ebp - 0x374]
call fcn.1000e170
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x39c]
call fcn.1000e150
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x478], 0
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x374]
call fcn.1000e170
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0xffffffff
jne 0x1000bd98
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x374]
call fcn.10001d70
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x39c]
call fcn.10001d70
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x3c4]
call fcn.10001d70
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x35c]
call fcn.10001d70
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x334]
call fcn.100084f0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x314]
call fcn.10003a60
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x344]
call fcn.100084f0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x424]
call fcn.10001d70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x324]
call fcn.1000bf90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3dc]
call fcn.10001d70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44c]
call fcn.10001d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f4]
call fcn.10001d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40c]
call fcn.10001d70
jmp 0x1000bf73
push 0
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x47c]
push ecx
lea ecx, [ebp - 0x39c]
call fcn.1000e170
push eax
mov edx, dword [ebp - 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x478], eax
mov ecx, dword [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4b4], esp
lea edx, [ebp - 0x374]
push edx
call fcn.1000e730
call fcn.1000b380
add esp, 0x18
push 0x10
lea ecx, [ebp - 0x384]
call fcn.10004340
lea eax, [ebp - 0x324]
push eax
mov ecx, 0x1003762c
call fcn.1000e170
push eax
lea ecx, [ebp - 0x384]
push ecx
mov ecx, 0x10037720
call fcn.1000b2b0
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x384]
call fcn.10003b00
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x384]
call fcn.100084f0
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x374]
call fcn.10001d70
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x39c]
call fcn.10001d70
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x3c4]
call fcn.10001d70
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x35c]
call fcn.10001d70
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x334]
call fcn.100084f0
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x314]
call fcn.10003a60
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x344]
call fcn.100084f0
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov byte [ebp - 0x46d], 1
lea ecx, [ebp - 0x434]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x42a]
movzx eax, word [ebp - 0x3a2]
sub edx, eax
mov dword [ebp - 0x4a4], edx
cmp dword [ebp - 0x4a4], 2
jb 0x1000befe
mov byte [ebp - 0x46d], 0
lea ecx, [ebp - 0x3ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, byte [ebp - 0x46d]
test edx, edx
jne 0x1000bebe
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x424]
call fcn.10001d70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x324]
call fcn.1000bf90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3dc]
call fcn.10001d70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44c]
call fcn.10001d70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3f4]
call fcn.10001d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40c]
call fcn.10001d70
mov eax, 1
test eax, eax
jne 0x1000b64b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b03c
mov esp, ebp
pop ebp
ret