Function at 0x42d450
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d55f7
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [edi + 0x90]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x138], eax
mov dword [edi + 0x90], 0
test esi, esi
je 0x42d4d9
mov ecx, esi
call fcn.0042c6c0
push 0x98
push esi
call fcn.004835cc
add esp, 8
push 0
lea esi, [edi + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x42d4f0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov dword [ebp - 0xfc], 0
mov dword [ebp - 0xf8], 7
mov word [ebp - 0x10c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
mov byte [ebp - 4], 1
cmp dword [edi + 0x10], eax
jne 0x42d569
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d535
sub ecx, edx
lea eax, [ebp - 0xf4]
sar ecx, 1
push ecx
push ebx
push eax
lea eax, [ebp - 0x125]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0042cdf0
jmp 0x42d596
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x42d573
mov eax, dword [edi]
push ebx
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x125]
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.0042cc50
test al, al
jne 0x42d63c
sub esp, 8
lea ecx, [ebp - 0xc4]
call fcn.004298f0
mov edx, str.CrackUrl_remotePath__
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb4]
call fcn.004241d0
mov edx, ebx
mov ecx, eax
call fcn.004241d0
mov edx, str.__failed.
mov ecx, eax
call fcn.0042a680
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xac]
call fcn.004265c0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x78]
lea edx, [ebp - 0xdc]
call fcn.0042c220
mov edx, dword [ebp - 0xc8]
cmp edx, 8
jb 0x42d94a
mov ecx, dword [ebp - 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42d940
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dfee
jmp 0x42d940
mov edx, dword [edi + 0x64]
test edx, edx
jne 0x42d70b
cmp dword [edi + 0x28], edx
jne 0x42d672
push edx
mov edx, 3
lea ecx, [edx + 3]
call fcn.004232c0
add esp, 4
xor ecx, ecx
test al, al
mov edx, 4
cmovne ecx, edx
push 0
push 0
push 0
push ecx
jmp 0x42d684
cmp dword [edi + 0x2c], 8
lea eax, [edi + 0x18]
jb 0x42d67d
mov eax, dword [eax]
push 0
push 0
push eax
push 3
push str.yadisk
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, eax
mov dword [edi + 0x64], eax
test edx, edx
jne 0x42d70b
sub esp, 8
lea ecx, [ebp - 0xc4]
call fcn.004298f0
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, str.WinHttpOpen_userAgent__
lea ecx, [ebp - 0xb4]
call fcn.004241d0
mov edx, str.yadisk
mov ecx, eax
call fcn.004241d0
push ecx
mov edx, str.__failed_with_error__
mov ecx, eax
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xac]
call fcn.004265c0
mov byte [ebp - 4], 5
jmp 0x42d5eb
mov ecx, dword [edi + 0x68]
test ecx, ecx
jne 0x42d7fe
cmp dword [ebp - 0xf8], 8
lea eax, [ebp - 0x10c]
mov ebx, dword [ebp - 0x12c]
cmovae eax, dword [ebp - 0x10c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [edi + 0x68], ecx
test ecx, ecx
jne 0x42d7fe
push dword [edi + 0x64]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
sub esp, 8
mov dword [edi + 0x64], 0
lea ecx, [ebp - 0xc4]
call fcn.004298f0
mov edx, str.WinHttpConnect_hostName__
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb4]
call fcn.004241d0
cmp dword [ebp - 0xf8], 8
lea edx, [ebp - 0x10c]
push dword [ebp - 0xfc]
cmovae edx, dword [ebp - 0x10c]
mov ecx, eax
call fcn.0042a220
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ecx
mov edx, str.__portNumber__
mov ecx, esi
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.0042f9a0
push ecx
mov edx, str.__failed_with_error__
mov ecx, eax
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xac]
call fcn.004265c0
mov byte [ebp - 4], 7
jmp 0x42d5eb
cmp byte [ebp - 0x125], 0
mov ebx, 0x40
mov edx, dword [ebp - 0x138]
mov eax, 0x800040
cmovne ebx, eax
test edx, edx
je 0x42d84a
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x138], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d827
sub ecx, dword [ebp - 0x138]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xf4]
call fcn.00413720
mov ecx, dword [edi + 0x68]
cmp dword [ebp - 0xe0], 8
lea eax, [ebp - 0xf4]
push ebx
cmovae eax, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0x144]
push 0
push 0
push 0
push eax
push ebx
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edx, eax
mov dword [esi], edx
test edx, edx
jne 0x42d95c
push dword [edi + 0x68]
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call esi
push dword [edi + 0x64]
mov dword [edi + 0x68], 0
call esi
sub esp, 8
mov dword [edi + 0x64], 0
lea ecx, [ebp - 0xc4]
call fcn.004298f0
mov edx, str.WinHttpOpenRequest_method__
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb4]
call fcn.004241d0
mov edx, ebx
mov ecx, eax
call fcn.004241d0
mov edx, str.__resourcePath__
mov ecx, eax
call fcn.004241d0
cmp dword [ebp - 0xe0], 8
lea edx, [ebp - 0xf4]
push dword [ebp - 0xe4]
cmovae edx, dword [ebp - 0xf4]
mov ecx, eax
call fcn.0042a220
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.__failed_with_error__
mov ecx, esi
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xac]
call fcn.004265c0
mov byte [ebp - 4], 9
jmp 0x42d5eb
push edx
push ecx
call fcn.004835cc
add esp, 8
lea ecx, [ebp - 0xc4]
call fcn.00428940
xor bl, bl
jmp 0x42df35
mov eax, dword [ebp + 0x28]
mov ecx, 0x2710
test eax, eax
cmovne ecx, eax
push ecx
push ecx
push ecx
push ecx
push edx
mov dword [ebp - 0x13c], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea eax, [ebp - 0x13c]
push 4
push eax
push 7
push dword [esi]
call ebx
push 4
lea eax, [ebp - 0x13c]
push eax
push 6
push dword [esi]
call ebx
push 0
push 0
push 0x2f
push dword [esi]
call ebx
cmp byte [ebp - 0x125], 0
je 0x42dabc
mov edx, 3
mov dword [ebp - 0x12c], 0x2a8
push 0
lea ecx, [edx + 3]
call fcn.004232c0
add esp, 4
test al, al
je 0x42d9df
add dword [ebp - 0x12c], 0x800
push 4
lea eax, [ebp - 0x12c]
push eax
push 0x54
push dword [edi + 0x64]
call ebx
test eax, eax
jne 0x42daaa
sub esp, 8
lea ecx, [ebp - 0xc4]
call fcn.004298f0
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.WinHttpSetOption_failed_with_error__
lea ecx, [ebp - 0xb4]
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xac]
call fcn.004265c0
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0xdc]
call fcn.0042c220
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0xc8]
cmp edx, 8
jb 0x42da9f
mov ecx, dword [ebp - 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42da95
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dfee
push edx
push ecx
call fcn.004835cc
add esp, 8
lea ecx, [ebp - 0xc4]
call fcn.00428940
cmp dword [edi + 0x70], 0
lea eax, [edi + 0x70]
je 0x42dabc
push 4
push eax
push 0x1f
push dword [esi]
call ebx
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x42dad9
cmp dword [edi + 0x44], 8
lea eax, [edi + 0x30]
jb 0x42dace
mov eax, dword [eax]
push ecx
push eax
push 0x1002
push dword [esi]
call ebx
mov ecx, dword [edi + 0x58]
test ecx, ecx
je 0x42daf6
cmp dword [edi + 0x5c], 8
lea eax, [edi + 0x48]
jb 0x42daeb
mov eax, dword [eax]
push ecx
push eax
push 0x1003
push dword [esi]
call ebx
push 4
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 2
push eax
push 0x3f
push dword [esi]
call ebx
cmp dword [ebp - 0x140], 0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
je 0x42db27
add eax, dword [ebp - 0x134]
adc ecx, 0
xor edx, edx
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 7
mov word [ebp - 0x124], dx
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x12c], edx
test ecx, ecx
jl 0x42db71
jg 0x42db58
test eax, eax
jb 0x42db71
cmp ecx, 1
jg 0x42dc6b
jl 0x42db6b
test eax, eax
jae 0x42dc6b
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x130]
mov ebx, eax
neg ebx
sbb ebx, ebx
cmp byte [ebp - 0x125], 0
je 0x42dcd0
cmp byte [edi + 0x74], 0
je 0x42dcd0
push 0
push 0x30
push 0x42e470
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x42dcca
sub esp, 8
lea ecx, [ebp - 0xc4]
call fcn.004298f0
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.WinHttpSetStatusCallback_failed_with_error__
lea ecx, [ebp - 0xb4]
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0xac]
call fcn.004265c0
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0xdc]
call fcn.0042c220
mov edx, dword [ebp - 0xc8]
cmp edx, 8
jb 0x42dc52
mov ecx, dword [ebp - 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42dc48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dfee
push edx
push ecx
call fcn.004835cc
add esp, 8
mov ecx, edi
call fcn.0042cec0
lea ecx, [ebp - 0xc4]
call fcn.00428940
xor bl, bl
jmp 0x42ded8
push ecx
push eax
push str.Content_Length:__I64i_r_n
lea eax, [ebp - 0x94]
push 0x40
push eax
call fcn.0042f980
add esp, 0x14
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x124]
push eax
call fcn.0041def0
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x42dcab
push eax
lea ecx, [ebp - 0x124]
call fcn.00412db0
cmp dword [ebp - 0x110], 8
lea eax, [ebp - 0x124]
cmovae eax, dword [ebp - 0x124]
mov dword [ebp - 0x130], eax
jmp 0x42db77
mov eax, dword [ebp - 0x130]
push edi
push dword [ebp - 0x12c]
push dword [ebp - 0x134]
push dword [ebp - 0x140]
push ebx
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x42dde8
sub esp, 8
lea ecx, [ebp - 0x1fc]
call fcn.004298f0
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x134]
mov edx, str.WinHttpSendRequest_requestHeaders__
lea ecx, [ebp - 0x1ec]
call fcn.004241d0
mov edx, dword [ebp - 0x130]
mov ecx, eax
call fcn.004241d0
push ecx
mov edx, str.__requestBodyLength__
mov ecx, eax
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
push ecx
mov edx, str.__failed_with_error__
mov ecx, eax
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004265c0
mov byte [ebp - 4], 0x10
lea ecx, [edi + 0x78]
lea edx, [ebp - 0xdc]
call fcn.0042c220
mov edx, dword [ebp - 0xc8]
cmp edx, 8
jb 0x42ddcf
mov ecx, dword [ebp - 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42ddc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dfee
push edx
push ecx
call fcn.004835cc
add esp, 8
mov ecx, edi
call fcn.0042cec0
lea ecx, [ebp - 0x1fc]
call fcn.00428940
xor bl, bl
jmp 0x42ded8
push 0
push dword [esi]
mov dword [ebp - 0x14c], 4
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x42de5b
sub esp, 8
lea ecx, [ebp - 0x1fc]
call fcn.004298f0
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.WinHttpReceiveResponse_failed_with_error__
lea ecx, [ebp - 0x1ec]
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004265c0
mov byte [ebp - 4], 0x12
jmp 0x42dd81
push 0
lea eax, [ebp - 0x14c]
push eax
lea eax, [edi + 0x60]
push eax
push 0
push 0x20000013
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x42ded6
sub esp, 8
lea ecx, [ebp - 0x1fc]
call fcn.004298f0
mov byte [ebp - 4], 0x13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.WinHttpQueryHeaders_failed_with_error__
lea ecx, [ebp - 0x1ec]
call fcn.004241d0
add esp, 4
mov ecx, eax
call fcn.00424070
mov edx, 0x541864
mov ecx, eax
call fcn.004241d0
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x1e4]
call fcn.004265c0
mov byte [ebp - 4], 0x14
jmp 0x42dd81
mov bl, 1
mov edx, dword [ebp - 0x110]
cmp edx, 8
jb 0x42df18
mov ecx, dword [ebp - 0x124]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42df0e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dfee
push edx
push ecx
call fcn.004835cc
add esp, 8
xor eax, eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 7
mov word [ebp - 0x124], ax
mov edx, dword [ebp - 0xe0]
cmp edx, 8
jb 0x42df75
mov ecx, dword [ebp - 0xf4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42df6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dfee
push edx
push ecx
call fcn.004835cc
add esp, 8
mov edx, dword [ebp - 0xf8]
xor eax, eax
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 7
mov word [ebp - 0xf4], ax
cmp edx, 8
jb 0x42dfce
mov ecx, dword [ebp - 0x10c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42dfc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dfee
push edx
push ecx
call fcn.004835cc
add esp, 8
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 - 0x14]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret 0x24
call fcn.004b1db8
int3