Function at 0x4316b0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e233b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x8c], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0xb8], eax
xor eax, eax
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov edx, ecx
mov byte [ebp - 4], 1
lea eax, [edx + 1]
mov dword [ebp - 0x9c], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x431742
sub edx, dword [ebp - 0x9c]
lea eax, [ebp - 0x40]
push eax
call fcn.00424500
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push 0
push 0
push 0
push 0
push str.CCSDKProxy
mov dword [ebp - 0xb0], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xa0], eax
test eax, eax
jne 0x431824
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push 0x2ce
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0
mov esi, eax
call fcn.004a44e0
mov byte [ebp - 4], 2
mov edx, str.WinHttpOpen_error:
mov eax, dword [ebp - 0x8c]
push esi
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004a4a80
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x431b28
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x431816
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.004a78e3
add esp, 4
jmp 0x431b28
push 0x10000000
push 0
push 0
push 0
push str.CCSDKProxy
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x4318df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push 0x2db
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0
mov esi, eax
call fcn.004a44e0
mov byte [ebp - 4], 3
mov edx, str.proxy_WinHttpOpen_error:
mov eax, dword [ebp - 0x8c]
push esi
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004a4a80
mov esi, dword [ebp - 0x90]
test esi, esi
je 0x431ac9
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x4318d1
mov eax, dword [ecx]
push 1
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax]
push esi
call fcn.004a78e3
add esp, 4
jmp 0x431ac9
push 0x510ad6
push 0x38
call fcn.004aa4ef
add esp, 8
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x431907
mov ecx, eax
call fcn.00499660
mov ebx, eax
jmp 0x431909
xor ebx, ebx
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x431959
push ecx
push ebx
push 0x2e9
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], ebx
call fcn.004a44e0
mov byte [ebp - 4], 5
mov edx, str.no_proxy_resolver.
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004a4a40
jmp 0x431acf
push dword [ebp - 0xb0]
mov ecx, ebx
push dword [ebp - 0x9c]
call fcn.00499db0
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x4319d4
push ecx
push 0
push 0x2f3
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], 0
call fcn.004a44e0
mov byte [ebp - 4], 6
mov edx, str.ResolveProxy:
mov eax, dword [ebp - 0x8c]
push dword [ebp - 0xa8]
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004a4a40
jmp 0x431acf
mov ecx, dword [ebp - 0xb0]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa4]
push eax
lea edx, [ebp - 0x98]
call fcn.00431580
mov edx, dword [ebp - 0x94]
add esp, 8
test eax, eax
je 0x431b7b
lea ecx, [ebp - 0x88]
call fcn.004242a0
mov edi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
mov edx, dword [ebp - 0x98]
call fcn.004242a0
mov esi, eax
push ecx
push 0
push 0x2fe
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x90]
push str.WinhttpProxyClient.cpp
mov dword [ebp - 0x90], 0
call fcn.004a44e0
mov byte [ebp - 4], 9
mov edx, str.crack_host_error:
mov eax, dword [ebp - 0x8c]
push dword [ebp - 0xa4]
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
mov edx, esi
mov ecx, eax
call fcn.0040a2f0
mov edx, 0x4f77ac
mov ecx, eax
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.0040f380
mov edx, 0x4f77ac
mov ecx, eax
call fcn.00403cd0
mov edx, edi
mov ecx, eax
call fcn.0040a2f0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 8
call fcn.004a4a40
lea ecx, [ebp - 0x70]
call fcn.00403100
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00403100
mov edi, dword [ebp - 0x98]
mov esi, dword [ebp - 0x94]
push dword [ebp - 0xa0]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x431aec
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x431b00
mov ecx, ebx
call fcn.00499750
push ebx
call fcn.004a78e3
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test edi, edi
je 0x431b1c
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
je 0x431b28
push esi
push 0
call eax
push eax
call ebx
push 3
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x4f77fc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00409170
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0xb4], 0xc8
jne 0x431d95
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
cmp word [edx], 0
jne 0x431d63
xor ecx, ecx
jmp 0x431d7f
lea ecx, [ebp - 0x70]
call fcn.004242a0
mov edi, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x88]
mov edx, dword [ebp - 0x98]
call fcn.004242a0
mov esi, eax
push ecx
push 0
push 0x301
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xac]
push str.WinhttpProxyClient.cpp
mov dword [ebp - 0xac], 0
call fcn.004a44e0
mov byte [ebp - 4], 0xc
mov edx, str.crack_host:
mov eax, dword [ebp - 0xa8]
push dword [ebp - 0xa4]
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
mov edx, esi
mov ecx, eax
call fcn.0040a2f0
mov edx, 0x4f77ac
mov ecx, eax
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.0040f380
mov edx, 0x4f77ac
mov ecx, eax
call fcn.00403cd0
mov edx, edi
mov ecx, eax
call fcn.0040a2f0
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 0xb
call fcn.004a4a40
lea ecx, [ebp - 0x88]
call fcn.00403100
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00403100
push 0x7530
push 0x7530
push 0x7530
push 0x7530
push dword [ebp - 0xa0]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x431cba
push ecx
push eax
push 0x308
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
call fcn.004a44e0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x8c]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.set_timeout_error:
mov ecx, esi
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004a4a40
jmp 0x431ac3
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x58]
mov edi, dword [ebp - 0x98]
mov edx, ebx
push eax
push ecx
push dword [ebp + 0x14]
lea eax, [ebp - 0xb4]
push dword [ebp - 0xb8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x8c]
push esi
push ecx
mov ecx, dword [ebp - 0xa0]
push edi
call fcn.00431050
add esp, 0x28
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x431acf
push ecx
push 0
push 0x31a
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0
call fcn.004a44e0
mov byte [ebp - 4], 0xe
mov edx, str.SendRequestToHost:
mov eax, dword [ebp - 0xb8]
push dword [ebp - 0x8c]
push ecx
mov ecx, dword [eax + 0x10]
call fcn.00403cd0
add esp, 4
mov ecx, eax
call fcn.004075f0
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 1
call fcn.004a4a40
jmp 0x431acf
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x431d70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x431d70
sub ecx, esi
sar ecx, 1
push ecx
push edx
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004082e0
test eax, eax
jne 0x431d95
mov bl, 1
jmp 0x431d97
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x431da8
push dword [ebp - 0x28]
call fcn.004a78e3
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x431dcd
push dword [ebp - 0x40]
call fcn.004a78e3
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x431df2
push dword [ebp - 0x58]
call fcn.004a78e3
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 0x10