Function at 0x41b6f0
Capabilities:
Check http status code
Get file size
Read data from internet
Receive data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44adf7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov edi, dword [esp + 0x144]
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.00418ba0
cmp eax, ebx
mov dword [esp + 0x1c], eax
jne 0x41b7c2
push 0x13
push str.Unable_to_open_url
lea ecx, [esp + 0x6c]
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
call fcn.00401ab0
push 0xffffffffffffffff
push ebx
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x144], ebx
call fcn.0040b9c0
push 0x18
push str._while_downloading_file
lea ecx, [esp + 0x6c]
call fcn.0040bab0
mov eax, dword [esp + 0x140]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.0040b9c0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esi + 0x2dc]
call fcn.0040bcc0
cmp dword [esp + 0x7c], 0x10
mov dword [esi + 0x2d0], 0xfffffff3
jb 0x41b7bb
mov edx, dword [esp + 0x68]
push edx
call fcn.0043c389
add esp, 4
xor al, al
jmp 0x41c2e7
mov eax, dword [str._UpdaterTerminationEvent]
push eax
mov ecx, esi
call fcn.00404670
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.00417df0
add esp, 0xc
cmp dword [esp + 0xec], 0x10
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x138], 1
jae 0x41b803
lea eax, [esp + 0xd8]
push ebp
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0x800
mov dword [esi + 0x29c], eax
call fcn.0043bf47
mov ebp, dword [esp + 0x148]
mov ecx, dword [ebp + 0x14]
mov ebx, eax
mov eax, dword [ebp + 0x18]
add esp, 4
cmp eax, 0x10
lea eax, [ebp + 4]
lea edi, [esi + 0x458]
mov dword [esp + 0x10], eax
jb 0x41b848
mov eax, dword [eax]
mov edx, dword [edi + 0x14]
push ecx
push eax
push edx
push 0
mov ecx, edi
call fcn.00414c80
test eax, eax
mov eax, dword [ebp + 0x18]
je 0x41b870
cmp eax, 0x10
mov eax, dword [esp + 0x10]
jb 0x41b869
mov eax, dword [eax]
push 0x44f96c
jmp 0x41b886
cmp eax, 0x10
jb 0x41b87d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
jmp 0x41b881
mov eax, dword [esp + 0x10]
push 0x44f968
push eax
call fcn.0043e1c3
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
xor eax, eax
add esp, 8
cmp ecx, eax
jne 0x41b981
push 0x20
xor ebx, ebx
mov edi, 0xf
push 0x44f944
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00401ab0
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x54]
mov byte [esp + 0x148], 2
call fcn.0040b9c0
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
push 0xa
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], edx
push eax
mov dword [esp + 0x44], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d549
add esp, 0xc
push 0xe
push str.__error_code:
lea ecx, [esp + 0x50]
call fcn.0040bab0
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41b918
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040bab0
mov eax, dword [esp + 0x60]
mov dword [esi + 0x2d0], 0xfffffff2
mov esi, 0x10
cmp eax, esi
jb 0x41b954
mov edx, dword [esp + 0x4c]
push edx
call fcn.0043c389
add esp, 4
cmp dword [esp + 0xf0], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], 0
jb 0x41b97a
mov eax, dword [esp + 0xdc]
push eax
call fcn.0043c389
add esp, 4
xor al, al
jmp 0x41c2e6
mov dword [esi + 0x2a0], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x14]
cmp ecx, 0x10
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], 0x800
mov dword [esp + 0x64], 4
jb 0x41b9ac
mov ecx, dword [ecx]
mov edx, dword [edi + 0x14]
push eax
push ecx
push edx
push 0
mov ecx, edi
call fcn.00414c80
test eax, eax
jne 0x41ba38
cmp dword [esi + 0x48c], 0x10
jb 0x41b9d0
mov eax, dword [esi + 0x478]
jmp 0x41b9d6
lea eax, [esi + 0x478]
push 0
push 0
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
push 0
push 1
push 0
push ebp
push ecx
call dword [sym.imp.WININET.dll_InternetSetFilePointer]
mov edx, dword [esi + 0x2a4]
mov ecx, dword [esi + 0x2a0]
mov ebp, dword [esp + 0x144]
add edx, eax
add ecx, eax
mov dword [esi + 0x2a4], edx
mov dword [esi + 0x2a0], ecx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push 0x800
push ebx
push eax
mov dword [esp + 0x2c], 1
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x4c]
push edx
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x41bc26
lea esp, [esp]
cmp dword [esp + 0x44], 0xc8
jne 0x41bc6c
test edi, edi
je 0x41ba9e
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41bd11
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x94]
push ecx
call edi
test eax, eax
je 0x41baf2
lea ebx, [ebx]
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x94]
push ecx
call edi
test eax, eax
jne 0x41bac0
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x41bb07
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41bbe1
mov ecx, dword [esi + 0x2a0]
mov edx, dword [esi + 0x2a4]
add ecx, eax
add edx, eax
mov eax, ecx
mov dword [esi + 0x2a0], ecx
mov ecx, dword [esp + 0x14c]
test ecx, ecx
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
mov dword [esi + 0x2a4], edx
fild dword [esp + 0x14c]
mov dword [esp + 0x18], edx
jge 0x41bb49
fadd dword [0x44f940]
fdivp st(1)
fmul dword [0x44f93c]
call fcn.0043d6e8
fild dword [esp + 0x18]
mov ebp, eax
fidiv dword [esi + 0x2a8]
fmul dword [0x44f93c]
call fcn.0043d6e8
mov edi, eax
mov eax, dword [esp + 0x1c]
cdq
mov ecx, 0x32
idiv ecx
test edx, edx
jne 0x41bb8f
push edx
push edx
push edi
push 3
lea ecx, [esi + 0x274]
call fcn.0040d8f0
mov ecx, dword [esi + 0x300]
mov edx, dword [ecx]
push ebp
push edi
call dword [edx + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push 1
push ecx
push ebx
call fcn.0043e11b
mov eax, dword [esi + 0x29c]
add esp, 0x10
test eax, eax
je 0x41bbda
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
setne al
test al, al
mov byte [esi + 0x2ac], al
jne 0x41bd0a
mov ebp, dword [esp + 0x144]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x2c]
push edx
push 0x800
push ebx
inc ecx
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
push 0
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x4c]
push edx
mov edi, eax
mov eax, dword [esp + 0x2c]
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x41ba80
push str.ERROR:_HttpQueryInfo_returns_FALSE_during_file_download._Cant_determinet_HTTP_status_code.
lea ecx, [esi + 0x2dc]
call fcn.0040c2e0
push ebx
call fcn.0043bf59
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043dfc3
add esp, 8
push ebp
lea ecx, [esi + 0x268]
call fcn.0041ae10
push 0x4592ec
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0xfffffff5
call fcn.0043c34f
push str.ERROR:_file_download_HTTP_status_code
lea ecx, [esp + 0xc0]
call fcn.004166d0
mov ecx, dword [esp + 0x44]
push 0xa
lea eax, [esp + 0xf8]
push eax
push ecx
mov byte [esp + 0x148], 3
call fcn.0043d549
add esp, 0xc
lea edx, [esp + 0xf4]
push edx
lea ecx, [esp + 0xc0]
call fcn.0040bc00
push 0x44f474
lea ecx, [esp + 0xc0]
call fcn.0040bc00
lea eax, [esp + 0xbc]
push eax
lea ecx, [esi + 0x2dc]
call fcn.0040bcc0
push ebx
call fcn.0043bf59
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0043dfc3
add esp, 8
push ebp
lea ecx, [esi + 0x268]
call fcn.0041ae10
push 0x4592ec
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0xfffffff0
call fcn.0043c34f
mov ebp, dword [esp + 0x144]
mov al, byte [esi + 0x2ac]
test al, al
jne 0x41bd72
push str.Downloaded_file:
lea ecx, [esp + 0x88]
call fcn.004166d0
push 0xffffffffffffffff
push 0
push ebp
lea ecx, [esp + 0x90]
mov byte [esp + 0x148], 4
call fcn.0040b9c0
lea eax, [esp + 0x84]
lea ecx, [esi + 0x2dc]
push eax
mov dword [esp + 0x2c], ecx
call fcn.0040bcc0
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 1
call fcn.00401850
jmp 0x41bd86
lea ecx, [esi + 0x2dc]
push str.Update_canceled_by_user_while_downloading_files.
mov dword [esp + 0x2c], ecx
call fcn.0040c2e0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
lea ecx, [esi + 0x268]
call fcn.0041ae10
push ebx
call fcn.0043bf59
mov edx, dword [esp + 0x28]
push edx
call fcn.0043dfc3
add esp, 8
push str.VersionFile
lea ecx, [esp + 0xc0]
call fcn.004166d0
lea ecx, [esi + 0x2c]
push eax
mov byte [esp + 0x140], 5
call fcn.00404600
push 0xffffffffffffffff
push 0
mov edi, 0xf
push eax
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.004019c0
cmp dword [esp + 0xd4], 0x10
mov byte [esp + 0x13c], 7
jb 0x41be24
mov eax, dword [esp + 0xc0]
push eax
call fcn.0043c389
add esp, 4
mov eax, dword [esp + 0xb4]
test eax, eax
mov dword [esp + 0xd4], edi
mov dword [esp + 0xd0], 0
mov byte [esp + 0xc0], 0
jbe 0x41c285
mov ebx, dword [ebp + 0x18]
cmp ebx, 0x10
mov dword [esp + 0x1c], ebx
jb 0x41be61
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
jmp 0x41be65
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41be68
sub eax, edx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0xa4]
mov ebp, eax
call fcn.004153d0
mov edx, dword [esp + 0xa4]
mov edi, dword [esp + 0xb8]
mov ecx, dword [esp + 0x18]
cmp edi, 0x10
mov eax, edx
jae 0x41bea4
lea eax, [esp + 0xa4]
cmp ecx, eax
je 0x41bec8
cmp ebx, 0x10
mov eax, dword [esp + 0x10]
jb 0x41beb3
mov eax, dword [eax]
mov bl, byte [ecx - 1]
cmp bl, byte [eax + ebp - 1]
jne 0x41c293
mov ebx, dword [esp + 0x1c]
dec ebp
dec ecx
jmp 0x41be96
push 0xe
xor ebp, ebp
mov edi, 0xf
push 0x44dd54
lea ecx, [esp + 0xfc]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebp
mov byte [esp + 0x100], 0
call fcn.00401ab0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0xf8]
mov ebx, 1
push edx
lea ecx, [esi + 0x2c]
mov byte [esp + 0x144], 8
mov dword [esp + 0x24], ebx
call fcn.00404600
push eax
mov ecx, esi
call fcn.00415280
test eax, eax
je 0x41bf8d
push 0x44dd54
lea ecx, [esp + 0x88]
call fcn.004166d0
lea ecx, [esp + 0x68]
push ecx
mov ebx, 3
push eax
lea ecx, [esi + 0x94]
mov dword [esp + 0x144], 9
mov dword [esp + 0x24], ebx
call fcn.00418130
push eax
mov ecx, esi
call fcn.00415280
test eax, eax
je 0x41bf8d
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, esi
call fcn.004150d0
test eax, eax
mov byte [esp + 0x17], 1
jne 0x41bf92
mov byte [esp + 0x17], 0
test bl, 2
je 0x41bfcc
mov eax, dword [esp + 0x9c]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x41bfb6
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0043c389
add esp, 4
mov dword [esp + 0x9c], edi
mov dword [esp + 0x98], ebp
mov byte [esp + 0x88], 0
test bl, 1
mov dword [esp + 0x13c], 7
je 0x41bff6
cmp dword [esp + 0x10c], 0x10
jb 0x41bff6
mov edx, dword [esp + 0xf8]
push edx
call fcn.0043c389
add esp, 4
mov al, byte [esp + 0x17]
test al, al
je 0x41c285
mov ebx, dword [esp + 0x6c]
cmp ebx, 0x63
jne 0x41c027
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], 0
mov ebp, dword [esp + 0x34]
cmp ebp, 0x63
jne 0x41c050
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0
mov edi, dword [esp + 0x4c]
cmp edi, 0x63
mov ecx, dword [esp + 0x54]
jne 0x41c06d
mov edi, dword [esp + 0x50]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x58]
xor edx, edx
jmp 0x41c071
mov edx, dword [esp + 0x58]
xor al, al
cmp ebx, ebp
jne 0x41c0d1
mov ebx, dword [esp + 0x70]
cmp ebx, dword [esp + 0x38]
jne 0x41c0d1
mov ebx, dword [esp + 0x74]
cmp ebx, dword [esp + 0x3c]
jne 0x41c0d1
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x78], ebp
jne 0x41c0d1
mov ebx, dword [esp + 0x3c]
cmp ebx, ecx
jl 0x41c0d1
jne 0x41c0a5
cmp ebp, edx
jle 0x41c0a5
mov al, 1
cmp ebx, ecx
jle 0x41c0ad
mov al, 1
jmp 0x41c0b1
test al, al
je 0x41c0d1
mov ecx, dword [esp + 0x34]
cmp ecx, edi
jne 0x41c0c7
mov edx, dword [esp + 0x38]
cmp edx, dword [esp + 0x50]
jge 0x41c0c5
xor al, al
cmp ecx, edi
jl 0x41c0d1
test al, al
jne 0x41c285
push str.Version_check_failure:_original_version_is
lea ecx, [esp + 0x4c]
call fcn.004166d0
push 0x44dd54
lea ecx, [esp + 0x88]
mov byte [esp + 0x140], 0xa
call fcn.004166d0
lea edi, [esi + 0x2c]
push eax
mov ecx, edi
mov byte [esp + 0x140], 0xb
call fcn.00404600
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x54]
call fcn.0040b9c0
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 0xa
call fcn.00401850
push str.__version_in_server_response_is
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push 0x44dd54
lea ecx, [esp + 0x88]
call fcn.004166d0
push eax
lea ecx, [esi + 0x94]
mov byte [esp + 0x140], 0xc
call fcn.00418130
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x54]
call fcn.0040b9c0
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 0xa
call fcn.00401850
push str.__version_in_downloaded
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push str.VersionFile
lea ecx, [esp + 0x88]
call fcn.004166d0
push eax
mov ecx, edi
mov byte [esp + 0x140], 0xd
call fcn.00404600
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x54]
call fcn.0040b9c0
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 0xa
call fcn.00401850
push str._is
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41c214
push 0xa
lea ecx, [esp + 0xf8]
push ecx
push eax
call fcn.0043d549
add esp, 0xc
push eax
lea ecx, [esp + 0x4c]
call fcn.0040bc00
push 0x44f474
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov edx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x38]
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0xf8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push edx
push str._d._d._d._d
lea eax, [esp + 0x108]
push 0x3f
push eax
call fcn.0043d58d
add esp, 0x1c
lea ecx, [esp + 0xf4]
push ecx
lea ecx, [esp + 0x4c]
call fcn.0040bc00
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
call fcn.0040bcc0
push 0x4592ec
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], 0xffffffef
call fcn.0043c34f
mov edx, dword [esp + 0xa4]
mov edi, dword [esp + 0xb8]
mov cl, byte [esi + 0x2ac]
test cl, cl
sete bl
cmp edi, 0x10
jb 0x41c2ac
push edx
call fcn.0043c389
add esp, 4
cmp dword [esp + 0xf0], 0x10
mov dword [esp + 0xb8], 0xf
mov dword [esp + 0xb4], 0
mov byte [esp + 0xa4], 0
jb 0x41c2e4
mov ecx, dword [esp + 0xdc]
push ecx
call fcn.0043c389
add esp, 4
mov al, bl
pop ebp
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 0xc