Function at 0x4466f1
Capabilities:
Send data

Disassembly:
sub esp, 0x6c
mov eax, dword [0x45a220]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push esi
mov esi, dword [esp + 0x7c]
push edi
lea edi, [esi + 0x10108]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x10128], 0
lea ebp, [esi + 0x10124]
push edi
jne 0x4468ec
inc dword [ebp]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx]
test eax, eax
jne 0x4468af
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x10]
cmp ecx, 7
je 0x4468a9
cmp ecx, 6
ja case.0x446669.2
jmp dword [ecx*4 + 0x446964]
push 0
push 0
push 0
push 0
push dword [esi + 8]
mov dword [esi + 0x10], 6
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne case.0x446669.2
call edi
mov dword [ebx], eax
jmp case.0x446669.2
mov eax, dword [esi + 0x100]
xorps xmm0, xmm0
push esi
push 0
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
push 0
push eax
push dword [esi + 8]
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x6c], xmm0
mov dword [esp + 0x4c], 0x28
mov dword [esi + 0x10], 4
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne case.0x446669.2
call edi
mov dword [ebx], eax
jmp case.0x446669.2
mov ecx, dword [esi + 0xec]
lea ebp, [esi + 0xec]
lea edi, [esi + 0xf0]
mov dword [esi + 0x10], 5
mov eax, dword [edi + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
movups xmmword [esp + 0x60], xmm0
cmp eax, ecx
jb 0x44695d
sub eax, ecx
or edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x446742
mov eax, dword [edi]
add eax, ecx
lea ecx, [esp + 0x60]
push edx
push eax
call fcn.00445470
lea eax, [esp + 0x60]
cmp edi, eax
je 0x446773
mov ecx, edi
call fcn.00445d00
movups xmm0, xmmword [esp + 0x60]
movups xmmword [edi], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [edi + 0x10], xmm0
jmp 0x4467a9
mov ecx, dword [esp + 0x74]
cmp ecx, 0x10
jb 0x4467a9
mov edx, dword [esp + 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x44679f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4468be
push ecx
push edx
call fcn.0044c648
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x4467b1
mov edi, dword [edi]
push ebp
push dword [esi + 0x100]
push edi
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne case.0x446669.2
call edi
mov dword [ebx], eax
jmp case.0x446669.2
push 0
push 8
push 0
push dword [esi + 8]
mov dword [esi + 0x10], 6
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
jne case.0x446669.2
call edi
mov dword [ebx], eax
jmp case.0x446669.2
push esi
push 0xc
lea eax, [esp + 0x18]
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
mov dword [esp + 0x18], 0x28
push eax
push dword [esi + 8]
lea ebp, [esi + 0x108]
movlpd qword [esp + 0x24], xmm0
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x3c], xmm0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0xffff
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x446857
call edi
mov dword [ebx], eax
cmp eax, 0x3e5
je case.0x446669.2
mov edi, dword [esp + 0x28]
test edi, edi
je 0x4468c4
mov eax, dword [esi + 0x80]
test eax, eax
je 0x446879
push eax
push edi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
jmp 0x446893
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446880
sub ecx, edx
push ecx
push ebp
lea ecx, [esi + 0x4c]
call fcn.00447330
add dword [esi + 0x84], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx]
test eax, eax
je 0x446654
lea ebp, [esi + 0x10124]
mov edi, ebp
test eax, eax
je 0x446901
cmp eax, 0x3e5
je 0x446901
jmp 0x4468f8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [esi + 0x10], 7
mov byte [esi + 0xe9], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x1012c]
lea edi, [esi + 0x10124]
mov dword [esi + 0x1012c], eax
jmp 0x446901
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebx], 0x3e3
mov byte [esi + 0xe8], 1
mov edi, ebp
lea ebx, [esi + 0x10108]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi]
dec eax
cmp byte [esi + 0x10128], 1
mov dword [edi], eax
jne 0x446943
test eax, eax
jne 0x446943
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0044bf41
add esp, 0x6c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bf41
add esp, 0x6c
ret
call fcn.004472d0
nop
jo 0x4469cc
inc esp
add byte [ecx - 0x60ffbb9a], bl
push 0x689f0044
inc esp
add cl, dh
inc sp
add cl, bl
inc esp
add byte [eax], al
push 0x4c8b0044
and al, 8
mov eax, dword [ecx]
cmp eax, dword [0x45a528]
jne 0x4469b5
cmp dword [esp + 0xc], 0x64
jne 0x4469b5
mov eax, dword [esp + 0x10]
cmp dword [eax], 0
je 0x4469ae
add eax, 4
push eax
push ecx
call fcn.00446600
add esp, 8
ret 0x14
mov byte [ecx + 0xe8], 1
ret 0x14
les ecx, [ecx + 0xac2484]
add byte [eax], al
push ebx
mov ebx, dword [esp + 0xc0]
push ebp
push esi
push edi
mov edi, dword [esp + 0xc4]
lea esi, [ebx + 0x10108]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [ebx + 0x10128], 0
push esi
jne 0x446f4a
inc dword [ebx + 0x10124]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebx + 0xe9], 0
jne 0x446a23
cmp byte [ebx + 0xe8], 0
je 0x446f50
mov eax, dword [ebx + 0x80]
test eax, eax
je 0x446a43
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
push dword [ebx + 0x80]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 8
push 0xfff0b9d7
push edi
call dword [0x455734]
add esp, 8
cmp byte [ebx + 0xe9], 0
je 0x446ee1
mov esi, dword [sym.luart_static.exe_lua_createtable]
push 2
push 0
push edi
mov dword [esp + 0x20], 0xff
call esi
push 1
push 0
push edi
call esi
mov ebp, dword [sym.luart_static.exe_lua_setfield]
push str.cookies
push 0xfffffffffffffffe
push edi
call ebp
add esp, 0x24
cmp byte [ebx + 0x64], 0
jne 0x446aba
cmp dword [ebx + 0x60], 0x10
lea eax, [ebx + 0x4c]
jb 0x446a9f
mov eax, dword [eax]
push dword [ebx + 0x84]
push eax
push edi
call dword [0x4556f0]
push str.content
push 0xfffffffffffffffe
push edi
call ebp
add esp, 0x18
mov ebp, dword [sym.luart_static.exe_lua_pushinteger]
push 0
push dword [ebx + 0x1012c]
push edi
call ebp
push str.elapsed
push 0xfffffffffffffffe
push edi
call dword [0x455748]
add esp, 0x18
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 4
push 0
push eax
lea eax, [esp + 0x24]
push eax
push 0x20000013
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x446b69
cmp dword [ebx + 0x80], 0
je 0x446b2f
cmp dword [esp + 0x1c], 0xc8
je 0x446b2f
cmp dword [ebx + 0x7c], 0x10
lea eax, [ebx + 0x68]
jb 0x446b28
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push dword [esp + 0x20]
push edi
call ebp
mov ebp, dword [sym.luart_static.exe_lua_setfield]
push str.status
push 0xfffffffffffffffe
push edi
call ebp
cmp dword [esp + 0x34], 0x190
sbb eax, eax
neg eax
push eax
push edi
call dword [0x4556f4]
push 0x454c00
push 0xfffffffffffffffe
push edi
call ebp
add esp, 0x2c
push 6
push 0
push edi
call esi
mov eax, dword [esp + 0x20]
mov ebp, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
inc eax
push eax
push 1
call ebp
add esp, 0x14
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push esi
push 0x16
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x446bf6
nop dword [eax]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x446bc1
mov eax, dword [esp + 0x14]
inc eax
push eax
push 1
call ebp
jmp 0x446bcd
push str.failed_to_retrieve_response_headers
push edi
call dword [0x455718]
mov eax, dword [esp + 0x1c]
add esp, 8
inc eax
push eax
push 1
call ebp
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push esi
push 0x16
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x446ba0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x44]
push eax
push 0x14
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x446c3a
push dword [esp + 0x20]
lea eax, [esp + 0x40]
push eax
push edi
call dword [0x4556f0]
push str.reason
push 0xfffffffffffffffd
push edi
call dword [0x455748]
add esp, 0x18
mov ecx, esi
xor ebp, ebp
xorps xmm0, xmm0
mov dword [esp + 0x10], ebp
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446c55
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x2c]
call fcn.00445470
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
cmp dword [esp + 0x38], 0x10
lea eax, [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmovae eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
cmp ecx, 2
jb 0x446cea
add ecx, 0xfffffffe
cmp ebp, ecx
ja 0x446cea
lea ebp, [ecx + eax]
mov ecx, dword [esp + 0x10]
add ecx, eax
lea eax, [ebp + 1]
sub eax, ecx
push eax
push 0xd
push ecx
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x446ce6
nop word [eax + eax]
mov eax, 0xa0d
cmp word [esi], ax
je 0x446d70
inc esi
lea eax, [ebp + 1]
sub eax, esi
push eax
push 0xd
push esi
call sub.VCRUNTIME140.dll_memchr
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x446cc0
mov ebp, dword [esp + 0x10]
cmp dword [ebx + 0xb4], 0x10
lea eax, [ebx + 0xa0]
jb 0x446cfb
mov eax, dword [eax]
cmp dword [ebx + 0x30], 0x10
lea edx, [ebx + 0x1c]
jb 0x446d06
mov edx, dword [edx]
push eax
sub esp, 0x18
mov ecx, edx
mov esi, esp
xorps xmm0, xmm0
lea eax, [ecx + 1]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esp + 0x34], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446d30
sub ecx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.00445470
push 0x3a
sub esp, 0x18
xorps xmm0, xmm0
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov eax, dword [esp + 0x6c]
cmp eax, ebp
jb 0x446fb5
jmp 0x446e38
sub esi, dword [esp + 0x18]
cmp esi, 0xffffffff
je 0x446ce6
cmp dword [ebx + 0x30], 0x10
lea edx, [ebx + 0x1c]
jb 0x446d88
mov edx, dword [edx]
cmp dword [ebx + 0xb4], 0x10
lea eax, [ebx + 0xa0]
jb 0x446d99
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, edx
mov ebp, esp
xorps xmm0, xmm0
lea eax, [ecx + 1]
movups xmmword [ebp], xmm0
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [esp + 0x34], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446dc0
sub ecx, dword [esp + 0x34]
push ecx
push edx
mov ecx, ebp
call fcn.00445470
mov ebp, dword [esp + 0x2c]
xorps xmm0, xmm0
push 0x3a
sub esp, 0x18
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov eax, dword [esp + 0x6c]
cmp eax, ebp
jb 0x446fb5
sub eax, ebp
mov ecx, esi
sub ecx, ebp
cmp eax, ecx
cmovb ecx, eax
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push ecx
add eax, ebp
mov ecx, edx
push eax
call fcn.00445470
push edi
call fcn.00448570
lea ebp, [esi + 2]
add esp, 0x3c
mov dword [esp + 0x10], ebp
jmp 0x446c73
sub eax, ebp
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [esp + 0x70], 0x10
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
push ecx
add eax, ebp
mov ecx, edx
push eax
call fcn.00445470
push edi
call fcn.00448570
mov ebp, dword [sym.luart_static.exe_lua_setfield]
push str.headers
push 0xfffffffffffffffe
push edi
call ebp
add esp, 0x48
cmp byte [ebx + 0x64], 0
je 0x446ebd
cmp dword [ebx + 0x7c], 0x10
lea eax, [ebx + 0x68]
jb 0x446e86
mov eax, dword [eax]
push eax
push edi
call dword [0x455688]
push 1
push str.File
push edi
call dword [0x4556c0]
push 0xffffffffffffffff
push 0xfffffffffffffffe
push edi
call dword [0x455738]
push 0xfffffffffffffffe
push edi
call dword [0x455680]
push str.file
push 0xfffffffffffffffe
push edi
call ebp
add esp, 0x34
push 0xffffffffffffffff
push edi
call dword [0x455734]
push str.response
push 0xfff0b9d7
push edi
call ebp
add esp, 0x14
lea ecx, [esp + 0x24]
call fcn.00445d00
jmp 0x446f06
cmp byte [ebx + 0xe8], 0
je 0x446f06
cmp dword [ebx + 0x7c], 0x10
lea eax, [ebx + 0x68]
jb 0x446ef5
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [0x4556e8]
add esp, 4
mov esi, dword [ebx + 0x10138]
lea edi, [ebx + 0x10138]
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.00445500
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
push ebx
mov dword [ebx + 0x80], 0
mov byte [ebx + 0x64], 0
call fcn.00449320
add esp, 4
mov eax, 2
jmp 0x446f9c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x10124]
dec eax
cmp byte [ebx + 0x10128], 1
mov dword [ebx + 0x10124], eax
jne 0x446f83
test eax, eax
jne 0x446f83
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x446f8a
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x4469c0
push ebx
push 0
push edi
call dword [0x455700]
add esp, 0x10
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044bf41
add esp, 0xb0
ret
call fcn.004472d0
int3