Function at 0x4223d0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
cmp dword [0x505244], 0xffffffff
jne 0x4225d2
mov esi, dword [esp + 0x24]
push 0x20
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov ecx, esi
add esp, 4
mov ebx, eax
mov word [eax], 0x2f
mov ebp, dword [esi + 0x4c]
mov edi, 0x20
test ebp, ebp
je 0x42244e
mov esi, dword [ecx + 0x50]
test esi, esi
je 0x42244e
cmp ebp, 0x1e
jbe 0x422455
lea eax, [ebp + 2]
mov ecx, 0x20
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x422420
push edi
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
inc eax
push ebp
push esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [ebx + ebp + 1], 0
inc ebp
test edi, edi
jne 0x422469
mov al, 1
jmp 0x42247e
mov ebp, 1
jmp 0x42246d
mov eax, ebx
inc eax
push ebp
push esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [ebx + ebp + 1], 0
inc ebp
mov ecx, dword [esp + 0x24]
mov eax, ebp
not eax
add eax, edi
cmp eax, 7
ja 0x4224bb
xor eax, eax
test edi, edi
jne 0x422483
mov edi, 0x20
lea ecx, [ebp + 9]
mov edx, edi
nop dword [eax + eax]
mov edi, edx
add edx, edx
cmp ecx, edi
ja 0x422490
test al, al
je 0x4224bf
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
test ebp, ebp
je 0x4224cd
lea eax, [ebp + 1]
push eax
push ebx
push esi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x4224d2
mov esi, ebx
jmp 0x4224d6
push edi
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, eax
jmp 0x4224d2
mov byte [esi], 0
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov dword [esi + ebp + 4], 0x3d74616d
mov dword [esi + ebp], 0x726f663f
mov byte [esi + ebp + 8], 0
mov edx, dword [ecx + 0x58]
test edx, edx
je 0x42259b
mov ecx, dword [ecx + 0x5c]
test ecx, ecx
je 0x42259b
lea ebx, [ebp + 8]
test edi, edi
je 0x422512
mov eax, edi
sub eax, ebp
add eax, 0xfffffff7
cmp eax, edx
jae 0x42254e
mov dword [esp + 8], ecx
cmp edi, 2
mov eax, 0x20
cmovae eax, edi
lea ecx, [edx + ebx]
mov dword [esp + 4], ecx
mov dword [esp], ebx
lea ecx, [edx + ebx]
inc ecx
nop
mov ebx, eax
add eax, eax
cmp ecx, ebx
ja 0x422530
mov dword [esp + 0xc], edx
test edi, edi
je 0x422553
push ebx
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov esi, eax
jmp 0x422579
lea ebp, [edx + ebx]
jmp 0x42258a
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
cmp dword [esp], 0
je 0x422574
add ebp, 9
push ebp
push esi
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x422577
mov byte [edi], 0
mov esi, edi
mov edi, ebx
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov ebx, dword [esp]
mov ebp, dword [esp + 4]
add ebx, esi
push edx
push ecx
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esi + ebp], 0
push str.User_Agent:_curl_0.0.0_r_n
push esi
push str.wttr.in
push 0x50775c
call fcn.004744c0
add esp, 0x10
movzx eax, al
mov dword [0x505244], eax
test edi, edi
je 0x4225ca
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 0x14
jmp 0x4225cd
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 0x45
push str.Error:_this_module_can_only_be_used_once_due_to_internal_limitations_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3