Function at 0x414120
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 0x42d678
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1188
call fcn.00428470
mov eax, dword [0x4376f4]
xor eax, esp
mov dword [esp + 0x1184], eax
push esi
push edi
mov eax, dword [0x4376f4]
xor eax, esp
push eax
lea eax, [esp + 0x1198]
mov dword fs:[0], eax
mov eax, dword [ebx + 0x18]
xor esi, esi
cmp eax, esi
ja 0x41417c
mov dword [ebx + 0x11c], 3
jmp 0x415090
xor eax, eax
push esi
mov word [esp + 0xe0], ax
push ecx
or eax, 0xffffffff
lea edi, [esp + 0xe4]
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], esi
call fcn.0040a2c0
mov dword [esp + 0x11a0], esi
mov eax, dword [esp + 0xdc]
mov edi, 8
cmp dword [esp + 0xf0], edi
jae 0x4141cc
lea eax, [esp + 0xdc]
push 0x432890
push eax
call fcn.00419ade
add esp, 8
test eax, eax
jne 0x4141e7
push 3
mov eax, 0x432890
jmp 0x41421b
mov eax, dword [esp + 0xdc]
cmp dword [esp + 0xf0], edi
jae 0x4141fe
lea eax, [esp + 0xdc]
push 0x432898
push eax
call fcn.00419ade
add esp, 8
test eax, eax
jne 0x41506d
push 4
mov eax, 0x432898
lea ecx, [esp + 0xe0]
call fcn.0040a370
mov byte [esp + 0xe], 1
cmp dword [ebx], esi
jne 0x414277
cmp dword [ebx + 0x150], edi
lea eax, [ebx + 0x13c]
jb 0x414240
mov eax, dword [eax]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [ebx], eax
cmp eax, esi
jne 0x414277
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [esp + 0xf0], edi
jb 0x415090
mov ecx, dword [esp + 0xdc]
push ecx
jmp 0x415088
mov edx, dword [ebx + 0x1bc]
mov eax, dword [ebx + 0x1b8]
mov ecx, dword [ebx + 0x1b4]
push edx
mov edx, dword [ebx + 0x1b0]
push eax
mov eax, dword [ebx]
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push 0x206
lea edx, [esp + 0x35a]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x360], cx
call fcn.0041caf0
add esp, 0xc
push 0xa26
lea ecx, [esp + 0x76a]
xor eax, eax
push esi
push ecx
mov word [esp + 0x770], ax
call fcn.0041caf0
add esp, 0xc
push 0x3c
lea edx, [esp + 0xa4]
push esi
push edx
call fcn.0041caf0
lea eax, [esp + 0x360]
mov dword [esp + 0xbc], eax
lea ecx, [esp + 0x770]
lea eax, [ebx + 8]
add esp, 0xc
mov dword [esp + 0xcc], ecx
mov ecx, dword [ebx + 0x18]
mov dword [esp + 0xa0], 0x3c
mov dword [esp + 0xb4], 0x104
mov dword [esp + 0xd0], 0x514
mov dword [esp + 0xa8], 1
cmp dword [eax + 0x14], edi
jb 0x414344
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 0x41504e
lea eax, [esp + 0x354]
lea edx, [eax + 2]
mov esi, 2
lea esp, [esp]
mov cx, word [eax]
add eax, esi
test cx, cx
jne 0x414370
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebx + 0x24]
lea eax, [esp + 0x358]
call fcn.0040a370
mov eax, dword [esp + 0xb8]
mov edx, dword [ebx]
push 0
push eax
lea ecx, [esp + 0x35c]
push ecx
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x9c], edi
test edi, edi
je 0x415049
mov eax, dword [esp + 0xdc]
xor ecx, ecx
cmp dword [esp + 0xac], esi
setne cl
dec ecx
and ecx, 0x800000
cmp dword [esp + 0xf0], 8
jae 0x4143e5
lea eax, [esp + 0xdc]
push ecx
mov ecx, dword [esp + 0xd0]
push 0
push 0
push 0
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esp + 0x14], eax
test eax, eax
je 0x415042
cmp byte [ebx + 4], 0
jne 0x41442f
cmp dword [esp + 0xac], esi
jne 0x41442f
push 4
lea edx, [esp + 0x28]
push edx
push 0x1f
push eax
mov dword [esp + 0x34], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov byte [esp + 0xf], 0
mov dword [esp + 0x38], 0
lea esp, [esp]
mov eax, dword [esp + 0x38]
mov ecx, eax
inc eax
mov dword [esp + 0x38], eax
cmp ecx, 3
jae 0x415024
mov ecx, dword [ebx + 0xf4]
test ecx, ecx
je 0x414493
cmp dword [ebx + 0xf8], 8
lea eax, [ebx + 0xe4]
jb 0x41446f
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
push 0x1000000
push ecx
push eax
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x414497
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
jmp 0x414497
mov esi, dword [esp + 0x14]
cmp dword [ebx + 0xd0], 0
jbe 0x414524
mov eax, str.Cookie:
lea esi, [esp + 0xf8]
call fcn.0040a250
push 0
lea edx, [ebx + 0xc0]
push edx
or eax, 0xffffffff
mov edi, esi
mov byte [esp + 0x11a8], 1
call fcn.00416cd0
cmp dword [esp + 0x10c], 8
mov eax, dword [esp + 0xf8]
jae 0x4144e3
mov eax, esi
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x14]
push 0x1000000
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41450c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
lea esi, [esp + 0xf8]
mov byte [esp + 0x11a0], 0
call fcn.0040a290
mov esi, dword [esp + 0x14]
cmp dword [ebx + 0x110], 0
jbe 0x414637
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x156]
mov dword [esp + 0x94], eax
push ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x98], 3
mov word [esp + 0x158], ax
call fcn.0041caf0
lea eax, [ebx + 0x100]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41457f
mov eax, dword [eax]
push eax
lea edx, [esp + 0x150]
push 0x104
push edx
call fcn.004193a8
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
add esp, 0xc
push 0xc
lea ecx, [esp + 0x90]
push ecx
push 0x26
lea eax, [esp + 0x158]
push esi
mov dword [esp + 0xa0], eax
call edi
test eax, eax
jne 0x4145c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x16c]
test ecx, ecx
je 0x414637
cmp dword [ebx + 0x170], 8
lea eax, [ebx + 0x15c]
jb 0x4145e3
mov eax, dword [eax]
lea edx, [ecx + ecx]
push edx
push eax
push 0x1002
push esi
call edi
test eax, eax
jne 0x414600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov ecx, dword [ebx + 0x188]
test ecx, ecx
je 0x414637
cmp dword [ebx + 0x18c], 8
lea eax, [ebx + 0x178]
jb 0x41461b
mov eax, dword [eax]
add ecx, ecx
push ecx
push eax
push 0x1003
push esi
call edi
test eax, eax
jne 0x414637
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov byte [esp + 0x3f], 0
call edi
test eax, eax
jne 0x41486b
lea edx, [esp + 0x3c]
push edx
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 0x415006
mov ecx, dword [esp + 0x40]
cmp ecx, esi
je 0x414763
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 [ebx + 0x1c], 8
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [ebx + 8]
mov dword [esp + 0x74], 3
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], esi
jb 0x4146f0
mov eax, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x78]
push edx
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
test eax, eax
je 0x414827
mov esi, dword [esp + 0x14]
push 0xc
lea ecx, [esp + 0x60]
push ecx
push 0x26
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x41473c
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call edi
test eax, eax
je 0x41473c
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x60]
test eax, eax
je 0x41474b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x64]
test eax, eax
je 0x414833
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x414833
mov esi, dword [esp + 0x44]
test esi, esi
je 0x414851
xor eax, eax
xor edx, edx
mov dword [esp + 0x68], eax
push 0x206
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
push edx
lea eax, [esp + 0x156]
push eax
mov dword [esp + 0x74], 3
mov word [esp + 0x158], dx
call fcn.0041caf0
add esp, 0xc
push esi
lea ecx, [esp + 0x150]
push 0x104
push ecx
call fcn.004193a8
mov esi, dword [esp + 0x54]
add esp, 0xc
lea edx, [esp + 0x14c]
mov dword [esp + 0x6c], edx
test esi, esi
je 0x41480f
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x566]
push ecx
mov word [esp + 0x568], ax
call fcn.0041caf0
add esp, 0xc
push esi
lea edx, [esp + 0x560]
push 0x104
push edx
call fcn.004193a8
lea eax, [esp + 0x568]
add esp, 0xc
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x14]
push 0xc
lea ecx, [esp + 0x6c]
push ecx
push 0x26
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x414833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x414842
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x44]
test eax, eax
je 0x414851
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x414860
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [esp + 0x23], 0
je 0x415012
mov eax, dword [ebx + 0xdc]
xor edi, edi
cmp eax, edi
je 0x4148a3
mov edx, dword [ebx + 0xe0]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.WINHTTP.dll_WinHttpWriteData]
test eax, eax
jne 0x4148a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x415006
push edi
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push 0x16
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
cmp eax, edi
jne 0x4148df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x414bf7
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004174b7
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
je 0x414bf7
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0041caf0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push esi
push 0
push 0x16
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x414bee
lea edi, [ebx + 0x40]
push edi
mov eax, esi
call fcn.004169c0
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, 0x432880
lea esi, [esp + 0xf8]
mov byte [esp + 0x11a0], 2
call fcn.0040a250
mov byte [esp + 0x11a0], 3
cmp byte [ebx + 0x158], 0
jne 0x4149ce
mov ecx, esi
push ecx
mov eax, str.charset_A_Za_z0_9___
call fcn.004169c0
mov edx, esi
push edx
lea edx, [esp + 0x2c]
mov ecx, edi
call fcn.0040a950
add esp, 4
test al, al
je 0x4149ce
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4149ce
push 0
lea edi, [ebx + 0x78]
push esi
or eax, 0xffffffff
call fcn.0040a2c0
lea ecx, [esp + 0xf8]
push ecx
mov eax, str.Content_Length:__0_9_
call fcn.004169c0
lea edx, [esp + 0xf8]
push edx
lea edx, [esp + 0x2c]
lea ecx, [ebx + 0x40]
call fcn.0040a950
add esp, 4
test al, al
je 0x414a31
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x414a31
cmp dword [esi + 0x14], 8
jb 0x414a22
mov esi, dword [esi]
push esi
call fcn.00419d9c
add esp, 4
mov dword [ebx + 0xa0], eax
lea ecx, [esp + 0xf8]
push ecx
mov eax, str.Location:__0_9_
call fcn.004169c0
lea edx, [esp + 0xf8]
push edx
lea edx, [esp + 0x2c]
lea ecx, [ebx + 0x40]
call fcn.0040a950
add esp, 4
test al, al
je 0x414a8e
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x414a8e
push 0
push esi
lea edi, [ebx + 0x194]
or eax, 0xffffffff
call fcn.0040a2c0
lea ecx, [esp + 0xf8]
push ecx
mov eax, str.Set_Cookie:_b.__n
call fcn.004169c0
lea edx, [esp + 0xf8]
push edx
lea edx, [esp + 0x2c]
lea ecx, [ebx + 0x40]
call fcn.0040a950
add esp, 4
test al, al
je 0x414bcd
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x414bcd
mov dword [esp + 0x1c], 0
test esi, esi
je 0x414b35
mov eax, dword [esp + 0x28]
lea edi, [ebx + 0xa4]
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0x18]
push 0
push ecx
or eax, 0xffffffff
call fcn.00416cd0
lea eax, [esi - 1]
cmp dword [esp + 0x1c], eax
je 0x414b23
push edi
mov eax, 0x432974
call fcn.004169f0
mov eax, dword [esp + 0x1c]
add dword [esp + 0x18], 0x1c
inc eax
mov dword [esp + 0x1c], eax
cmp eax, esi
jb 0x414b00
mov eax, 0x43288c
lea esi, [esp + 0x114]
call fcn.0040a250
lea edx, [esp + 0x114]
push edx
lea esi, [ebx + 0xa4]
push esi
lea edx, [esp + 0x138]
mov byte [esp + 0x11a8], 4
call fcn.00413a60
add esp, 8
mov edi, eax
mov byte [esp + 0x11a0], 5
call fcn.004127c0
lea esi, [esp + 0x130]
call fcn.0040a290
lea esi, [esp + 0x114]
mov byte [esp + 0x11a0], 3
call fcn.0040a290
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x414bcd
cmp dword [ebx + 0xb8], 8
lea ecx, [ebx + 0xa4]
jb 0x414bb8
mov edx, dword [ecx]
jmp 0x414bba
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x3b
je 0x414bcd
push ecx
mov eax, 0x43297c
call fcn.004169f0
lea esi, [esp + 0xf8]
call fcn.0040a290
lea esi, [esp + 0x28]
mov byte [esp + 0x11a0], 0
call fcn.00410300
mov esi, dword [esp + 0x24]
push esi
call fcn.00418ffa
add esp, 4
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0x13
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x414c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x414c8e
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004174b7
mov esi, eax
add esp, 4
test esi, esi
je 0x414c8e
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
push ecx
push 0
push esi
call fcn.0041caf0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push esi
push 0
push 0x13
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x414c85
lea ecx, [ebx + 0x120]
push ecx
mov eax, esi
call fcn.004169c0
push esi
call fcn.00418ffa
add esp, 4
mov eax, dword [ebx + 0x94]
xor edi, edi
mov dword [esp + 0x1c], 0x2800
test eax, eax
je 0x414cb1
push eax
call fcn.00418ffa
add esp, 4
mov dword [ebx + 0x94], edi
push 0x2800
call fcn.004174b7
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x41501f
push 0x2800
push 0
push eax
call fcn.0041caf0
add esp, 0xc
lea esp, [esp]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x414de8
push edi
mov edx, ebx
call fcn.00415120
mov ecx, dword [esp + 0x10]
inc ecx
push ecx
call fcn.004174b7
mov esi, eax
add esp, 4
mov dword [esp + 0x98], esi
test esi, esi
je 0x414df4
mov edx, dword [esp + 0x10]
inc edx
push edx
push 0
push esi
call fcn.0041caf0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x414ddd
mov eax, dword [esp + 0x18]
add eax, edi
cmp eax, dword [esp + 0x1c]
jbe 0x414dc2
mov eax, dword [esp + 0x1c]
mov esi, dword [ebx + 0x94]
add eax, eax
push eax
mov dword [esp + 0x28], eax
call fcn.004174b7
add esp, 4
mov dword [ebx + 0x94], eax
test eax, eax
je 0x414e01
mov ecx, dword [esp + 0x24]
push ecx
push 0
push eax
mov dword [esp + 0x28], ecx
call fcn.0041caf0
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push edi
push esi
push ecx
call fcn.0041b170
add esp, 0xc
push esi
call fcn.00418ffa
mov esi, dword [esp + 0x9c]
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x94]
push edx
add eax, edi
push esi
push eax
call fcn.0041b170
add esp, 0xc
add edi, dword [esp + 0x18]
push esi
call fcn.00418ffa
add esp, 4
jmp 0x414df4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp dword [esp + 0x10], 0
ja 0x414ce0
jmp 0x414e0c
mov dword [ebx + 0x94], esi
mov byte [esp + 0xe], 0
push edi
mov edx, ebx
call fcn.00415120
lea eax, [ebx + 0x78]
mov dword [ebx + 0x98], edi
xor esi, esi
cmp dword [eax + 0x14], 8
mov dword [esp + 0x18], 1
jb 0x414e2f
mov eax, dword [eax]
push 5
push 0x432980
push eax
call fcn.00419703
add esp, 0xc
test eax, eax
jne 0x414e4c
mov esi, 0xfde9
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
mov eax, dword [esp + 0x18]
push 0
push 0
inc ecx
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jg 0x414e9f
mov ecx, dword [ebx + 0x98]
mov edx, dword [ebx + 0x94]
xor esi, esi
push esi
push esi
inc ecx
push ecx
push edx
push 1
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
jle 0x414f14
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004174b7
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x414f14
mov ecx, dword [esp + 0x1c]
lea eax, [edi + edi]
push eax
push 0
push ecx
call fcn.0041caf0
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x94]
add esp, 0xc
push edi
push edx
mov edx, dword [esp + 0x20]
inc eax
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x414f07
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [esp + 0x20]
call fcn.004169c0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00418ffa
add esp, 4
mov eax, dword [esp + 0xec]
push 0x432890
mov edi, 3
lea ecx, [esp + 0xe0]
mov byte [esp + 0x13], 1
call fcn.00412420
test eax, eax
jne 0x415030
mov eax, str._html_
lea esi, [esp + 0xf8]
call fcn.0040a250
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov edx, esi
push edx
lea edx, [esp + 0x50]
lea ecx, [ebx + 0x5c]
mov byte [esp + 0x11a4], 7
call fcn.0040a950
add esp, 4
test al, al
je 0x414fe7
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
je 0x414fe7
mov ecx, esi
push ecx
mov eax, str.__html_
call fcn.004169c0
mov edx, esi
push edx
lea edx, [esp + 0x50]
lea ecx, [ebx + 0x5c]
call fcn.0040a950
add esp, 4
test al, al
je 0x414fd8
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 0x414fe7
mov dword [ebx + 0x11c], 0xd
mov byte [esp + 0xf], 0
lea esi, [esp + 0x4c]
call fcn.00410300
lea esi, [esp + 0xf8]
mov byte [esp + 0x11a0], 0
call fcn.0040a290
jmp 0x415012
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x11c], eax
cmp byte [esp + 0xf], 0
je 0x414440
jmp 0x415030
mov byte [esp + 0xe], 0
cmp byte [esp + 0xf], 0
jne 0x415030
mov byte [esp + 0xe], 0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, dword [esp + 0x9c]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov edi, 8
cmp dword [esp + 0xf0], edi
jb 0x415067
mov edx, dword [esp + 0xdc]
push edx
call fcn.004185a3
add esp, 4
mov al, byte [esp + 0xe]
jmp 0x415092
mov dword [ebx + 0x11c], 0x57
cmp dword [esp + 0xf0], edi
jb 0x415090
mov eax, dword [esp + 0xdc]
push eax
call fcn.004185a3
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1184]
xor ecx, esp
call fcn.0041836d
mov esp, ebp
pop ebp
ret