Function at 0x41d990
Capabilities:
Check http status code
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x4cedf0
mov eax, dword fs:[0]
push eax
mov eax, 0x117c
call fcn.004bbcd0
mov eax, dword [0x4f87d8]
xor eax, esp
mov dword [esp + 0x1178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f87d8]
xor eax, esp
push eax
lea eax, [esp + 0x1190]
mov dword fs:[0], eax
mov eax, dword [esp + 0x11a4]
mov esi, dword [esp + 0x11a0]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
mov dword [esp + 0x24], ebp
push 4
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x11a0], ebx
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 2
push ebp
mov dword [esp + 0x28], 0x7d0
call edi
push 4
lea ecx, [esp + 0x1c]
push ecx
push 3
push ebp
mov dword [esp + 0x28], 3
call edi
push 0xffffffffffffffff
push ebx
push esi
lea eax, [esp + 0x84]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
call fcn.00405240
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
jmp 0x41da70
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
push 0xc
mov byte [esp + 0x119c], 3
call fcn.004a84f2
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41dad0
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x41daaf
lea eax, [esp + 0x7c]
mov edx, dword [esp + 0x24]
push ebx
push 0x200000
push 0xffffffffffffffff
push ebx
push eax
push edx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [esi], eax
jmp 0x41dad2
xor esi, esi
mov eax, esi
lea edi, [esp + 0x34]
call fcn.0041ee90
mov ebp, dword [esp + 0x34]
cmp ebp, ebx
je 0x41dc04
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp]
cmp eax, ebx
mov edi, 4
mov dword [esp + 0x28], edi
je 0x41dca7
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000013
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, 0xc8
je 0x41db37
cmp eax, 0x12e
je 0x41db37
cmp eax, 0x12d
jne 0x41dca7
push 0x1048
lea eax, [esp + 0x148]
push ebx
push eax
mov dword [esp + 0x24], 0x1048
mov dword [esp + 0x38], ebx
call fcn.004b1550
mov dword [esp + 0x28], ebx
mov eax, dword [ebp]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x28], edi
je 0x41dba3
push ebx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x20000013
push eax
call esi
cmp dword [esp + 0x1c], 0x12e
jne 0x41dba3
mov eax, dword [ebp]
cmp eax, ebx
je 0x41dba3
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14c]
push ecx
push 0x21
push eax
call esi
lea edx, [esp + 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41dcf0
lea eax, [esp + 0x144]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x41dbc3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x148]
push eax
lea esi, [esp + 0x80]
call fcn.00405810
cmp dword [esp + 0x74], 8
jb 0x41da70
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004a85e6
add esp, 4
jmp 0x41da70
mov ebp, 8
cmp dword [esp + 0x74], ebp
jb 0x41dc1c
mov edx, dword [esp + 0x60]
push edx
call fcn.004a85e6
add esp, 4
mov byte [esp + 0x1198], 1
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov edi, 7
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
je 0x41dc68
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41dc68
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x41dc68
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x90], ebp
jb 0x41dc7e
mov eax, dword [esp + 0x7c]
push eax
call fcn.004a85e6
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
je 0x41dca0
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x41e1d9
mov ebp, 8
cmp dword [esp + 0x74], ebp
jb 0x41dcbf
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004a85e6
add esp, 4
mov byte [esp + 0x1198], 1
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov edi, 7
mov dword [esp + 0x74], edi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
je 0x41dc68
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jmp 0x41dc48
mov edi, dword [esp + 0x30]
cmp dword [edi + 0x14], ebx
jne 0x41de3a
push 0x1048
lea ecx, [esp + 0x148]
push ebx
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], 0x1048
call fcn.004b1550
mov eax, dword [ebp]
add esp, 0xc
cmp eax, ebx
je 0x41dd3d
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14c]
push edx
push 0x2f
push eax
call esi
lea edx, [esp + 0x144]
lea eax, [esp + 0x94]
call fcn.00404fb0
mov edx, str.filename
lea eax, [esp + 0x3c]
mov byte [esp + 0x1198], 4
call fcn.00404fb0
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x119c], 5
call fcn.0041abe0
add esp, 4
mov byte [esp + 0x1198], 4
cmp dword [esp + 0x54], 8
mov esi, eax
jb 0x41dda0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a85e6
add esp, 4
cmp esi, 0xffffffff
je 0x41de20
push 0xffffffffffffffff
push str.filename
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
add ecx, esi
lea esi, [esp + 0x40]
lea edx, [esp + 0x98]
call fcn.00405050
push 0xffffffffffffffff
push ebx
push eax
mov eax, edi
mov byte [esp + 0x11a4], 6
call fcn.00405240
mov byte [esp + 0x1198], 4
call fcn.004159c0
cmp dword [edi + 0x14], ebx
je 0x41de20
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x14], ebx
je 0x41de01
push edi
call fcn.0041aab0
add esp, 4
test al, al
je 0x41de20
lea esi, [esp + 0x94]
call fcn.004159c0
lea esi, [esp + 0x5c]
mov byte [esp + 0x1198], 2
call fcn.004159c0
jmp 0x41de56
cmp dword [esp + 0xac], 8
jb 0x41de3a
mov edx, dword [esp + 0x98]
push edx
call fcn.004a85e6
add esp, 4
mov byte [esp + 0x1198], 2
cmp dword [esp + 0x74], 8
jb 0x41de56
mov eax, dword [esp + 0x60]
push eax
call fcn.004a85e6
add esp, 4
cmp dword [edi + 0x14], ebx
jne 0x41e0f2
lea eax, [esp + 0xcc]
call fcn.004292f0
mov byte [esp + 0x1198], 7
cmp dword [esp + 0x90], 8
mov edx, dword [esp + 0x7c]
jae 0x41de85
lea edx, [esp + 0x7c]
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x44], esp
call fcn.00404fb0
lea ecx, [esp + 0xe8]
push ecx
call fcn.004293d0
cmp al, bl
je 0x41df46
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00405240
push 1
push 0x4d9d24
lea eax, [esp + 0x64]
push eax
mov byte [esp + 0x11a4], 8
call fcn.004053c0
cmp eax, 0xffffffff
push 0xffffffffffffffff
jne 0x41deff
push ebx
lea ecx, [esp + 0x64]
push ecx
mov eax, edi
call fcn.00405240
jmp 0x41df2a
lea ecx, [eax + 1]
lea esi, [esp + 0x98]
lea edx, [esp + 0x60]
call fcn.00405050
push 0xffffffffffffffff
push ebx
push eax
mov eax, edi
mov byte [esp + 0x11a4], 9
call fcn.00405240
call fcn.004159c0
mov byte [esp + 0x1198], 7
cmp dword [esp + 0x74], 8
jb 0x41df46
mov edx, dword [esp + 0x60]
push edx
call fcn.004a85e6
add esp, 4
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x14], ebx
je 0x41df6b
push edi
call fcn.0041aab0
add esp, 4
test al, al
jne 0x41df6b
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push eax
mov esi, edi
call fcn.00405700
lea esi, [esp + 0xcc]
mov byte [esp + 0x1198], 2
call fcn.00429350
cmp dword [edi + 0x14], ebx
jne 0x41e0f2
mov esi, 7
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
lea ecx, [esp + 0x94]
mov byte [esp + 0x1198], 0xb
call fcn.0041fef0
push 3
mov dword [esp + 0x58], esi
push 0x4d9d28
lea esi, [esp + 0x44]
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00405810
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x60]
mov ecx, esi
mov byte [esp + 0x119c], 0xc
call fcn.00420040
add esp, 4
mov byte [esp + 0x1198], 0xb
cmp dword [esp + 0x54], 8
jb 0x41e01b
mov edx, dword [esp + 0x40]
push edx
call fcn.004a85e6
add esp, 4
mov esi, dword [esp + 0x20]
cmp dword [esi + 0x14], ebx
je 0x41e06f
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call fcn.0041aab0
add esp, 4
test al, al
jne 0x41e06f
lea ecx, [esp + 0x3c]
push esi
push ecx
lea ecx, [esp + 0x64]
call fcn.00416700
add esp, 8
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x68]
mov byte [esp + 0x11a4], 0xd
call fcn.00405240
lea esi, [esp + 0x3c]
mov byte [esp + 0x1198], 0xb
call fcn.004159c0
lea edx, [esp + 0x5c]
push edx
lea edi, [esp + 0x40]
call fcn.00416610
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x11a4], 0xe
call fcn.00405240
mov esi, 8
cmp dword [esp + 0x54], esi
jb 0x41e0ad
mov eax, dword [esp + 0x40]
push eax
call fcn.004a85e6
add esp, 4
cmp dword [esp + 0x74], esi
jb 0x41e0c0
mov ecx, dword [esp + 0x60]
push ecx
call fcn.004a85e6
add esp, 4
mov byte [esp + 0x1198], 2
cmp dword [esp + 0xac], esi
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
jb 0x41e0f2
mov edx, dword [esp + 0x98]
push edx
call fcn.004a85e6
add esp, 4
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x58]
push eax
push esi
lea ecx, [esp + 0xb8]
call fcn.0041b720
push esi
mov byte [esp + 0x11a4], 0xf
call fcn.004161f0
add esp, 0xc
push ebp
lea ecx, [esp + 0xb4]
call fcn.0041e6c0
add esp, 4
cmp dword [esp + 0xc8], 8
mov byte [esp + 0x17], al
jb 0x41e147
mov ecx, dword [esp + 0xb4]
push ecx
call fcn.004a85e6
add esp, 4
mov byte [esp + 0x1198], 1
mov esi, dword [esp + 0x38]
cmp esi, ebx
mov edi, 7
mov dword [esp + 0xc8], edi
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], bx
je 0x41e19c
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41e19c
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41e19c
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
cmp dword [esp + 0x90], 8
jb 0x41e1b3
mov eax, dword [esp + 0x7c]
push eax
call fcn.004a85e6
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
je 0x41e1d5
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x1190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1178]
xor ecx, esp
call fcn.004a85d7
add esp, 0x1188
ret