Function at 0x410df0
Capabilities:
Initialize winhttp library
Make an http request with a cookie
Prepare http request
Read http header
Receive http response
Resolve function by parsing pe exports
Send data
Send http request
Set http header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ea748
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1184
call fcn.00460e60
mov eax, dword [0x53450c]
xor eax, esp
mov dword [esp + 0x1180], eax
push ebx
push esi
push edi
mov eax, dword [0x53450c]
xor eax, esp
push eax
lea eax, [esp + 0x1198]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x18], esi
ja 0x410e50
mov dword [edi + 0x124], 3
jmp 0x411d9d
push 0xffffffffffffffff
xor ecx, ecx
push esi
mov word [esp + 0xe4], cx
push eax
lea ecx, [esp + 0xe8]
mov dword [esp + 0xfc], 7
mov dword [esp + 0xf8], esi
call fcn.004012d0
mov dword [esp + 0x11a0], esi
mov eax, dword [esp + 0xdc]
mov ebx, 8
cmp dword [esp + 0xf0], ebx
jae 0x410e9f
lea eax, [esp + 0xdc]
push 0x518924
push eax
call fcn.004638e9
add esp, 8
test eax, eax
jne 0x410eba
push 3
push 0x518924
jmp 0x410eee
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], ebx
jae 0x410ed1
lea eax, [esp + 0xdc]
push 0x51892c
push eax
call fcn.004638e9
add esp, 8
test eax, eax
jne 0x411d7a
push 4
push 0x51892c
lea ecx, [esp + 0xe4]
call fcn.00401620
mov byte [esp + 0x13], 1
cmp dword [edi], esi
jne 0x410f4a
cmp dword [edi + 0x158], ebx
lea eax, [edi + 0x144]
jb 0x410f13
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [edi], eax
cmp eax, esi
jne 0x410f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
cmp dword [esp + 0xf0], ebx
jb 0x411d9d
mov edx, dword [esp + 0xdc]
push edx
jmp 0x411d95
mov eax, dword [edi + 0x1c4]
mov ecx, dword [edi + 0x1c0]
mov edx, dword [edi + 0x1bc]
push eax
mov eax, dword [edi + 0x1b8]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x206
lea eax, [esp + 0x35a]
xor edx, edx
push esi
push eax
mov word [esp + 0x360], dx
call fcn.0045f2d0
add esp, 0xc
push 0xa26
lea edx, [esp + 0x76a]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x770], cx
call fcn.0045f2d0
add esp, 0xc
push 0x3c
lea eax, [esp + 0xa4]
push esi
push eax
call fcn.0045f2d0
lea ecx, [esp + 0x360]
lea eax, [edi + 8]
add esp, 0xc
lea edx, [esp + 0x764]
mov dword [esp + 0xb0], ecx
mov ecx, dword [edi + 0x18]
mov dword [esp + 0xa0], 0x3c
mov dword [esp + 0xb4], 0x104
mov dword [esp + 0xcc], edx
mov dword [esp + 0xd0], 0x514
mov dword [esp + 0xa8], 1
cmp dword [eax + 0x14], ebx
jb 0x411017
mov eax, dword [eax]
lea edx, [esp + 0xa0]
push edx
push esi
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
test eax, eax
je 0x411d5b
lea eax, [esp + 0x354]
lea edx, [eax + 2]
mov ebx, 2
nop
mov cx, word [eax]
add eax, ebx
cmp cx, si
jne 0x411040
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x358]
push eax
lea ecx, [edi + 0x24]
call fcn.00401620
mov ecx, dword [esp + 0xb8]
mov eax, dword [edi]
push 0
push ecx
lea edx, [esp + 0x35c]
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov esi, eax
mov dword [esp + 0x9c], esi
test esi, esi
je 0x411d56
mov eax, dword [esp + 0xdc]
xor ecx, ecx
cmp dword [esp + 0xac], ebx
setne cl
dec ecx
and ecx, 0x800000
cmp dword [esp + 0xf0], 8
jae 0x4110b6
lea eax, [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xd0]
push 0
push 0
push 0
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x411d4f
cmp byte [edi + 4], 0
jne 0x411100
cmp dword [esp + 0xac], ebx
jne 0x411100
push 4
lea edx, [esp + 0x2c]
push edx
push 0x1f
push eax
mov dword [esp + 0x38], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [esp + 0x12], 0
mov dword [esp + 0x28], 0
lea ecx, [ecx]
mov eax, dword [esp + 0x28]
mov ecx, eax
inc eax
mov dword [esp + 0x28], eax
cmp ecx, 3
jae 0x411d31
mov ecx, dword [edi + 0xfc]
mov ebx, 8
test ecx, ecx
je 0x411167
cmp dword [edi + 0x100], ebx
lea eax, [edi + 0xec]
jb 0x411143
mov eax, dword [eax]
mov esi, dword [esp + 0x1c]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41116b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
jmp 0x41116b
mov esi, dword [esp + 0x1c]
cmp dword [edi + 0xd0], 0
jbe 0x4111f8
push str.Cookie:
lea ecx, [esp + 0xfc]
call fcn.00403d40
push 0xffffffffffffffff
push 0
lea edx, [edi + 0xc0]
push edx
lea ecx, [esp + 0x104]
mov byte [esp + 0x11ac], 1
call fcn.0040ff00
mov eax, dword [esp + 0xf8]
cmp dword [esp + 0x10c], ebx
jae 0x4111bf
lea eax, [esp + 0xf8]
mov ecx, dword [esp + 0x108]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x4111e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x11a0], 0
call fcn.00403de0
cmp dword [edi + 0x118], 0
jbe 0x41130e
xor eax, eax
xor edx, edx
mov dword [esp + 0x8c], eax
push 0x206
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
push edx
lea eax, [esp + 0x156]
push eax
mov dword [esp + 0x98], 3
mov word [esp + 0x158], dx
call fcn.0045f2d0
lea eax, [edi + 0x108]
add esp, 0xc
cmp dword [eax + 0x14], ebx
jb 0x411254
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x150]
push 0x104
push ecx
call fcn.0045f6c5
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea eax, [esp + 0x90]
push eax
push 0x26
lea edx, [esp + 0x158]
push esi
mov dword [esp + 0xa0], edx
call ebx
test eax, eax
jne 0x41129d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
mov ecx, dword [edi + 0x174]
test ecx, ecx
je 0x411314
cmp dword [edi + 0x178], 8
lea eax, [edi + 0x164]
jb 0x4112b8
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1002
push esi
call ebx
test eax, eax
jne 0x4112d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
mov ecx, dword [edi + 0x190]
test ecx, ecx
je 0x411314
cmp dword [edi + 0x194], 8
lea eax, [edi + 0x180]
jb 0x4112ef
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1003
push esi
call ebx
test eax, eax
jne 0x411314
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
jmp 0x411314
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp byte [ebp + 0xc], 0
je 0x41133e
push 4
lea eax, [esp + 0x18]
push eax
push 0x3f
push esi
mov dword [esp + 0x24], 2
call ebx
test eax, eax
jne 0x41133e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
mov eax, dword [edi + 0xe8]
mov byte [esp + 0x27], 0
test eax, eax
jne 0x411351
xor ecx, ecx
jmp 0x411357
mov ecx, dword [edi + 0xe0]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push eax
push eax
push ecx
push 0
push 0
push esi
call ebx
test eax, eax
jne 0x411594
lea ecx, [esp + 0x3c]
push ecx
xor esi, esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x411d13
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x41148c
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
xor eax, eax
cmp dword [edi + 0x1c], 8
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [edi + 8]
mov dword [esp + 0x74], 3
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], esi
jb 0x411408
mov eax, dword [eax]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [edi]
lea ecx, [esp + 0x78]
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x411550
mov esi, dword [esp + 0x1c]
push 0xc
lea eax, [esp + 0x60]
push eax
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x411465
mov eax, dword [edi + 0xe8]
test eax, eax
jne 0x41144a
xor ecx, ecx
jmp 0x411450
mov ecx, dword [edi + 0xe0]
push 0
push eax
push eax
push ecx
push 0
push 0
push esi
call ebx
test eax, eax
je 0x411465
mov byte [esp + 0x27], 1
mov eax, dword [esp + 0x60]
test eax, eax
je 0x411474
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41155c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41155c
mov esi, dword [esp + 0x44]
test esi, esi
je 0x41157a
xor ecx, ecx
xor eax, eax
push 0x206
push ecx
lea edx, [esp + 0x156]
mov dword [esp + 0x70], eax
push edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x74], 3
mov word [esp + 0x158], cx
call fcn.0045f2d0
add esp, 0xc
push esi
lea eax, [esp + 0x150]
push 0x104
push eax
call fcn.0045f6c5
mov esi, dword [esp + 0x54]
add esp, 0xc
lea ecx, [esp + 0x14c]
mov dword [esp + 0x6c], ecx
test esi, esi
je 0x411538
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x566]
push eax
mov word [esp + 0x568], dx
call fcn.0045f2d0
add esp, 0xc
push esi
lea ecx, [esp + 0x560]
push 0x104
push ecx
call fcn.0045f6c5
lea edx, [esp + 0x568]
add esp, 0xc
mov dword [esp + 0x70], edx
mov ecx, dword [esp + 0x1c]
push 0xc
lea eax, [esp + 0x6c]
push eax
push 0x26
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x41155c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41156b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x41157a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x411589
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [esp + 0x27], 0
je 0x411d1f
mov eax, dword [edi + 0xdc]
xor ebx, ebx
cmp eax, ebx
je 0x4115cc
mov ecx, dword [edi + 0xe4]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x20]
push ecx
push eax
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4115cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
mov esi, dword [esp + 0x1c]
push ebx
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x411d13
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push 0x16
mov dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call ebx
test eax, eax
jne 0x41160a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x411907
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044edee
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
je 0x411907
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0045f2d0
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push 0
push 0x16
push eax
call ebx
test eax, eax
je 0x4118fe
push esi
lea ecx, [edi + 0x40]
call fcn.00403d90
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
push 0x518754
lea ecx, [esp + 0xfc]
mov byte [esp + 0x11a4], 2
call fcn.00403d40
mov byte [esp + 0x11a0], 3
cmp byte [edi + 0x160], 0
jne 0x4116fc
push str.charset_A_Za_z0_9___
lea ecx, [esp + 0xfc]
call fcn.00403d90
lea ecx, [esp + 0x2c]
push ecx
lea edx, [edi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.00410360
add esp, 4
test al, al
je 0x4116fc
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4116fc
push 0xffffffffffffffff
push 0
lea ecx, [edi + 0x78]
push esi
call fcn.004012d0
push str.Content_Length:__0_9_
lea ecx, [esp + 0xfc]
call fcn.00403d90
lea ecx, [esp + 0x2c]
push ecx
lea edx, [edi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.00410360
add esp, 4
test al, al
je 0x41175e
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x41175e
cmp dword [esi + 0x14], 8
jb 0x41174f
mov esi, dword [esi]
push esi
call fcn.0045f73e
add esp, 4
mov dword [edi + 0xa0], eax
push str.Location:__0_9_
lea ecx, [esp + 0xfc]
call fcn.00403d90
lea ecx, [esp + 0x2c]
push ecx
lea edx, [edi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.00410360
add esp, 4
test al, al
je 0x4117b9
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4117b9
push 0xffffffffffffffff
push 0
push esi
lea ecx, [edi + 0x19c]
call fcn.004012d0
push str.Set_Cookie:_b.__n
lea ecx, [esp + 0xfc]
call fcn.00403d90
lea ecx, [esp + 0x2c]
push ecx
lea edx, [edi + 0x40]
lea ecx, [esp + 0xfc]
call fcn.00410360
add esp, 4
test al, al
je 0x4118d7
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x4118d7
xor ebx, ebx
test esi, esi
je 0x41184b
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [edi + 0xa4]
call fcn.0040ff00
lea eax, [esi - 1]
cmp ebx, eax
je 0x411841
push 0x518a08
lea ecx, [edi + 0xa4]
call fcn.0040fed0
add dword [esp + 0x14], 0x1c
inc ebx
cmp ebx, esi
jb 0x411816
push 0x518920
lea ecx, [esp + 0x118]
call fcn.00403d40
lea eax, [esp + 0x114]
push eax
lea esi, [edi + 0xa4]
push esi
lea edx, [esp + 0x138]
mov byte [esp + 0x11a8], 4
call fcn.00410710
add esp, 8
push eax
mov ecx, esi
mov byte [esp + 0x11a4], 5
call fcn.00404830
lea ecx, [esp + 0x130]
call fcn.00403de0
lea ecx, [esp + 0x114]
mov byte [esp + 0x11a0], 3
call fcn.00403de0
mov eax, dword [edi + 0xb4]
test eax, eax
je 0x4118d7
dec eax
push eax
mov ecx, esi
call fcn.00407710
cmp word [eax], 0x3b
je 0x4118d7
push 0x518a10
mov ecx, esi
call fcn.0040fed0
lea ecx, [esp + 0xf8]
call fcn.00403de0
lea esi, [esp + 0x2c]
mov byte [esp + 0x11a0], 0
call fcn.00411f50
mov esi, dword [esp + 0x20]
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
call fcn.0045ed60
add esp, 4
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x13
push edx
mov dword [esp + 0x30], 0
call ebx
test eax, eax
jne 0x411932
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x411994
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044edee
mov esi, eax
add esp, 4
test esi, esi
je 0x411994
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0045f2d0
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
lea edx, [esp + 0x1c]
push edx
push esi
push 0
push 0x13
push eax
call ebx
test eax, eax
je 0x41198b
push esi
lea ecx, [edi + 0x128]
call fcn.00403d90
push esi
call fcn.0045ed60
add esp, 4
mov eax, dword [edi + 0x94]
xor esi, esi
mov dword [esp + 0x14], 0x2800
cmp eax, esi
je 0x4119b7
push eax
call fcn.0045ed60
add esp, 4
mov dword [edi + 0x94], esi
push 0x2800
call fcn.0044edee
add esp, 4
mov dword [edi + 0x94], eax
cmp eax, esi
je 0x411d2c
push 0x2800
push esi
push eax
call fcn.0045f2d0
add esp, 0xc
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x411ae9
push esi
mov edx, edi
call fcn.00411dd0
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.0044edee
mov ebx, eax
add esp, 4
mov dword [esp + 0x98], ebx
test ebx, ebx
je 0x411af5
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
push 0
push ebx
call fcn.0045f2d0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x30], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x411ade
mov edx, dword [esp + 0x20]
add edx, esi
cmp edx, dword [esp + 0x14]
jbe 0x411ac3
mov eax, dword [esp + 0x14]
mov ebx, dword [edi + 0x94]
add eax, eax
push eax
mov dword [esp + 0x18], eax
call fcn.0044edee
add esp, 4
mov dword [edi + 0x94], eax
test eax, eax
je 0x411b02
mov ecx, dword [esp + 0x14]
push ecx
push 0
push eax
mov dword [esp + 0x20], ecx
call fcn.0045f2d0
mov eax, dword [edi + 0x94]
add esp, 0xc
push esi
push ebx
push eax
call fcn.0045e280
add esp, 0xc
push ebx
call fcn.0045ed60
mov ebx, dword [esp + 0x9c]
add esp, 4
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 0x94]
push ecx
add edx, esi
push ebx
push edx
call fcn.0045e280
add esp, 0xc
add esi, dword [esp + 0x20]
push ebx
call fcn.0045ed60
add esp, 4
jmp 0x411af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
cmp dword [esp + 0x18], 0
ja 0x4119e1
jmp 0x411b0d
mov dword [edi + 0x94], ebx
mov byte [esp + 0x13], 0
push esi
mov edx, edi
call fcn.00411dd0
lea eax, [edi + 0x78]
mov dword [edi + 0x98], esi
xor ebx, ebx
cmp dword [eax + 0x14], 8
mov dword [esp + 0x20], 1
jb 0x411b30
mov eax, dword [eax]
push 5
push 0x518a14
push eax
call fcn.00463a59
add esp, 0xc
test eax, eax
jne 0x411b4d
mov ebx, 0xfde9
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x94]
mov edx, dword [esp + 0x20]
push 0
push 0
inc eax
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x411b9c
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x94]
xor ebx, ebx
push ebx
push ebx
inc eax
push eax
push ecx
push 1
push ebx
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x411c11
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044edee
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x411c11
mov ecx, dword [esp + 0x14]
lea eax, [esi + esi]
push eax
push 0
push ecx
call fcn.0045f2d0
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x98]
mov ecx, dword [edi + 0x94]
add esp, 0xc
push esi
push edx
mov edx, dword [esp + 0x28]
inc eax
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x411c04
mov eax, dword [esp + 0x14]
push eax
lea ecx, [edi + 0x5c]
call fcn.00403d90
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045ed60
add esp, 4
lea edx, [esp + 0xdc]
push 0x518924
push edx
mov byte [esp + 0x1a], 1
call fcn.00413cb0
add esp, 8
test al, al
je 0x411d3d
cmp byte [ebp + 0xc], 0
jne 0x411d3d
push str._html_
lea ecx, [esp + 0xfc]
call fcn.00403d40
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
lea edx, [edi + 0x5c]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x11a4], 7
call fcn.00410360
add esp, 4
test al, al
je 0x411cf4
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
je 0x411cf4
push str.__html_
lea ecx, [esp + 0xfc]
call fcn.00403d90
lea edx, [esp + 0x4c]
push edx
lea edx, [edi + 0x5c]
lea ecx, [esp + 0xfc]
call fcn.00410360
add esp, 4
test al, al
je 0x411ce5
mov ecx, dword [esp + 0x50]
sub ecx, dword [esp + 0x4c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x411cf4
mov dword [edi + 0x124], 0xd
mov byte [esp + 0x12], 0
lea esi, [esp + 0x4c]
call fcn.00411f50
lea ecx, [esp + 0xf8]
mov byte [esp + 0x11a0], 0
call fcn.00403de0
jmp 0x411d1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x124], eax
cmp byte [esp + 0x12], 0
je 0x411110
jmp 0x411d3d
mov byte [esp + 0x13], 0
cmp byte [esp + 0x12], 0
jne 0x411d3d
mov byte [esp + 0x13], 0
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov esi, dword [esp + 0x9c]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov ebx, 8
cmp dword [esp + 0xf0], ebx
jb 0x411d74
mov edx, dword [esp + 0xdc]
push edx
call fcn.0045e266
add esp, 4
mov al, byte [esp + 0x13]
jmp 0x411d9f
mov dword [edi + 0x124], 0x57
cmp dword [esp + 0xf0], ebx
jb 0x411d9d
mov eax, dword [esp + 0xdc]
push eax
call fcn.0045e266
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1180]
xor ecx, esp
call fcn.0045f14f
mov esp, ebp
pop ebp
ret 8