Function at 0x412ad0
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub esp, 0x48
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, 4
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xor eax, eax
cmp dword [esi + 0x3c], 1
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], 0x927c0
mov dword [esp + 0xc], ebp
mov byte [esp + 0x2c], 0
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov word [esp + 0x49], ax
mov byte [esp + 0x4b], al
mov dword [esp + 0x24], 0x20
jne 0x412b6c
cmp dword [esi + 0x320], ebp
jne 0x412b48
push esi
call fcn.004131c0
lea edx, [esi + 0x324]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412b53
sub eax, edi
push ebp
push ebp
jne 0x412b67
push ebp
push 1
jmp 0x412b70
push edx
push 3
jmp 0x412b70
push ebp
push ebp
push ebp
push ebp
push str.SVN3000
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebp
mov dword [esi + 0x3ac], eax
jne 0x412bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_Failed__Error_code_:_d
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
movzx ecx, word [esi + 0x4c]
push ebp
push ebp
push 3
push 0x42dd80
push 0x42dd80
push ecx
lea edx, [esi + 0x54]
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebp
mov dword [esi + 0x3b0], eax
jne 0x412be9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Internet_Connect_Failed__Error_code_:_d
jmp 0x412b91
mov ecx, 0x43b0a0
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x412bf1
sub ecx, edi
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
je 0x412c50
mov ecx, 0x43b0a0
lea edi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x412c10
sub ecx, edi
add ecx, 1
push ecx
push 0x43b0a0
push 0x2b
push eax
call ebx
mov eax, 0x43b1a0
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412c31
sub eax, edx
add eax, 1
push eax
mov eax, dword [esi + 0x3b0]
push 0x43b1a0
push 0x2c
push eax
call ebx
mov ecx, dword [esi + 0x318]
mov edx, dword [esi + 0x3b0]
push 0
push 0x4800000
push 0
push 0
push str.HTTP_1.0
push ecx
push 0x43203c
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esi + 0x3b4], eax
jne 0x412c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.HttpOpenRequest_Failed__Error_code_:_d
jmp 0x412b91
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
test eax, eax
jne 0x412cbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetQueryOption_Failed__Error_code_:_d
jmp 0x412b91
mov ecx, dword [esi + 0x3b4]
or dword [esp + 0x10], 0x3180
push 4
lea eax, [esp + 0x14]
push eax
push 0x1f
push ecx
call ebx
test eax, eax
jne 0x412ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_Option_Failed__Error_code_:_d
jmp 0x412b91
mov edi, dword [sym.imp.WININET.dll_InternetErrorDlg]
mov eax, dword [esi + 0x3b4]
push 4
lea edx, [esp + 0x1c]
push edx
push 6
push eax
call ebx
test eax, eax
je 0x412ea1
mov edx, dword [esi + 0x3b4]
push 4
lea ecx, [esp + 0x1c]
push ecx
push 5
push edx
call ebx
test eax, eax
je 0x412eb2
mov eax, dword [esi + 0x3b4]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x412f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
push ebp
push str.send_request_failed:_d_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
cmp ebp, 0x2f0d
jne 0x412d76
cmp dword [esi + 0x4bc], 0x541
je 0x412da0
jmp 0x412e21
cmp ebp, 0x2f06
jne 0x412db4
cmp dword [esi + 0x4bc], 0x541
jne 0x412e21
push str.HttpSendRequest_receive_error:_ERROR_INTERNET_SEC_CERT_CN_INVALID.
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
cmp ebp, 0x2f0c
je 0x412ec3
cmp ebp, 0x2ee2
jne 0x412e15
push str.send_https_request_timeout_
mov ecx, 0x43b48c
call fcn.0040a090
mov eax, dword [esp + 0x10]
add eax, 1
add esp, 4
cmp eax, 6
mov dword [esp + 0xc], eax
jle 0x412cf1
push str.Connect_to_SVN_Timeout_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
cmp ebp, 0x2efd
je 0x412f29
push ebp
push str.first_Request_Error_code_:_d
mov ecx, 0x43b48c
call fcn.0040a090
mov ecx, dword [esi + 0x3b4]
mov edx, dword [0x43af78]
add esp, 8
push 0
push 7
push ebp
push ecx
push edx
call edi
cmp eax, 0x4c7
mov ecx, 0x43b48c
je 0x412ee5
push str.Error_Dlg_retry
call fcn.0040a090
mov eax, dword [esp + 0x10]
add eax, 1
add esp, 4
cmp eax, 6
mov dword [esp + 0xc], eax
jl 0x412cf1
push str.retry_timeout
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_RECEIVE_Option_Failed__Error_code_:_d
jmp 0x412b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Set_SEND_Option_Failed__Error_code_:_d
jmp 0x412b91
mov eax, dword [esi + 0x3b4]
mov ecx, dword [0x43af78]
push 0
push 7
push 0x2f0c
push eax
push ecx
call edi
test eax, eax
mov ecx, 0x43b48c
je 0x412f07
push str.Error_Dlg_Error
call fcn.0040a090
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
push str.Error_Dlg_retry
call fcn.0040a090
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
push str.Get_userid_err____internet_cannot_connect
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
mov ecx, dword [esi + 0x3b4]
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push 0x20000013
push ecx
call ebx
mov eax, dword [esp + 0x28]
cmp eax, 0x197
jne 0x413109
cmp dword [esi + 0x3a4], 3
jge 0x4130e2
push 0x400
mov dword [esp + 0x10], 0x400
call fcn.0041ae22
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x14], 0
je 0x413095
mov ebp, 8
mov edx, dword [esp + 0xc]
push edx
push 0
push edi
call fcn.00420f50
mov edx, dword [esi + 0x3b4]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
push 0x29
push edx
call ebx
test eax, eax
je 0x413056
push edi
push str.NTLM
call fcn.0041d5c0
add esp, 8
test eax, eax
jne 0x413001
or word [esi + 0x3a8], 2
jmp 0x41308d
push 5
push str.Basic
push edi
call fcn.004295a0
add esp, 0xc
test eax, eax
jne 0x41301f
or word [esi + 0x3a8], 1
jmp 0x41308d
push edi
push str.Negotiate
call fcn.0041d5c0
add esp, 8
test eax, eax
jne 0x41303a
or word [esi + 0x3a8], bp
jmp 0x41308d
push edi
push str.Kerberos
call fcn.0041d5c0
add esp, 8
test eax, eax
jne 0x41308d
or word [esi + 0x3a8], 4
jmp 0x41308d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov ecx, 0x43b48c
jne 0x4130a9
mov eax, dword [esp + 0xc]
push eax
push str.Buffer_is_insufficient__need__d
call fcn.0040a090
push edi
call fcn.0041b96e
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.0041ae22
add esp, 4
mov edi, eax
test edi, edi
jne 0x412fb8
push str.Failed_to_alloc_memory_for_querying_http_header_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
jmp 0x4130b7
push eax
push str.Query_proxy_authenticate_return__d
call fcn.0040a090
add esp, 8
test edi, edi
je 0x4130c4
push edi
call fcn.0041b96e
add esp, 4
add dword [esi + 0x3a4], 1
mov eax, 0x197
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
push str.Fail_to_attempt_proxy_userpassword_for_3_times_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
cmp eax, 0xc8
je 0x41311b
push eax
push str.http_query_info_failed_status_code__d_
jmp 0x412b91
mov ecx, dword [esi + 0x3b4]
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
push eax
push 5
push ecx
call ebx
test eax, eax
je 0x4131a7
lea edx, [esp + 0x2c]
push edx
call fcn.0041d6e3
add esp, 4
test eax, eax
jne 0x41318e
movzx ecx, byte [0x439ca8]
mov edx, dword [ecx*4 + 0x439150]
push eax
mov eax, dword [0x439cac]
push eax
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push str.download_file_size_error_
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 4
or ebp, 0xffffffff
mov eax, ebp
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret
push eax
push str.The_file_size_if__d
mov ecx, 0x43b48c
mov dword [esi + 0x4c0], eax
call fcn.0040a090
add esp, 8
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0041aec3
add esp, 0x48
ret