Function at 0x421920
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1160
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x56b114]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x90], 0
je 0x42198b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call sym.R2ClientInstall.exe_private:_void___thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::_ReleasePostContext_void____void____void___
mov eax, dword [ebp - 0x28]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x421977
push eax
call edi
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x421981
push eax
call edi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42198b
push eax
call edi
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x28], 0
test ebx, ebx
jne 0x4219f1
push dword [esi + 0x48]
mov eax, dword [esi + 0x38]
test eax, eax
push dword [esi + 0x44]
mov ecx, dword [sym.R2ClientInstall.exe_char_const__const_Ryeol::CHttpToolA::szDefUsrAgent]
push dword [esi + 0x40]
cmovne ecx, eax
push dword [esi + 0x3c]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
test ebx, ebx
je 0x421b20
mov dword [ebp + 8], ebx
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
test ecx, ecx
jne 0x421a1b
push dword [ebp + 0x20]
mov ecx, esi
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push ebx
call sym.R2ClientInstall.exe_public:_void____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::OpenConnection_void___char_const___char_const___char_const__
mov ecx, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], ecx
mov dword [ebp + 0xc], ecx
cmp dword [esi + 0x34], 0
mov eax, dword [ebp + 0x10]
mov edi, eax
mov dword [ebp - 0x18], edi
je 0x421a87
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call sym.R2ClientInstall.exe_public:_unsigned_long_int___thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::MakeGetUrlLen_char_const__
xor ecx, ecx
add eax, 1
adc ecx, ecx
push ecx
push eax
lea ecx, [ebp + 0x20]
call fcn.00428d80
mov eax, dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
push 1
mov dword [ebp + 0x20], eax
call fcn.004283d0
mov dword [ebp - 4], 0
push dword [ebp + 0x20]
call fcn.004cdcdf
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x421b33
push dword [ebp + 0x10]
mov ecx, esi
mov dword [ebp - 0x14], 1
push edi
call sym.R2ClientInstall.exe_public:_char____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::MakeGetUrl_char___char_const__
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push edi
push dword [sym.R2ClientInstall.exe_char_const__const_Ryeol::CHttpToolA::szGET]
push dword [ebp - 0x24]
call sym.R2ClientInstall.exe_public:_void____thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::OpenRequest_void___char_const___char_const___unsigned_long_int__char_const__
push eax
mov ecx, esi
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x28], eax
call sym.R2ClientInstall.exe_public:_void___thiscall_Ryeol::CHttpClientT_class_Ryeol::CHttpToolA__class_Ryeol::CHttpEncoderA_::AddRequestHeader_void__
cmp dword [ebp - 0x14], 0
je 0x421ad0
test edi, edi
je 0x421abf
push edi
call fcn.004cdcc2
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 0
test edi, edi
cmove eax, edi
mov dword [ebp - 0x18], eax
push dword [esi + 0x1c]
mov esi, dword [ebp + 0x10]
push 0
push esi
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::SendRequest_void___char_const___unsigned_int_
add esp, 0xc
push 0x28
call fcn.004c3956
add esp, 4
xor edx, edx
cmp dword [ebp - 0x1c], edx
mov ecx, eax
mov eax, dword [ebp - 0x24]
cmovne eax, edx
push esi
push eax
xor eax, eax
cmp dword [ebp - 0x20], eax
cmovne ebx, eax
push ebx
call sym.R2ClientInstall.exe_public:_void___thiscall_Ryeol::CHttpResponseT_class_Ryeol::CHttpToolA_::constructor_void___void___void__
test eax, eax
je 0x421b3a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x192
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int__unsigned_long_int__char_const__
push 0x66
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int_
push 0x66
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int_
push dword [ebp - 0x2c]
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_class_SafeIntException__
cmp dword [ebp - 0x14], 0
je 0x421b5f
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421b5f
push eax
call fcn.004cdcc2
add esp, 4
lea eax, [ebp - 0x28]
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::CloseConnection_void___
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x421b7d
lea eax, [ebp + 0xc]
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::CloseConnection_void___
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x421b8f
lea eax, [ebp + 8]
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::CloseConnection_void___
add esp, 4
push 0
push 0
call fcn.004c78f8
cmp dword [ebp - 0x14], 0
je 0x421bae
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x421bae
push eax
call fcn.004cdcc2
add esp, 4
lea eax, [ebp - 0x28]
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::CloseConnection_void___
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x421bcc
lea eax, [ebp + 0xc]
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::CloseConnection_void___
add esp, 4
cmp dword [ebp - 0x20], 0
jne 0x421bde
lea eax, [ebp + 8]
push eax
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::CloseConnection_void___
add esp, 4
push 0x64
call sym.R2ClientInstall.exe_public:_static_void___cdecl_Ryeol::CHttpToolA::ThrowException_unsigned_long_int_
int3