Function at 0x422e30
Capabilities:
Connect to http server
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1a94
call fcn.0051ec70
mov eax, dword [0x577830]
xor eax, esp
mov dword [esp + 0x1a90], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x6c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x14], esi
call edx
test al, al
jne 0x4235d2
mov eax, dword [esi + 4]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 4]
test eax, eax
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0x24], ecx
je 0x422e84
add eax, 8
jmp 0x422e86
xor eax, eax
mov edx, dword [esi + 8]
push eax
push edx
lea eax, [esi + 0xc]
push eax
mov eax, dword [0x59b478]
push esi
call fcn.00420640
mov edi, dword [ebx + 0x70]
test edi, edi
mov dword [esp + 0x18], eax
je 0x422ebc
push 0
push edi
mov dword [ebx + 0x70], 0
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [ebx + 0x70], ecx
jne 0x422f54
mov esi, dword [esi]
test esi, esi
je 0x422ee5
lea eax, [esi + 4]
test eax, eax
je 0x422ee5
test esi, esi
je 0x422ee1
lea eax, [esi + 4]
jmp 0x422eea
xor eax, eax
jmp 0x422eea
mov eax, 0x543bb1
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [edx + 8]
push eax
push str.Failed_to_get_handle___d_____s
lea esi, [ebx + 0x38]
call fcn.00401180
add esp, 0xc
push str.Failed_to_get_internet_handle
mov eax, 0x1d
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.0044a090
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
mov ecx, edi
push ecx
call fcn.0041e5e0
call fcn.00401070
mov eax, 0xf4628
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a90]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x40]
test eax, eax
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
mov dword [ebx + 0x5c], eax
je 0x42300d
cmp eax, 0xffffffff
jne 0x422f78
mov edi, 0x493e0
mov dword [esp + 0x10], edi
jmp 0x422f7e
mov edi, eax
mov dword [esp + 0x10], eax
push 4
lea edx, [esp + 0x10]
push edx
push 2
push ecx
mov dword [esp + 0x1c], edi
call esi
test eax, eax
jne 0x422fad
lea eax, [esp + 0xc]
push eax
push str.INTERNET_OPTION_CONNECT_TIMEOUT
mov edi, str.api_timeout
call fcn.004257b0
mov edi, dword [esp + 0x18]
add esp, 8
mov eax, dword [ebx + 0x70]
push 4
lea ecx, [esp + 0x10]
push ecx
push 6
push eax
mov dword [esp + 0x1c], edi
call esi
test eax, eax
jne 0x422fdf
lea edx, [esp + 0xc]
push edx
push str.INTERNET_OPTION_RECEIVE_TIMEOUT
mov edi, str.api_timeout
call fcn.004257b0
mov edi, dword [esp + 0x18]
add esp, 8
mov eax, dword [ebx + 0x70]
push 4
lea ecx, [esp + 0x10]
push ecx
push 5
push eax
mov dword [esp + 0x1c], edi
call esi
test eax, eax
jne 0x42300d
lea edx, [esp + 0xc]
push edx
push str.INTERNET_OPTION_SEND_TIMEOUT
mov edi, str.api_timeout
call fcn.004257b0
add esp, 8
mov eax, dword [ebx + 0x70]
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x51
push eax
mov dword [esp + 0x1c], 1
call esi
test eax, eax
jne 0x42303f
lea edx, [esp + 0xc]
push edx
push str.INTERNET_OPTION_SUPPRESS_BEHAVIOR
mov edi, str.INTERNET_SUPPRESS_COOKIE_POLICY
call fcn.004257b0
add esp, 8
mov eax, dword [ebx + 0x70]
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x51
push eax
mov dword [esp + 0x1c], 3
call esi
test eax, eax
jne 0x423071
lea edx, [esp + 0xc]
push edx
push str.INTERNET_OPTION_SUPPRESS_BEHAVIOR
mov edi, str.INTERNET_SUPPRESS_COOKIE_PERSIST
call fcn.004257b0
add esp, 8
xor edi, edi
lea esi, [esp + 0x58]
mov dword [esp + 0x58], edi
call fcn.0046f710
mov esi, dword [esp + 0x14]
mov eax, dword [esi]
cmp eax, edi
je 0x42308f
add eax, 4
jmp 0x423091
xor eax, eax
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0046f7f0
test eax, eax
je 0x4230f3
mov eax, dword [esi]
cmp eax, edi
je 0x4230ba
lea ecx, [eax + 4]
cmp ecx, edi
je 0x4230ba
cmp eax, edi
je 0x4230b6
add eax, 4
jmp 0x4230bf
xor eax, eax
jmp 0x4230bf
mov eax, 0x543bb1
push eax
push str.Failed_to_parse_url____s
lea esi, [ebx + 0x38]
call fcn.00401180
add esp, 8
lea edi, [esp + 0x58]
call fcn.00401070
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a90]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x198]
mov dword [esp + 0x10], edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x423101
lea ecx, [esp + 0x198]
sub eax, edx
push ecx
lea edi, [esp + 0x14]
call fcn.0044a090
lea eax, [ebx + 0x68]
mov esi, edi
call fcn.004010e0
call fcn.00401070
lea eax, [esp + 0x1298]
mov dword [esp + 0xc], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x423140
sub eax, edx
lea edx, [esp + 0x1298]
push edx
lea edi, [esp + 0x10]
call fcn.0044a090
lea eax, [esp + 0xa98]
mov dword [esp + 0x10], 0
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x423170
lea ecx, [esp + 0xa98]
sub eax, esi
push ecx
lea edi, [esp + 0x14]
call fcn.0044a090
lea edx, [esp + 0xc]
push edx
lea esi, [esp + 0x24]
mov eax, edi
call fcn.00401130
call fcn.00401070
lea edi, [esp + 0xc]
call fcn.00401070
movzx eax, word [esp + 0x74]
xor edx, edx
mov edi, str.https
lea esi, [esp + 0x98]
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x28]
mov esi, edi
sete byte [esp + 0x1f]
call fcn.004010e0
lea eax, [ebx + 0x30]
lea esi, [edi + 0x28]
call fcn.004010e0
lea eax, [ebx + 0x34]
lea esi, [edi + 0x2c]
call fcn.004010e0
mov eax, dword [edi + 0x3c]
lea ecx, [esp + 0x28]
push ecx
mov dword [ebx + 0x20], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
fild qword [esp + 0x28]
mov eax, dword [ebx + 0x34]
test eax, eax
fstp qword [ebx + 0x10]
je 0x423215
lea esi, [eax + 4]
jmp 0x423217
xor esi, esi
mov edx, dword [ebx + 0x30]
test edx, edx
je 0x423223
add edx, 4
jmp 0x423225
xor edx, edx
mov ecx, dword [ebx + 0x68]
test ecx, ecx
je 0x423231
add ecx, 4
jmp 0x423233
xor ecx, ecx
mov eax, dword [ebx + 0x70]
push ebx
push 0
push 3
push esi
push edx
mov edx, dword [esp + 0x2c]
push edx
push ecx
push eax
lea edi, [ebx + 0x74]
call dword [sym.imp.WININET.dll_InternetConnectA]
push eax
call fcn.00422c50
mov eax, dword [edi]
test eax, eax
jne 0x423337
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2ee2
mov dword [esp + 0x10], eax
jne 0x42329d
push str.InternetConnect
mov eax, 0xf
lea edi, [esp + 0x10]
mov byte [ebx + 0x62], 1
mov dword [esp + 0x10], 0
call fcn.0044a090
mov eax, edi
push eax
push ebx
call fcn.00425110
call fcn.00401070
jmp 0x4232d6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
test eax, eax
je 0x4232bb
lea ecx, [eax + 4]
test ecx, ecx
je 0x4232bb
test eax, eax
je 0x4232b7
add eax, 4
jmp 0x4232c0
xor eax, eax
jmp 0x4232c0
mov eax, 0x543bb1
mov edx, dword [esp + 0x10]
push eax
push edx
push str.InternetConnect_failed___d_____s
lea esi, [ebx + 0x38]
call fcn.00401180
add esp, 0xc
push str.InternetConnect_failed
mov eax, 0x16
lea edi, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.0044a090
mov eax, dword [esp + 0x10]
mov esi, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
mov ecx, edi
push ecx
call fcn.0041e5e0
call fcn.00401070
lea edi, [esp + 0x20]
call fcn.00401070
lea edi, [esp + 0x58]
call fcn.00401070
mov eax, 0xf4628
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a90]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 4
push 0x425280
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallback]
mov ecx, dword [esp + 0x14]
mov dl, byte [ecx + 0x44]
neg dl
sbb edx, edx
and edx, 0x7c000c00
add edx, 0x84000000
cmp byte [ecx + 0x45], 0
mov esi, edx
je 0x423376
or esi, 0x4000
cmp byte [ecx + 0x46], 0
je 0x42337c
or esi, 0x8000
jmp 0x42337c
or esi, 0x200000
cmp byte [esp + 0x1f], 0
je 0x42354e
or esi, 0x800000
cmp byte [ecx + 0x46], 0
mov dword [esp + 0x18], esi
je 0x423542
push str.referer:_none
mov eax, 0xd
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.0044a090
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
test al, 1
jne 0x423535
shr eax, 1
lea ecx, [eax*4]
cmp ecx, 0x100000
mov edi, eax
jae 0x4233ef
lea edx, [eax - 1]
test eax, edx
jne 0x4233fb
test eax, eax
je 0x4233e8
lea edi, [eax + eax]
jmp 0x4233fb
mov edi, 1
jmp 0x4233fb
and edi, 0x7ffffc00
add edi, 0x400
cmp edi, eax
jbe 0x4234fb
xor esi, esi
test edi, edi
je 0x4234e2
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0044ce70
add esp, 4
test eax, eax
je 0x423455
lea esi, [eax + 4]
push 0x4010d0
mov dword [eax], edi
push 4
mov eax, edi
mov ecx, esi
call fcn.00407e00
test esi, esi
mov dword [esp + 0x28], esi
jne 0x42345c
xor esi, esi
jmp 0x423502
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x14]
shr eax, 1
cmp eax, edi
jbe 0x42346f
mov dword [esp + 0x24], edi
jmp 0x423475
mov edi, eax
mov dword [esp + 0x24], eax
test edi, edi
mov dword [esp + 0xc], 0
jbe 0x4234e2
mov edi, esi
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
cmp edx, dword [eax + ecx*4]
lea esi, [eax + ecx*4]
je 0x4234ca
call fcn.00401070
mov eax, dword [esi]
test eax, eax
mov dword [edi], eax
je 0x4234ca
movzx ecx, byte [eax]
cmp ecx, 0x80
jae 0x4234c3
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0xff
jne 0x4234ca
mov eax, edi
call fcn.00449d40
mov eax, dword [esp + 0xc]
add eax, 1
add edi, 4
cmp eax, dword [esp + 0x24]
mov dword [esp + 0xc], eax
jb 0x423483
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x4234f2
call fcn.00407d60
mov eax, dword [esp + 0x14]
mov dword [eax + 0x10], esi
jmp 0x423502
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x423531
mov edi, dword [esp + 0x14]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
shr edx, 1
lea eax, [eax + edx*4]
lea esi, [esp + 0x10]
call fcn.004010e0
mov eax, dword [edi + 0x14]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [edi + 0x14], ecx
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x10]
call fcn.00401070
mov ecx, dword [esp + 0x14]
cmp dword [ebx + 0x24], 0
jne 0x42354e
or esi, 0x3000
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x423563
test dword [eax], 0xffffff00
je 0x423563
cmp byte [eax + 4], 0
jne 0x42357e
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x423578
test dword [eax], 0xffffff00
je 0x423578
cmp byte [eax + 4], 0
jne 0x42357e
cmp byte [ecx + 0x47], 0
je 0x423584
or esi, 0x400000
cmp byte [ecx + 0x48], 0
jne 0x423590
cmp byte [ecx + 0x49], 0
je 0x423596
or esi, 0x80000
mov eax, dword [ebx + 4]
mov edx, dword [eax + 4]
lea ecx, [eax + 4]
mov eax, dword [edx + 0x10]
call eax
test al, al
je 0x4235b2
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
test al, al
je 0x4235ee
lea edi, [esp + 0x20]
call fcn.00401070
lea edi, [esp + 0x58]
call fcn.00401070
mov eax, 0xf4242
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a90]
xor ecx, esp
call fcn.005120db
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
mov dword [esp + 0x34], 0x5591a4
mov dword [esp + 0x38], 0
je 0x42360b
add ecx, 4
jmp 0x42360d
xor ecx, ecx
mov eax, dword [ebx + 0x74]
push ebx
push esi
lea edx, [esp + 0x3c]
push edx
push 0
push str.HTTP_1.1
push ecx
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ecx*4 + 0x582728]
push edx
push eax
lea edi, [ebx + 0x78]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push eax
call fcn.00422c50
cmp dword [edi], 0
jne 0x4236c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
je 0x42366b
lea ecx, [eax + 4]
test ecx, ecx
je 0x42366b
test eax, eax
je 0x423667
add eax, 4
jmp 0x423670
xor eax, eax
jmp 0x423670
mov eax, 0x543bb1
mov ecx, dword [esp + 0x18]
push eax
push ecx
push str.HttpOpenRequest_failed___d_____s
lea esi, [ebx + 0x38]
call fcn.00401180
add esp, 0xc
push str.HttpOpenRequest_failed
mov eax, 0x16
lea edi, [esp + 0x10]
mov dword [esp + 0x10], 0
call fcn.0044a090
mov edx, dword [esp + 0x18]
mov esi, dword [ebx + 8]
push edx
mov eax, edi
push eax
mov eax, dword [ebx + 4]
call fcn.0041e5e0
call fcn.00401070
mov ecx, dword [0x59b478]
mov byte [ecx + 0x74], 0
jmp 0x423309
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x30]
add esi, 0x30
test eax, eax
je 0x423736
test dword [eax], 0xffffff00
je 0x423736
cmp byte [eax + 4], 0
je 0x423736
test eax, eax
je 0x42370f
test dword [eax], 0xffffff00
je 0x42370f
cmp byte [eax + 4], 0
je 0x42370f
add eax, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x423700
sub eax, edx
mov edi, eax
jmp 0x423711
xor edi, edi
mov eax, esi
call fcn.00449d40
mov eax, dword [esi]
test eax, eax
je 0x423723
add eax, 4
jmp 0x423725
xor eax, eax
mov edx, dword [ebx + 0x78]
add edi, 1
push edi
push eax
push 0x2b
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov eax, dword [esp + 0x14]
add eax, 0x34
call fcn.0046f970
test al, al
jne 0x423787
mov eax, dword [esi]
test eax, eax
je 0x42376d
test dword [eax], 0xffffff00
je 0x42376d
cmp byte [eax + 4], 0
je 0x42376d
add eax, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x423760
sub eax, edx
jmp 0x42376f
xor eax, eax
mov edx, dword [ebx + 0x78]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x38]
push ecx
push 0x2c
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp byte [esp + 0x1f], 0
je 0x42380b
xor esi, esi
push str.IgnoreCRL:
lea eax, [esi + 0xa]
lea edi, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.0044a090
mov eax, dword [ebx + 0x68]
cmp eax, esi
je 0x4237b1
add eax, 4
jmp 0x4237b3
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00449dd0
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4237cb
lea ecx, [eax + 4]
jmp 0x4237cd
xor ecx, ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], esi
call fcn.004077f0
lea eax, [esp + 0x3c]
call fcn.004028c0
test eax, eax
je 0x4237f9
mov esi, dword [ebx + 0x78]
push 0x80
call fcn.00424a40
lea esi, [esp + 0x3c]
call fcn.004346f0
lea edi, [esp + 0x10]
call fcn.00401070
mov esi, dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebx + 0x3c]
push ecx
call fcn.0040b0f0
lea edx, [esi + 0x18]
push edx
lea eax, [ebx + 0x44]
push eax
call fcn.0040b0f0
lea ecx, [esi + 0x20]
push ecx
lea edx, [ebx + 0x4c]
push edx
call fcn.0040b0f0
push ebx
call fcn.004238e0
cmp byte [esi + 0x49], 0
je 0x4238a9
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebx + 4]
call fcn.00413440
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4238a0
test dword [eax], 0xffffff00
je 0x4238a0
add eax, 4
cmp byte [eax], 0
je 0x4238a0
test eax, eax
mov dword [esp + 0xc], 0
jne 0x423879
mov eax, 0x543bb1
push eax
push str.Cookie:__s
lea esi, [esp + 0x14]
call fcn.00401180
add esp, 8
mov ecx, esi
push 0
push ecx
mov esi, ebx
call fcn.00424790
lea edi, [esp + 0xc]
call fcn.00401070
lea edi, [esp + 0x18]
call fcn.00401070
lea edi, [esp + 0x20]
call fcn.00401070
lea edi, [esp + 0x58]
call fcn.00401070
mov ecx, dword [esp + 0x1a9c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005120db
mov esp, ebp
pop ebp
ret 4