Function at 0x431e20
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e23fd
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
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc0], eax
xor eax, eax
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x98], edi
mov dword [ebp - 0xac], 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 0x431ec4
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 - 0xb4], eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0xa4], eax
test eax, eax
jne 0x431fa6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push 0x370
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 0x4322aa
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x431f98
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 0x4322aa
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 0x432061
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push 0
push 0x37d
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 0x43224b
push dword [esi + 4]
call fcn.004a861d
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x432053
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 0x43224b
push 0x510ad6
push 0x38
call fcn.004aa4ef
add esp, 8
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x432089
mov ecx, eax
call fcn.00499660
mov ebx, eax
jmp 0x43208b
xor ebx, ebx
mov byte [ebp - 4], 1
test ebx, ebx
jne 0x4320db
push ecx
push ebx
push 0x38b
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 0x432251
push dword [ebp - 0xb4]
mov ecx, ebx
push dword [ebp - 0x9c]
call fcn.00499db0
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x432156
push ecx
push 0
push 0x395
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 0x432251
mov ecx, dword [ebp - 0xb4]
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xac]
push eax
lea edx, [ebp - 0x98]
call fcn.00431580
add esp, 8
test eax, eax
je 0x43230a
mov edx, dword [ebp - 0x94]
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 0x3a0
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:
mov eax, dword [ebp - 0x8c]
push dword [ebp - 0xac]
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 - 0xa4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x43226e
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test ebx, ebx
je 0x432282
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 0x43229e
push edi
push 0
call eax
push eax
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test esi, esi
je 0x4322aa
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
cmp dword [ebp - 0xb0], 0
mov byte [ebp - 4], 0xc
je 0x43246c
cmp dword [ebp - 0xa0], 0xc8
jne 0x432468
cmp dword [ebp - 0x14], 8
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
cmp word [edx], 0
jne 0x43243e
xor ecx, ecx
jmp 0x432452
push 0x7530
push 0x7530
push 0x7530
push 0x7530
push dword [ebp - 0xa4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push ecx
test eax, eax
jne 0x43238a
push eax
push 0x3aa
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x90], eax
call fcn.004a44e0
mov byte [ebp - 4], 0xa
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 0x432245
push dword [ebp - 0xc0]
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0xb0]
mov edi, dword [ebp - 0x98]
lea eax, [ebp - 0xa0]
push dword [ebp + 0x14]
mov edx, ebx
push dword [ebp - 0xb8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x8c]
push esi
push ecx
mov ecx, dword [ebp - 0xa4]
push edi
call fcn.004312e0
add esp, 0x30
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x432251
push ecx
push 0
push 0x3be
push str.WinhttpProxyClient.cpp
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0
call fcn.004a44e0
mov byte [ebp - 4], 0xb
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 0x432251
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x432443
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 0x432468
mov bl, 1
jmp 0x432479
xor bl, bl
jmp 0x432479
cmp dword [ebp - 0xa0], 0xc8
sete bl
cmp dword [ebp - 0x14], 8
jb 0x43248a
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 0x4324af
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 0x4324d4
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 0x18