Function at 0x10049578
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
jae 0x10048ece
jmp 0x10048ec9
call fcn.10048ed0
jae 0x10048ec9
add esp, 4
jmp 0x10048ed5
dec dword [esp]
jno 0x10048eda
jns 0x10048ec5
jp 0x10048ede
add esp, 4
popf
jmp 0x10048ee5
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x10048efe
jne 0x10048efe
call 0x1fc4c252
wait
rcl byte [edx + 0x33], 0xd0
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
clc
jae 0x10048f14
sub al, 0xbb
pushf
push 0xa
jae 0x10048f21
jmp 0x10048f1c
call 0x10048f23
jae 0x10048f1c
add esp, 4
jmp 0x10048f28
dec dword [esp]
jno 0x10048f2d
jns 0x10048f18
jp 0x10048f31
add esp, 4
popf
jmp 0x10048f38
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
xor eax, 0x3f
xor edx, eax
add eax, edx
sub edx, 0x3f
push eax
pop edx
xor edx, 0xbd
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x3f
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
jl 0x10048f87
jmp 0x10048f89
je 0x10048f84
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
xor eax, eax
test eax, eax
je 0x10048fa3
jne 0x10048fa2
call 0x9308802a
rol byte [ebx + eax*4], 0xf0
add eax, 0x1750374
xor eax, 3
add eax, 4
xor eax, 5
je 0x10048fb1
jne 0x10048fb1
call fcn.1004f36f
add byte [esi - 0x77], ah
xchg ebp, eax
sbb bh, bh
invalid
mov edx, 0x63
mov word [ebp - 0xe8], dx
mov eax, 0x6c
mov word [ebp - 0xe6], ax
mov ecx, 0x6f
mov word [ebp - 0xe4], cx
mov edx, 0x75
mov word [ebp - 0xe2], dx
mov eax, 0x64
mov word [ebp - 0xe0], ax
mov ecx, 0x73
mov word [ebp - 0xde], cx
mov edx, 0x68
mov word [ebp - 0xdc], dx
mov eax, 0x69
mov word [ebp - 0xda], ax
mov ecx, 0x65
mov word [ebp - 0xd8], cx
mov edx, 0x6c
mov word [ebp - 0xd6], dx
mov eax, 0x64
mov word [ebp - 0xd4], ax
mov ecx, 0x2e
mov word [ebp - 0xd2], cx
mov edx, 0x6d
mov word [ebp - 0xd0], dx
mov eax, 0x65
mov word [ebp - 0xce], ax
mov ecx, 0x74
mov word [ebp - 0xcc], cx
mov edx, 0x69
mov word [ebp - 0xca], dx
mov eax, 0x6e
mov word [ebp - 0xc8], ax
mov ecx, 0x32
mov word [ebp - 0xc6], cx
mov edx, 0x2e
mov word [ebp - 0xc4], dx
mov eax, 0x63
mov word [ebp - 0xc2], ax
mov ecx, 0x6c
mov word [ebp - 0xc0], cx
mov edx, 0x6f
mov word [ebp - 0xbe], dx
mov eax, 0x75
mov word [ebp - 0xbc], ax
mov ecx, 0x64
mov word [ebp - 0xba], cx
xor edx, edx
mov word [ebp - 0xb8], dx
mov eax, 0x50
mov word [ebp - 0x30], ax
mov ecx, 0x4f
mov word [ebp - 0x2e], cx
mov edx, 0x53
mov word [ebp - 0x2c], dx
mov eax, 0x54
mov word [ebp - 0x2a], ax
xor ecx, ecx
mov word [ebp - 0x28], cx
mov edx, 0x2f
mov word [ebp - 0x54], dx
mov eax, 0x75
mov word [ebp - 0x52], ax
mov ecx, 0x73
mov word [ebp - 0x50], cx
mov edx, 0x65
mov word [ebp - 0x4e], dx
mov eax, 0x72
mov word [ebp - 0x4c], ax
mov ecx, 0x73
mov word [ebp - 0x4a], cx
mov edx, 0x2f
mov word [ebp - 0x48], dx
mov eax, 0x63
mov word [ebp - 0x46], ax
mov ecx, 0x68
mov word [ebp - 0x44], cx
mov edx, 0x65
mov word [ebp - 0x42], dx
mov eax, 0x63
mov word [ebp - 0x40], ax
mov ecx, 0x6b
mov word [ebp - 0x3e], cx
mov edx, 0x2e
mov word [ebp - 0x3c], dx
mov eax, 0x70
mov word [ebp - 0x3a], ax
mov ecx, 0x68
mov word [ebp - 0x38], cx
mov edx, 0x70
mov word [ebp - 0x36], dx
xor eax, eax
mov word [ebp - 0x34], ax
xor eax, eax
test eax, eax
je 0x100491a3
jne 0x100491a2
call 0x9308822a
rol byte [ebx + eax*4], 0xf0
add eax, 0x3eb037c
dec ebp
xor eax, 3
add eax, 4
xor eax, 5
jl 0x100491b1
jmp 0x100491b3
je 0x100491ae
clc
jae 0x100491b8
jge 0x10049205
xor eax, 0x43
xor edx, eax
add eax, edx
sub edx, 0x43
push eax
pop edx
xor edx, 0xc9
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x43
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
pushf
push 0xa
jae 0x100491fb
jmp 0x100491f6
call 0x100491fd
jae 0x100491f6
add esp, 4
jmp 0x10049202
dec dword [esp]
jno 0x10049207
jns 0x100491f2
jp 0x1004920b
add esp, 4
popf
jmp 0x10049212
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x1004922b
jne 0x1004922b
call 0x1fc4c57f
wait
rcl byte [edx + 0x33], 0xd0
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
clc
jae 0x10049241
push edx
mov al, 0x66
pushfd
pushf
push 0xa
jae 0x1004924e
jmp 0x10049249
call 0x10049250
jae 0x10049249
add esp, 4
jmp 0x10049255
dec dword [esp]
jno 0x1004925a
jns 0x10049245
jp 0x1004925e
add esp, 4
popf
jmp 0x10049265
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
xor eax, 0x44
xor edx, eax
add eax, edx
sub edx, 0x44
push eax
pop edx
xor edx, 0xcc
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x44
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
jl 0x100492b4
jmp 0x100492b6
je 0x100492b1
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
xor eax, eax
test eax, eax
je 0x100492d0
jne 0x100492cf
call 0x93088357
rol byte [ebx + eax*4], 0xf0
add eax, 0x1750374
xor eax, 3
add eax, 4
xor eax, 5
je 0x100492de
jne 0x100492de
call fcn.1004d69b
add byte [esi - 0x77], ah
lea ecx, [edi + edi*8 - 1]
invalid
mov ecx, 0x43
mov word [ebp - 0xb4], cx
mov edx, 0x6f
mov word [ebp - 0xb2], dx
mov eax, 0x6e
mov word [ebp - 0xb0], ax
mov ecx, 0x74
mov word [ebp - 0xae], cx
mov edx, 0x65
mov word [ebp - 0xac], dx
mov eax, 0x6e
mov word [ebp - 0xaa], ax
mov ecx, 0x74
mov word [ebp - 0xa8], cx
mov edx, 0x2d
mov word [ebp - 0xa6], dx
mov eax, 0x54
mov word [ebp - 0xa4], ax
mov ecx, 0x79
mov word [ebp - 0xa2], cx
mov edx, 0x70
mov word [ebp - 0xa0], dx
mov eax, 0x65
mov word [ebp - 0x9e], ax
mov ecx, 0x3a
mov word [ebp - 0x9c], cx
mov edx, 0x20
mov word [ebp - 0x9a], dx
mov eax, 0x61
mov word [ebp - 0x98], ax
mov ecx, 0x70
mov word [ebp - 0x96], cx
mov edx, 0x70
mov word [ebp - 0x94], dx
mov eax, 0x6c
mov word [ebp - 0x92], ax
mov ecx, 0x69
mov word [ebp - 0x90], cx
mov edx, 0x63
mov word [ebp - 0x8e], dx
mov eax, 0x61
mov word [ebp - 0x8c], ax
mov ecx, 0x74
mov word [ebp - 0x8a], cx
mov edx, 0x69
mov word [ebp - 0x88], dx
mov eax, 0x6f
mov word [ebp - 0x86], ax
mov ecx, 0x6e
mov word [ebp - 0x84], cx
mov edx, 0x2f
mov word [ebp - 0x82], dx
mov eax, 0x78
mov word [ebp - 0x80], ax
mov ecx, 0x2d
mov word [ebp - 0x7e], cx
mov edx, 0x77
mov word [ebp - 0x7c], dx
mov eax, 0x77
mov word [ebp - 0x7a], ax
mov ecx, 0x77
mov word [ebp - 0x78], cx
mov edx, 0x2d
mov word [ebp - 0x76], dx
mov eax, 0x66
mov word [ebp - 0x74], ax
mov ecx, 0x6f
mov word [ebp - 0x72], cx
mov edx, 0x72
mov word [ebp - 0x70], dx
mov eax, 0x6d
mov word [ebp - 0x6e], ax
mov ecx, 0x2d
mov word [ebp - 0x6c], cx
mov edx, 0x75
mov word [ebp - 0x6a], dx
mov eax, 0x72
mov word [ebp - 0x68], ax
mov ecx, 0x6c
mov word [ebp - 0x66], cx
mov edx, 0x65
mov word [ebp - 0x64], dx
mov eax, 0x6e
mov word [ebp - 0x62], ax
mov ecx, 0x63
mov word [ebp - 0x60], cx
mov edx, 0x6f
mov word [ebp - 0x5e], dx
mov eax, 0x64
mov word [ebp - 0x5c], ax
mov ecx, 0x65
mov word [ebp - 0x5a], cx
mov edx, 0x64
mov word [ebp - 0x58], dx
xor eax, eax
mov word [ebp - 0x56], ax
mov byte [ebp - 0x18], 0x56
mov byte [ebp - 0x17], 0x41
mov byte [ebp - 0x16], 0x4c
mov byte [ebp - 0x15], 0x49
mov byte [ebp - 0x14], 0x44
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x24], 0x70
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x6f
mov byte [ebp - 0x21], 0x63
mov byte [ebp - 0x20], 0x65
mov byte [ebp - 0x1f], 0x73
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x3d
mov byte [ebp - 0x1c], 0
xor eax, eax
test eax, eax
je 0x1004951e
jne 0x1004951d
call 0x930885a5
rol byte [ebx + eax*4], 0xf0
add eax, 0x3eb037c
invalid
xor eax, 3
add eax, 4
xor eax, 5
jl 0x1004952c
jmp 0x1004952e
je 0x10049529
clc
jae 0x10049533
sbb eax, 0x4bf083c6
xor eax, 0x4b
xor edx, eax
add eax, edx
sub edx, 0x4b
push eax
pop edx
xor edx, 0xe1
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x4b
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
pushf
push 0xa
jae 0x10049576
jmp 0x10049571
call 0x10049578
jae 0x10049571
add esp, 4
jmp 0x1004957d
dec dword [esp]
jno 0x10049582
jns 0x1004956d
jp 0x10049586
add esp, 4
popf
jmp 0x1004958d
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x100495a6
jne 0x100495a6
call 0x1fc4c8fa
wait
rcl byte [edx + 0x33], 0xd0
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
clc
jae 0x100495bc
out dx, eax
sub al, 0x66
pushfd
pushf
push 0xa
jae 0x100495c9
jmp 0x100495c4
call 0x100495cb
jae 0x100495c4
add esp, 4
jmp 0x100495d0
dec dword [esp]
jno 0x100495d5
jns 0x100495c0
jp 0x100495d9
add esp, 4
popf
jmp 0x100495e0
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
xor eax, 0x4c
xor edx, eax
add eax, edx
sub edx, 0x4c
push eax
pop edx
xor edx, 0xe4
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x4c
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
jl 0x1004962f
jmp 0x10049631
je 0x1004962c
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
xor eax, eax
test eax, eax
je 0x1004964b
jne 0x1004964a
call 0x930886d2
rol byte [ebx + eax*4], 0xf0
add eax, 0x1750374
xor eax, 3
add eax, 4
xor eax, 5
je 0x10049659
jne 0x10049659
call 0x106e96c7
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2e8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jne 0x10049684
xor al, al
jmp 0x1004a33c
push 0
push 0x1bb
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
jne 0x100496c2
mov ecx, dword [ebp - 0x358]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x1004a33c
push 0x800000
push 0
push 0
push 0
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x35c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [ebp - 0x34c], eax
cmp dword [ebp - 0x34c], 0
jne 0x10049712
mov edx, dword [ebp - 0x35c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp - 0x358]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x1004a33c
xor eax, eax
test eax, eax
je 0x1004971b
jne 0x1004971a
call 0x930887a2
rol byte [ebx + eax*4], 0xf0
add eax, 0x3eb037c
out 0x74, eax
sti
xor eax, 3
add eax, 4
xor eax, 5
jl 0x10049729
jmp 0x1004972b
je 0x10049726
clc
jae 0x10049730
salc
out 0x83, eax
invalid
xor eax, 0x5e
xor edx, eax
add eax, edx
sub edx, 0x5e
push eax
pop edx
xor edx, 0x11a
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x5e
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
pushf
push 0xa
jae 0x10049773
jmp 0x1004976e
call 0x10049775
jae 0x1004976e
add esp, 4
jmp 0x1004977a
dec dword [esp]
jno 0x1004977f
jns 0x1004976a
jp 0x10049783
add esp, 4
popf
jmp 0x1004978a
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x100497a3
jne 0x100497a3
call 0x1fc4caf7
wait
rcl byte [edx + 0x33], 0xd0
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
clc
jae 0x100497b9
stosd dword es:[edi], eax
dec ebp
pushf
push 0xa
jae 0x100497c6
jmp 0x100497c1
call 0x100497c8
jae 0x100497c1
add esp, 4
jmp 0x100497cd
dec dword [esp]
jno 0x100497d2
jns 0x100497bd
jp 0x100497d6
add esp, 4
popf
jmp 0x100497dd
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
xor eax, 0x5f
xor edx, eax
add eax, edx
sub edx, 0x5f
push eax
pop edx
xor edx, 0x11d
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x5f
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
jl 0x1004982c
jmp 0x1004982e
je 0x10049829
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
xor eax, eax
test eax, eax
je 0x10049848
jne 0x10049847
call 0x930888cf
rol byte [ebx + eax*4], 0xf0
add eax, 0x1750374
xor eax, 3
add eax, 4
xor eax, 5
je 0x10049856
jne 0x10049856
call 0xd151e21
invalid
mov dword [ebp - 0x2f0], 0x800
push 4
lea ecx, [ebp - 0x2f0]
push ecx
push 0x54
mov edx, dword [ebp - 0x34c]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor eax, eax
test eax, eax
je 0x10049881
jne 0x10049880
call 0x93088908
rol byte [ebx + eax*4], 0xf0
add eax, 0x3eb037c
fdiv qword [ebx + edi*8 - 8]
xor eax, 3
add eax, 4
xor eax, 5
jl 0x1004988f
jmp 0x10049891
je 0x1004988c
clc
jae 0x10049896
cld
fadd qword [ebx - 0x2fcc9c10]
xor eax, 0x63
xor edx, eax
add eax, edx
sub edx, 0x63
push eax
pop edx
xor edx, 0x129
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x63
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
pushf
push 0xa
jae 0x100498d9
jmp 0x100498d4
call 0x100498db
jae 0x100498d4
add esp, 4
jmp 0x100498e0
dec dword [esp]
jno 0x100498e5
jns 0x100498d0
jp 0x100498e9
add esp, 4
popf
jmp 0x100498f0
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x10049909
jne 0x10049909
call 0x1fc4cc5d
wait
rcl byte [edx + 0x33], 0xd0
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
clc
jae 0x1004991f
jl 0x1004994b
pushf
push 0xa
jae 0x1004992c
jmp 0x10049927
call 0x1004992e
jae 0x10049927
add esp, 4
jmp 0x10049933
dec dword [esp]
jno 0x10049938
jns 0x10049923
jp 0x1004993c
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
xor eax, 0x64
xor edx, eax
add eax, edx
sub edx, 0x64
push eax
pop edx
xor edx, 0x12c
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x64
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
jl 0x10049992
jmp 0x10049994
je 0x1004998f
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
xor eax, eax
test eax, eax
je 0x100499ae
jne 0x100499ad
call 0x93088a35
rol byte [ebx + eax*4], 0xf0
add eax, 0x1750374
call 0xd111f87
invalid
xor eax, 3
add eax, 4
xor eax, 5
je 0x100499bc
jne 0x100499bc
mov dword [ebp - 0x2f4], 0xea60
push 4
lea eax, [ebp - 0x2f4]
push eax
push 6
mov ecx, dword [ebp - 0x34c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor eax, eax
test eax, eax
je 0x100499e7
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.1004ce42
mov esp, ebp
pop ebp
ret