Function at 0x4aac46
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 0x60138c
mov eax, dword fs:[0]
push eax
mov eax, 0x1128
call fcn.004d1ce0
mov eax, dword [0x672494]
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 dword [ebp - 0x10e4], edi
cmp dword [edi + 0x18], 0
ja 0x4aac97
mov dword [edi + 0xe0], 3
xor al, al
jmp 0x4ab910
xor ebx, ebx
mov dword [ebp - 0x1088], 7
xor eax, eax
mov dword [ebp - 0x108c], ebx
mov word [ebp - 0x109c], ax
push str.POST
lea ecx, [ebp - 0x109c]
mov dword [ebp - 4], ebx
call fcn.00417d00
mov eax, dword [edi]
mov byte [ebp - 0x10b5], 1
test eax, eax
jne 0x4aad02
lea eax, [edi + 0xfc]
cmp dword [eax + 0x14], 8
jb 0x4aace0
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
test eax, eax
jne 0x4aad02
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
jmp 0x4ab903
push dword [edi + 0x168]
push dword [edi + 0x164]
push dword [edi + 0x160]
push dword [edi + 0x15c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x208
lea eax, [ebp - 0x424]
push ebx
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x1054]
push 0xa28
push ebx
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x1130]
push 0x3c
pop esi
push esi
push ebx
push eax
call fcn.0056c1d0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x1130], esi
mov dword [ebp - 0x1120], eax
add esp, 0xc
cmp dword [edi + 0x1c], 8
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x1104], eax
lea eax, [edi + 8]
mov dword [ebp - 0x111c], 0x104
mov dword [ebp - 0x1100], 0x514
mov dword [ebp - 0x1128], 1
jb 0x4aada7
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x1130]
push ecx
push ebx
push dword [edi + 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x4ab8ff
lea eax, [ebp - 0x424]
push eax
lea ecx, [edi + 0x20]
call fcn.00417d00
push ebx
push dword [ebp - 0x1118]
lea eax, [ebp - 0x424]
push eax
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, eax
mov dword [ebp - 0x10e8], edx
test edx, edx
je 0x4ab8eb
push 2
pop esi
xor ecx, ecx
mov eax, 0x800000
cmp dword [ebp - 0x1124], esi
cmove ecx, eax
cmp dword [ebp - 0x1088], 8
push ecx
push ebx
push ebx
push ebx
push dword [ebp - 0x1104]
lea eax, [ebp - 0x109c]
cmovae eax, dword [ebp - 0x109c]
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
mov dword [ebp - 0x10c8], esi
test esi, esi
je 0x4ab8d1
cmp byte [edi + 4], 0
jne 0x4aae7c
push 2
pop eax
cmp dword [ebp - 0x1124], eax
jne 0x4aae7c
push 4
lea eax, [ebp - 0x10c4]
mov dword [ebp - 0x10c4], 0x3100
push eax
push 0x1f
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4aae7c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
mov ecx, ebx
mov dword [ebp - 0x10c4], 0x18
mov eax, ecx
inc ecx
mov dword [ebp - 0x10cc], ecx
cmp eax, 3
jae 0x4ab8c2
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x4aaed0
lea eax, [edi + 0xb0]
cmp dword [eax + 0x14], 8
jb 0x4aaeb2
mov eax, dword [eax]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4aaed0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
lea esi, [edi + 0x90]
cmp dword [esi + 0x10], 0
jbe 0x4aaf49
push str.Cookie:
lea ecx, [ebp - 0x106c]
call fcn.00417ec0
push esi
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 1
call fcn.00422fb0
cmp dword [ebp - 0x1058], 8
lea eax, [ebp - 0x106c]
mov esi, dword [ebp - 0x10c8]
cmovae eax, dword [ebp - 0x106c]
push 0x1000000
push dword [ebp - 0x105c]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4aaf39
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], bl
call fcn.0040f8c0
jmp 0x4aaf4f
mov esi, dword [ebp - 0x10c8]
cmp dword [edi + 0xd8], 0
jbe 0x4ab04e
push 0xc
lea eax, [ebp - 0x10a8]
push ebx
push eax
call fcn.0056c1d0
add esp, 0xc
mov dword [ebp - 0x10a8], 3
lea eax, [ebp - 0x21c]
push 0x208
push ebx
push eax
call fcn.0056c1d0
lea eax, [edi + 0xc8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4aaf9b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.0057fa44
add esp, 0xc
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x10a4], eax
lea eax, [ebp - 0x10a8]
push 0xc
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4aafde
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
mov eax, dword [edi + 0x124]
test eax, eax
je 0x4ab04e
lea ecx, [edi + 0x114]
cmp dword [ecx + 0x14], 8
jb 0x4aaff6
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1002
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4ab016
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
mov eax, dword [edi + 0x13c]
test eax, eax
je 0x4ab04e
lea ecx, [edi + 0x12c]
cmp dword [ecx + 0x14], 8
jb 0x4ab02e
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push 0x1003
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4ab04e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
push ebx
push dword [edi + 0xac]
mov byte [ebp - 0x10bd], bl
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x4ab2c6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x10
mov dword [edi + 0xe0], eax
lea eax, [ebp - 0x107c]
push ebx
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x107c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov ecx, dword [ebp - 0x10cc]
test eax, eax
je 0x4aae88
cmp dword [ebp - 0x1078], 0
je 0x4ab1aa
push 0x18
pop eax
push eax
lea eax, [ebp - 0x106c]
push ebx
push eax
call fcn.0056c1d0
mov eax, dword [ebp - 0x1078]
add esp, 0xc
xor ecx, ecx
mov dword [ebp - 0x1064], eax
inc ecx
mov dword [ebp - 0x106c], 3
lea eax, [ebp - 0x10dc]
mov dword [ebp - 0x1068], ecx
push 0xc
push ebx
push eax
mov dword [ebp - 0x1058], ecx
mov dword [ebp - 0x105c], ebx
mov dword [ebp - 0x1060], ebx
call fcn.0056c1d0
add esp, 0xc
lea eax, [edi + 8]
cmp dword [edi + 0x1c], 8
jb 0x4ab117
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x10dc]
push ecx
lea ecx, [ebp - 0x106c]
push ecx
push eax
push dword [edi]
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x4ab268
push 0xc
lea eax, [ebp - 0x10dc]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x4ab16b
push ebx
push dword [edi + 0xac]
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x4ab16b
mov byte [ebp - 0x10bd], 1
jmp 0x4ab177
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
cmp dword [ebp - 0x10d8], 0
je 0x4ab18c
push dword [ebp - 0x10d8]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x10d4], 0
je 0x4ab274
push dword [ebp - 0x10d4]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
jmp 0x4ab274
cmp dword [ebp - 0x1074], 0
je 0x4ab29e
push 0xc
lea eax, [ebp - 0x10f4]
push ebx
push eax
call fcn.0056c1d0
add esp, 0xc
mov dword [ebp - 0x10f4], 3
lea eax, [ebp - 0x21c]
push 0x208
push ebx
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x21c]
push dword [ebp - 0x1074]
push 0x104
push eax
call fcn.0057fa44
add esp, 0xc
lea eax, [ebp - 0x21c]
cmp dword [ebp - 0x1070], 0
mov dword [ebp - 0x10f0], eax
je 0x4ab252
push 0x208
lea eax, [ebp - 0x62c]
push ebx
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x62c]
push dword [ebp - 0x1070]
push 0x104
push eax
call fcn.0057fa44
lea eax, [ebp - 0x62c]
add esp, 0xc
mov dword [ebp - 0x10ec], eax
push 0xc
lea eax, [ebp - 0x10f4]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x4ab274
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
cmp dword [ebp - 0x1078], 0
je 0x4ab289
push dword [ebp - 0x1078]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x1074], 0
je 0x4ab29e
push dword [ebp - 0x1074]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [ebp - 0x1070], 0
je 0x4ab2b3
push dword [ebp - 0x1070]
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp byte [ebp - 0x10bd], 0
mov ecx, dword [ebp - 0x10cc]
je 0x4aae88
mov eax, dword [edi + 0xa8]
test eax, eax
je 0x4ab2fb
lea ecx, [ebp - 0x10d0]
mov dword [ebp - 0x10d0], ebx
push ecx
push dword [edi + 0xac]
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4ab2fb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x4ab31e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x10cc]
mov dword [edi + 0xe0], eax
jmp 0x4aae88
push ebx
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], ebx
push eax
push ebx
push ebx
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4ab34a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4ab5ed
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.004c1877
mov esi, eax
mov dword [ebp - 0x10e0], esi
pop ecx
test esi, esi
je 0x4ab5e7
mov eax, dword [ebp - 0x10bc]
add eax, eax
push eax
push ebx
push esi
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x10bc]
push ebx
push eax
push esi
push ebx
push 0x16
push dword [ebp - 0x10c8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4ab5e0
push dword [ebp - 0x10e0]
lea esi, [edi + 0x38]
mov ecx, esi
call fcn.00417d00
mov dword [ebp - 0x10dc], ebx
mov dword [ebp - 0x10d8], ebx
mov dword [ebp - 0x10d4], ebx
push 2
pop eax
push 0x647520
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], al
call fcn.00417ec0
push str.Content_Length:__0_9_
lea ecx, [ebp - 0x106c]
mov byte [ebp - 4], 3
call fcn.00417d00
push ecx
lea eax, [ebp - 0x10dc]
push eax
push esi
push ecx
lea ecx, [ebp - 0x106c]
call fcn.00452670
add esp, 0x10
test al, al
je 0x4ab43b
mov eax, dword [ebp - 0x10d8]
mov ecx, dword [ebp - 0x10dc]
sub eax, ecx
cdq
idiv dword [ebp - 0x10c4]
test eax, eax
je 0x4ab43b
cmp dword [ecx + 0x14], 8
jb 0x4ab431
mov ecx, dword [ecx]
push ecx
call fcn.00575252
pop ecx
mov dword [edi + 0x74], eax
push str.Location:__0_9_
lea ecx, [ebp - 0x106c]
call fcn.00417d00
push ecx
lea eax, [ebp - 0x10dc]
push eax
push esi
push ecx
lea ecx, [ebp - 0x106c]
call fcn.00452670
add esp, 0x10
test al, al
je 0x4ab48e
mov eax, dword [ebp - 0x10d8]
sub eax, dword [ebp - 0x10dc]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
je 0x4ab48e
push dword [ebp - 0x10dc]
lea ecx, [edi + 0x144]
call fcn.00417d30
push str.Set_Cookie:_b.__n
lea ecx, [ebp - 0x106c]
call fcn.00417d00
push ecx
lea eax, [ebp - 0x10dc]
push eax
push esi
push ecx
lea ecx, [ebp - 0x106c]
call fcn.00452670
add esp, 0x10
test al, al
je 0x4ab5c1
mov eax, dword [ebp - 0x10d8]
mov ecx, dword [ebp - 0x10dc]
sub eax, ecx
push 0x18
cdq
pop esi
idiv esi
test eax, eax
je 0x4ab5c1
lea edx, [edi + 0x78]
mov edi, ebx
mov dword [ebp - 0x10d0], edx
lea eax, [ecx + edi]
mov ecx, edx
push eax
call fcn.00422fb0
mov esi, dword [ebp - 0x10d8]
mov eax, esi
mov ecx, dword [ebp - 0x10dc]
sub eax, ecx
cdq
idiv dword [ebp - 0x10c4]
dec eax
cmp ebx, eax
je 0x4ab528
mov ecx, dword [ebp - 0x10d0]
push 0x652474
call fcn.004275b0
mov esi, dword [ebp - 0x10d8]
mov ecx, dword [ebp - 0x10dc]
push 0x18
pop eax
add edi, eax
sub esi, ecx
mov eax, esi
inc ebx
push 0x18
cdq
pop esi
idiv esi
mov edx, dword [ebp - 0x10d0]
cmp ebx, eax
jb 0x4ab4e5
mov edi, dword [ebp - 0x10e4]
lea ecx, [ebp - 0x1084]
push 0x64c0bc
call fcn.00417ec0
lea eax, [ebp - 0x1084]
mov byte [ebp - 4], 4
push eax
lea edx, [edi + 0x78]
lea ecx, [ebp - 0x10b4]
call fcn.004aa941
pop ecx
push eax
lea ecx, [edi + 0x78]
call fcn.004135d0
lea ecx, [ebp - 0x10b4]
call fcn.0040f8c0
lea ecx, [ebp - 0x1084]
mov byte [ebp - 4], 3
call fcn.0040f8c0
mov edx, dword [edi + 0x88]
push 0
pop ebx
test edx, edx
je 0x4ab5c1
lea ecx, [edi + 0x78]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x4ab5af
mov eax, dword [ecx]
cmp word [eax + edx*2 - 2], 0x3b
je 0x4ab5c1
push 0x65247c
call fcn.004275b0
lea ecx, [ebp - 0x106c]
call fcn.0040f8c0
lea ecx, [ebp - 0x10dc]
mov byte [ebp - 4], bl
call fcn.004141a0
mov esi, dword [ebp - 0x10e0]
push esi
call fcn.0042a390
pop ecx
mov esi, dword [ebp - 0x10c8]
push ebx
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], ebx
push eax
push ebx
push ebx
push 0x13
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x4ab615
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x4ab678
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.004c1877
mov esi, eax
pop ecx
test esi, esi
je 0x4ab678
mov eax, dword [ebp - 0x10bc]
add eax, eax
push eax
push ebx
push esi
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x10bc]
push ebx
push eax
push esi
push ebx
push 0x13
push dword [ebp - 0x10c8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4ab671
push esi
lea ecx, [edi + 0xe4]
call fcn.00417d00
push esi
call fcn.0042a390
pop ecx
cmp dword [edi + 0x68], 0
mov eax, 0x2800
mov dword [ebp - 0x10e0], eax
mov esi, ebx
je 0x4ab69c
push dword [edi + 0x68]
call fcn.0042a390
pop ecx
mov dword [edi + 0x68], ebx
mov eax, 0x2800
push eax
call fcn.004c1877
pop ecx
mov ecx, eax
mov dword [edi + 0x68], ecx
test ecx, ecx
je 0x4ab8b6
mov eax, 0x2800
push eax
push ebx
push ecx
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x10bc]
mov dword [ebp - 0x10bc], ebx
push eax
push dword [ebp - 0x10c8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4ab7d8
push esi
mov ecx, edi
call fcn.004ab92c
mov eax, dword [ebp - 0x10bc]
inc eax
push eax
call fcn.004c1877
pop ecx
mov ecx, eax
mov dword [ebp - 0x10d0], ecx
test ecx, ecx
je 0x4ab7e4
mov eax, dword [ebp - 0x10bc]
inc eax
push eax
push ebx
push ecx
call fcn.0056c1d0
add esp, 0xc
mov dword [ebp - 0x10cc], ebx
lea eax, [ebp - 0x10cc]
push eax
push dword [ebp - 0x10bc]
push dword [ebp - 0x10d0]
push dword [ebp - 0x10c8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4ab7ca
mov edx, dword [ebp - 0x10cc]
mov ecx, dword [ebp - 0x10e0]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4ab7af
mov eax, dword [edi + 0x68]
add ecx, ecx
push ecx
mov dword [ebp - 0x10c4], eax
mov dword [ebp - 0x10e0], ecx
call fcn.004c1877
pop ecx
mov ecx, eax
mov dword [edi + 0x68], ecx
test ecx, ecx
je 0x4ab7f3
mov eax, dword [ebp - 0x10e0]
push eax
push ebx
push ecx
call fcn.0056c1d0
add esp, 0xc
push esi
push dword [ebp - 0x10c4]
push dword [edi + 0x68]
call fcn.0056bc50
add esp, 0xc
push dword [ebp - 0x10c4]
call fcn.0042a390
mov edx, dword [ebp - 0x10cc]
pop ecx
mov eax, dword [edi + 0x68]
push edx
push dword [ebp - 0x10d0]
add eax, esi
push eax
call fcn.0056bc50
add esp, 0xc
add esi, dword [ebp - 0x10cc]
push dword [ebp - 0x10d0]
call fcn.0042a390
pop ecx
jmp 0x4ab7e4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
cmp dword [ebp - 0x10bc], 0
ja 0x4ab6c0
jmp 0x4ab802
mov eax, dword [ebp - 0x10c4]
mov dword [edi + 0x68], eax
mov byte [ebp - 0x10b5], bl
push esi
mov ecx, edi
call fcn.004ab92c
push ebx
push ebx
lea eax, [esi + 1]
mov dword [edi + 0x6c], esi
push eax
push dword [edi + 0x68]
mov ecx, 0xfde9
push 1
push ecx
mov dword [ebp - 0x10c4], ecx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x4ab84f
mov eax, dword [edi + 0x6c]
push ebx
push ebx
inc eax
mov dword [ebp - 0x10c4], ebx
push eax
push dword [edi + 0x68]
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x4ab8b2
xor ecx, ecx
mov eax, esi
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c1877
pop ecx
mov ecx, eax
mov dword [ebp - 0x10e4], ecx
test ecx, ecx
je 0x4ab8b2
lea eax, [esi + esi]
push eax
push ebx
push ecx
call fcn.0056c1d0
mov eax, dword [edi + 0x6c]
add esp, 0xc
inc eax
push esi
mov esi, dword [ebp - 0x10e4]
push esi
push eax
push dword [edi + 0x68]
push 1
push dword [ebp - 0x10c4]
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
jle 0x4ab8ab
push esi
lea ecx, [edi + 0x50]
call fcn.00417d00
push esi
call fcn.0042a390
pop ecx
mov bl, 1
jmp 0x4ab8bc
mov byte [ebp - 0x10b5], bl
mov esi, dword [ebp - 0x10c8]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
and byte [ebp - 0x10b5], bl
jmp 0x4ab8dd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
push dword [ebp - 0x10e8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x4ab8f7
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [edi + 0xe0], eax
mov al, byte [ebp - 0x10b5]
jmp 0x4ab901
mov al, bl
mov bl, al
lea ecx, [ebp - 0x109c]
call fcn.0040f8c0
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.004d0a85
leave
ret 0xc