Function at 0x10001917
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10008572
mov eax, dword fs:[0]
push eax
mov eax, 0x1170
call fcn.10008380
mov eax, dword [0x1000d00c]
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 esi, ecx
mov dword [ebp - 0x1108], esi
cmp dword [esi + 0x18], 0
mov eax, dword [ebp + 8]
ja 0x1000196b
mov dword [esi + 0xf8], 3
xor al, al
jmp 0x10002837
push eax
lea ecx, [ebp - 0x1080]
call fcn.10004092
and dword [ebp - 4], 0
lea eax, [ebp - 0x1080]
cmp dword [ebp - 0x106c], 8
mov ebx, 0x10009c14
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
cmovae eax, dword [ebp - 0x1080]
push ebx
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x100019cb
cmp dword [ebp - 0x106c], 8
lea eax, [ebp - 0x1080]
mov ebx, 0x10009c1c
cmovae eax, dword [ebp - 0x1080]
push ebx
push eax
call edi
pop ecx
pop ecx
test eax, eax
jne 0x10002818
mov ecx, ebx
call fcn.100010db
push eax
push ebx
lea ecx, [ebp - 0x1080]
call fcn.10004a8a
xor ecx, ecx
mov bl, 1
mov dword [ebp - 0x10d8], ebx
cmp dword [esi], ecx
jne 0x10001a1d
lea eax, [esi + 0x114]
cmp dword [eax + 0x14], 8
jb 0x100019fb
mov eax, dword [eax]
push ecx
push ecx
push ecx
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi], eax
test eax, eax
jne 0x10001a1d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x10002822
push dword [esi + 0x184]
push dword [esi + 0x180]
push dword [esi + 0x17c]
push dword [esi + 0x178]
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0xa28
lea eax, [ebp - 0x1050]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x117c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x420]
mov dword [ebp - 0x117c], edi
mov dword [ebp - 0x116c], eax
add esp, 0x24
cmp dword [esi + 0x1c], 8
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1168], 0x104
mov dword [ebp - 0x1150], eax
mov dword [ebp - 0x114c], 0x514
mov dword [ebp - 0x1174], 1
jb 0x10001abf
mov eax, dword [esi + 8]
jmp 0x10001ac2
lea eax, [esi + 8]
lea edx, [ebp - 0x117c]
push edx
push 0
push dword [esi + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x10002824
lea ecx, [ebp - 0x420]
call fcn.100010db
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [esi + 0x20]
call fcn.10004a8a
push 0
push dword [ebp - 0x1164]
lea eax, [ebp - 0x420]
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x1110], edx
test edx, edx
je 0x10002824
push 2
pop edi
xor ecx, ecx
mov eax, 0x800000
cmp dword [ebp - 0x1170], edi
cmove ecx, eax
cmp dword [ebp - 0x106c], 8
push ecx
lea eax, [ebp - 0x1080]
cmovae eax, dword [ebp - 0x1080]
xor ecx, ecx
push ecx
push ecx
push ecx
push dword [ebp - 0x1150]
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov dword [ebp - 0x10b8], edi
test edi, edi
je 0x1000280a
cmp byte [esi + 4], 0
jne 0x10001b97
push 2
pop eax
cmp dword [ebp - 0x1170], eax
jne 0x10001b97
push 4
lea eax, [ebp - 0x10c0]
mov dword [ebp - 0x10c0], 0x3100
push eax
push 0x1f
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
xor ebx, ebx
mov dword [ebp - 0x1104], 0x18
mov byte [ebp - 0x10b1], bl
mov ecx, ebx
mov eax, ecx
inc ecx
mov dword [ebp - 0x110c], ecx
cmp eax, 3
jae 0x100027e2
lea eax, [esi + 0xc8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10001bf0
cmp dword [eax + 0x14], 8
jb 0x10001bd2
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10001bf0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
lea edi, [esi + 0xa8]
cmp dword [edi + 0x10], 0
jbe 0x10001c73
push str.Cookie:
lea ecx, [ebp - 0x1068]
call fcn.10004062
push 0xffffffffffffffff
xor eax, eax
lea ecx, [ebp - 0x1068]
push ebx
inc eax
push edi
mov byte [ebp - 4], al
call fcn.100052d8
cmp dword [ebp - 0x1054], 8
lea eax, [ebp - 0x1068]
mov edi, dword [ebp - 0x10b8]
cmovae eax, dword [ebp - 0x1068]
push 0x1000000
push dword [ebp - 0x1058]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x10001c5e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
xor eax, eax
mov byte [ebp - 4], bl
push ebx
inc eax
lea ecx, [ebp - 0x1068]
push eax
call fcn.10004a37
jmp 0x10001c79
mov edi, dword [ebp - 0x10b8]
lea ebx, [esi + 0xe0]
cmp dword [ebx + 0x10], 0
jbe 0x10001d6a
xor eax, eax
lea edi, [ebp - 0x1128]
stosd dword es:[edi], eax
push 0x208
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x1128], 3
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebx + 0x14], 8
jb 0x10001cbc
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov edi, dword [ebp - 0x10b8]
lea eax, [ebp - 0x218]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
mov dword [ebp - 0x1124], eax
lea eax, [ebp - 0x1128]
push 0xc
push eax
push 0x26
push edi
call ebx
test eax, eax
jne 0x10001d08
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
lea ecx, [esi + 0x130]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x10001d6a
cmp dword [ecx + 0x14], 8
jb 0x10001d1d
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1002
push edi
call ebx
test eax, eax
jne 0x10001d39
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
lea ecx, [esi + 0x148]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x10001d6a
cmp dword [ecx + 0x14], 8
jb 0x10001d4e
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1003
push edi
call ebx
test eax, eax
jne 0x10001d6a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push edi
mov bl, al
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x10001fa5
lea edi, [ebp - 0x10f4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10f4]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x10001f8b
mov edx, dword [ebp - 0x10f0]
test edx, edx
je 0x10001e86
xor eax, eax
lea edi, [ebp - 0x1140]
push 6
pop ecx
rep stosd dword es:[edi], eax
and dword [ebp - 0x1130], 0
lea edi, [ebp - 0x1100]
and dword [ebp - 0x1134], 0
inc eax
mov dword [ebp - 0x113c], eax
mov dword [ebp - 0x112c], eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1140], 3
mov dword [ebp - 0x1138], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esi + 8]
cmp dword [eax + 0x14], 8
jb 0x10001dfe
mov eax, dword [eax]
lea ecx, [ebp - 0x1100]
push ecx
lea ecx, [ebp - 0x1140]
push ecx
push eax
push dword [esi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x10001f3e
mov edi, dword [ebp - 0x10b8]
lea eax, [ebp - 0x1100]
push 0xc
push eax
push 0x26
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x10001e53
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
movzx ebx, bl
push 1
pop eax
cmovne ebx, eax
cmp dword [ebp - 0x10fc], 0
je 0x10001e68
push dword [ebp - 0x10fc]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x10f8], 0
je 0x10001f4a
push dword [ebp - 0x10f8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x10001f4a
cmp dword [ebp - 0x10ec], 0
je 0x10001f74
xor eax, eax
lea edi, [ebp - 0x111c]
stosd dword es:[edi], eax
push 0x208
push 0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x111c], 3
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x10ec]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x218]
push 0x104
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x218]
cmp dword [ebp - 0x10e8], 0
mov dword [ebp - 0x1118], eax
je 0x10001f23
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x10e8]
lea eax, [ebp - 0x628]
push 0x104
push eax
call edi
lea eax, [ebp - 0x628]
add esp, 0x18
mov dword [ebp - 0x1114], eax
push 0xc
lea eax, [ebp - 0x111c]
push eax
push 0x26
push dword [ebp - 0x10b8]
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x10001f4a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
cmp dword [ebp - 0x10f0], 0
je 0x10001f5f
push dword [ebp - 0x10f0]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x10ec], 0
je 0x10001f74
push dword [ebp - 0x10ec]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x10e8], 0
je 0x10001f97
push dword [ebp - 0x10e8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x10001f97
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
mov edi, dword [ebp - 0x10b8]
test bl, bl
je 0x100027c8
mov eax, dword [esi + 0xc0]
xor ebx, ebx
test eax, eax
je 0x10001fdc
lea ecx, [ebp - 0x10c0]
mov dword [ebp - 0x10c0], ebx
push ecx
push dword [esi + 0xc4]
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x10001fdc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
push ebx
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x100027ba
push ebx
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], ebx
push eax
push ebx
push ebx
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x10002018
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x10002382
mov eax, dword [ebp - 0x10bc]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10007781
mov ebx, eax
mov dword [ebp - 0x10c8], ebx
pop ecx
test ebx, ebx
je 0x10002380
mov ecx, dword [ebp - 0x10bc]
add ecx, ecx
push ecx
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10bc]
push 0
push eax
push ebx
push 0
push 0x16
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x10002379
mov ecx, ebx
lea edi, [esi + 0x38]
call fcn.100010db
push eax
push ebx
mov ecx, edi
call fcn.10004a8a
xor eax, eax
mov dword [ebp - 0x10d4], eax
mov dword [ebp - 0x10d0], eax
mov dword [ebp - 0x10cc], eax
push 2
pop eax
push 0x10009b18
lea ecx, [ebp - 0x1068]
mov byte [ebp - 4], al
call fcn.10004062
mov byte [ebp - 4], 3
cmp byte [esi + 0x12c], 0
jne 0x10002125
mov ecx, str.charset_A_Za_z0_9___
call fcn.100010db
push eax
push str.charset_A_Za_z0_9___
lea ecx, [ebp - 0x1068]
call fcn.10004a8a
push ecx
lea eax, [ebp - 0x10d4]
push eax
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.100012dd
add esp, 0x10
test al, al
je 0x10002125
mov eax, dword [ebp - 0x10d0]
sub eax, dword [ebp - 0x10d4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x10002125
lea ecx, [esi + 0x68]
cmp ecx, dword [ebp - 0x10d4]
je 0x10002125
push 0xffffffffffffffff
push 0
push dword [ebp - 0x10d4]
call fcn.10004afd
mov ecx, str.Content_Length:__0_9_
call fcn.100010db
push eax
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.10004a8a
push ecx
lea eax, [ebp - 0x10d4]
push eax
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.100012dd
add esp, 0x10
test al, al
je 0x1000218b
mov eax, dword [ebp - 0x10d0]
mov ecx, dword [ebp - 0x10d4]
sub eax, ecx
cdq
idiv dword [ebp - 0x1104]
test eax, eax
je 0x1000218b
cmp dword [ecx + 0x14], 8
jb 0x1000217d
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
pop ecx
mov dword [esi + 0x8c], eax
mov ecx, str.Location:__0_9_
call fcn.100010db
push eax
push str.Location:__0_9_
lea ecx, [ebp - 0x1068]
call fcn.10004a8a
push ecx
lea eax, [ebp - 0x10d4]
push eax
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.100012dd
add esp, 0x10
test al, al
je 0x100021f5
mov eax, dword [ebp - 0x10d0]
sub eax, dword [ebp - 0x10d4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x100021f5
lea ecx, [esi + 0x160]
cmp ecx, dword [ebp - 0x10d4]
je 0x100021f5
push 0xffffffffffffffff
push 0
push dword [ebp - 0x10d4]
call fcn.10004afd
mov ecx, str.Set_Cookie:_b.__n
call fcn.100010db
push eax
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x1068]
call fcn.10004a8a
push ecx
lea eax, [ebp - 0x10d4]
push eax
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.100012dd
add esp, 0x10
test al, al
je 0x10002353
mov ecx, dword [ebp - 0x10d4]
mov eax, dword [ebp - 0x10d0]
sub eax, ecx
mov dword [ebp - 0x10c4], ecx
push 0x18
cdq
pop ecx
idiv ecx
mov ebx, eax
test ebx, ebx
je 0x1000234d
xor edi, edi
test ebx, ebx
je 0x100022b0
lea eax, [esi + 0x90]
mov esi, dword [ebp - 0x10c4]
mov dword [ebp - 0x10c0], eax
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.100052d8
lea eax, [ebx - 1]
cmp edi, eax
je 0x1000229a
mov ecx, 0x10009cf8
call fcn.100010db
mov ecx, dword [ebp - 0x10c0]
push eax
push 0x10009cf8
call fcn.10005237
push 0x18
pop eax
inc edi
add esi, eax
mov eax, dword [ebp - 0x10c0]
cmp edi, ebx
jb 0x1000226c
mov esi, dword [ebp - 0x1108]
push 0x10009c10
lea ecx, [ebp - 0x1098]
call fcn.10004062
lea eax, [ebp - 0x1098]
mov byte [ebp - 4], 4
lea edi, [esi + 0x90]
push eax
mov edx, edi
lea ecx, [ebp - 0x10b0]
call fcn.100015c5
pop ecx
mov ebx, eax
cmp edi, ebx
je 0x100022fa
xor eax, eax
mov ecx, edi
push 0
inc eax
push eax
call fcn.10004a37
push ebx
mov ecx, edi
call fcn.10004c05
xor ebx, ebx
lea ecx, [ebp - 0x10b0]
push 0
inc ebx
push ebx
call fcn.10004a37
push 0
push ebx
lea ecx, [ebp - 0x1098]
mov byte [ebp - 4], 3
call fcn.10004a37
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x1000234d
cmp dword [edi + 0x14], 8
jb 0x1000232e
mov eax, dword [edi]
jmp 0x10002330
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x3b
je 0x1000234d
mov ebx, 0x10009d00
mov ecx, ebx
call fcn.100010db
push eax
push ebx
mov ecx, edi
call fcn.10005237
mov ebx, dword [ebp - 0x10c8]
xor eax, eax
lea ecx, [ebp - 0x1068]
push 0
inc eax
push eax
call fcn.10004a37
lea ecx, [ebp - 0x10d4]
mov byte [ebp - 4], 0
call fcn.10003fa7
mov edi, dword [ebp - 0x10b8]
push ebx
call fcn.1000730f
pop ecx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], ebx
push eax
push ebx
push ebx
push 0x13
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x100023aa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x10002418
mov eax, dword [ebp - 0x10bc]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10007781
mov edi, eax
pop ecx
test edi, edi
je 0x10002418
mov ecx, dword [ebp - 0x10bc]
add ecx, ecx
push ecx
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10bc]
push ebx
push eax
push edi
push ebx
mov ebx, dword [ebp - 0x10b8]
push 0x13
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1000240f
mov ecx, edi
call fcn.100010db
push eax
push edi
lea ecx, [esi + 0xfc]
call fcn.10004a8a
push edi
call fcn.1000730f
pop ecx
jmp 0x1000241e
mov ebx, dword [ebp - 0x10b8]
mov eax, dword [esi + 0x80]
xor edi, edi
mov dword [ebp - 0x10c4], edi
mov ecx, 0x2800
mov dword [ebp - 0x10c0], ecx
test eax, eax
je 0x10002448
push eax
call fcn.1000730f
and dword [esi + 0x80], edi
pop ecx
push 0x2800
call fcn.10007781
mov dword [esi + 0x80], eax
pop ecx
test eax, eax
je 0x100027de
push 0x2800
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
and dword [ebp - 0x10bc], 0
lea eax, [ebp - 0x10bc]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1000258d
push edi
mov ecx, esi
call fcn.1000288f
mov eax, dword [ebp - 0x10bc]
inc eax
push eax
call fcn.10007781
mov ebx, eax
pop ecx
test ebx, ebx
je 0x10002578
mov ecx, dword [ebp - 0x10bc]
inc ecx
push ecx
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
and dword [ebp - 0x10c8], 0
lea eax, [ebp - 0x10c8]
add esp, 0xc
push eax
push dword [ebp - 0x10bc]
push ebx
push dword [ebp - 0x10b8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x10002571
mov ecx, dword [ebp - 0x10c8]
mov edx, dword [ebp - 0x10c0]
lea eax, [ecx + edi]
cmp eax, edx
jbe 0x10002552
mov edi, dword [esi + 0x80]
add edx, edx
push edx
mov dword [ebp - 0x10c0], edx
call fcn.10007781
mov dword [esi + 0x80], eax
pop ecx
test eax, eax
je 0x1000259b
mov ecx, dword [ebp - 0x10c0]
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [ebp - 0x10c4]
push edi
push dword [esi + 0x80]
call sub.VCRUNTIME140.dll_memcpy
push edi
call fcn.1000730f
mov ecx, dword [ebp - 0x10c8]
add esp, 0x1c
mov edi, dword [ebp - 0x10c4]
mov eax, dword [esi + 0x80]
push ecx
add eax, edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add edi, dword [ebp - 0x10c8]
mov dword [ebp - 0x10c4], edi
push ebx
call fcn.1000730f
pop ecx
mov ebx, dword [ebp - 0x10b8]
cmp dword [ebp - 0x10bc], 0
ja 0x10002471
jmp 0x100025ae
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x1000257e
mov dword [esi + 0x80], edi
mov edi, dword [ebp - 0x10c4]
mov byte [ebp - 0x10d8], 0
push edi
mov ecx, esi
call fcn.1000288f
xor eax, eax
mov dword [esi + 0x84], edi
inc eax
xor ebx, ebx
mov edi, eax
mov dword [ebp - 0x10c0], eax
lea eax, [esi + 0x68]
mov dword [ebp - 0x10c4], ebx
cmp dword [eax + 0x14], 8
jb 0x100025da
mov eax, dword [eax]
push 5
push 0x10009d04
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10002602
mov ebx, 0xfde9
xor edi, edi
mov dword [ebp - 0x10c4], ebx
mov dword [ebp - 0x10c0], edi
mov eax, dword [esi + 0x84]
push 0
push 0
inc eax
push eax
push dword [esi + 0x80]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
push ebx
call edi
mov ebx, eax
test ebx, ebx
jg 0x1000264f
mov eax, dword [esi + 0x84]
xor ecx, ecx
push ecx
xor edx, edx
mov dword [ebp - 0x10c4], ecx
inc edx
inc eax
push ecx
push eax
push dword [esi + 0x80]
mov dword [ebp - 0x10c0], edx
push edx
push ecx
call edi
mov ebx, eax
test ebx, ebx
jle 0x100026b9
xor ecx, ecx
mov eax, ebx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10007781
mov edi, eax
pop ecx
test edi, edi
je 0x100026b9
lea ecx, [ebx + ebx]
push ecx
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x84]
add esp, 0xc
inc eax
push ebx
push edi
push eax
push dword [esi + 0x80]
push dword [ebp - 0x10c0]
push dword [ebp - 0x10c4]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jle 0x100026b2
mov ecx, edi
call fcn.100010db
push eax
push edi
lea ecx, [esi + 0x50]
call fcn.10004a8a
push edi
call fcn.1000730f
pop ecx
xor eax, eax
lea ecx, [ebp - 0x1080]
inc eax
mov edx, 0x10009c14
mov byte [ebp - 0x10b1], al
call fcn.1000642b
test al, al
je 0x100027f8
push str._html_
lea ecx, [ebp - 0x1068]
call fcn.10004062
xor ebx, ebx
mov dword [ebp - 0x10e4], ebx
mov dword [ebp - 0x10e0], ebx
mov dword [ebp - 0x10dc], ebx
push ecx
lea eax, [ebp - 0x10e4]
mov byte [ebp - 4], 7
push eax
lea edi, [esi + 0x50]
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.100012dd
add esp, 0x10
test al, al
je 0x10002794
mov eax, dword [ebp - 0x10e0]
sub eax, dword [ebp - 0x10e4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x10002794
mov ecx, str.__html_
call fcn.100010db
push eax
push str.__html_
lea ecx, [ebp - 0x1068]
call fcn.10004a8a
push ecx
lea eax, [ebp - 0x10e4]
push eax
push edi
push ecx
lea ecx, [ebp - 0x1068]
call fcn.100012dd
add esp, 0x10
test al, al
je 0x10002784
mov eax, dword [ebp - 0x10e0]
sub eax, dword [ebp - 0x10e4]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x10002794
mov dword [esi + 0xf8], 0xd
mov byte [ebp - 0x10b1], bl
lea ecx, [ebp - 0x10e4]
call fcn.10003fa7
xor eax, eax
mov byte [ebp - 4], bl
push ebx
inc eax
lea ecx, [ebp - 0x1068]
push eax
call fcn.10004a37
mov edi, dword [ebp - 0x10b8]
jmp 0x100027ca
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0xf8], eax
jmp 0x100027ca
xor ebx, ebx
cmp byte [ebp - 0x10b1], 0
jne 0x100027e2
mov ecx, dword [ebp - 0x110c]
jmp 0x10001bab
xor bl, bl
jmp 0x100027e8
mov ebx, dword [ebp - 0x10d8]
xor eax, eax
movzx ebx, bl
cmp byte [ebp - 0x10b1], al
cmove ebx, eax
jmp 0x100027fe
mov ebx, dword [ebp - 0x10d8]
push dword [ebp - 0x10b8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0x1110]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x10002824
mov dword [esi + 0xf8], 0x57
xor bl, bl
xor eax, eax
lea ecx, [ebp - 0x1080]
push 0
inc eax
push eax
call fcn.10004a37
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.100072fe
mov esp, ebp
pop ebp
ret 8