Function at 0x41e0c0
Capabilities:
Check http status code
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6cd7
mov eax, dword fs:[0]
push eax
sub esp, 0x5b8
mov eax, dword [0x66ee94]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bd150
add esp, 0xc
mov dword [ebp - 0x3a0], 0
lea eax, [ebp - 0x3a0]
push eax
push 0x411ef0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
lea eax, [ebp - 0x218]
push 0x104
push eax
je 0x41e13c
push dword [ebp - 0x3a0]
jmp 0x41e13e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
push eax
call fcn.0040cc30
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x3a4]
push eax
call fcn.00411fb0
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040cc30
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x39c]
push 0x4ed390
push eax
call fcn.0041bff0
add esp, 0xc
mov edx, dword [eax]
mov ecx, edx
mov byte [ebp - 4], 2
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41e1f0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x230]
call fcn.00417060
mov edx, dword [ebp - 0x39c]
or edi, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41e230
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x350]
push eax
call fcn.0041ac60
mov ecx, eax
call fcn.0041af10
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
mov byte [ebp - 4], 3
mov eax, esi
jb 0x41e254
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41e6f7
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.0040c3c0
add esp, 8
push 0x14
push str.upgrade_filelist_hit
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 4
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0xf
mov byte [ebp - 0x308], 0
call fcn.004033e0
sub esp, 0xc
mov byte [ebp - 4], 5
mov ecx, esp
lea eax, [ebp - 0x2f0]
push dword [ebp - 0x39c]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x320]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.0041b820
push str.common_action
push str.upgrade_filelist_hit
call fcn.004019a0
add esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp - 0x320]
push fcn.00401f10
push 2
push 0x18
push eax
call fcn.004ba8e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41e315
mov eax, dword [esi]
push 1
push 0x10
push 0x20
push eax
lea ecx, [ebp - 0x50c]
call fcn.0041b350
lea eax, [ebp - 0x338]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x50c]
mov ecx, ebx
push eax
call fcn.004206b0
test al, al
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2f0]
push eax
je 0x41e528
call fcn.0040c3c0
add esp, 8
push 0x17
push str.upgrade_localfile_check
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 8
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 9
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.004033e0
push 1
push 0x510128
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.004033e0
sub esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, esp
lea eax, [ebp - 0x230]
push dword [ebp - 0x39c]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x2f0]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.0041b820
push str.common_action
push str.upgrade_localfile_check
call fcn.004019a0
add esp, 0x14
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2f0]
push fcn.00401f10
push 8
push 0x18
push eax
call fcn.004ba8e0
lea ecx, [ebp - 0x50c]
call fcn.0041c120
mov bl, 1
jmp 0x41ecc3
call fcn.0040c3c0
add esp, 8
push 0x17
push str.upgrade_localfile_check
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x13
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x14
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.004033e0
push 1
push 0x51012c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.004033e0
sub esp, 0xc
mov byte [ebp - 4], 0x16
mov ecx, esp
lea eax, [ebp - 0x230]
push dword [ebp - 0x39c]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x2f0]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.0041b820
push str.common_action
push str.upgrade_localfile_check
call fcn.004019a0
add esp, 0x14
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2f0]
push fcn.00401f10
push 8
push 0x18
push eax
call fcn.004ba8e0
lea ecx, [ebp - 0x50c]
mov byte [ebp - 4], 3
call fcn.0041c120
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.0040c3c0
add esp, 8
push 0x14
push str.upgrade_download_new
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0xf
mov byte [ebp - 0x308], 0
call fcn.004033e0
sub esp, 0xc
mov byte [ebp - 4], 0x18
mov ecx, esp
lea eax, [ebp - 0x2f0]
push dword [ebp - 0x39c]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x320]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.0041b820
push str.common_action
push str.upgrade_download_new
call fcn.004019a0
add esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp - 0x320]
push fcn.00401f10
push 2
push 0x18
push eax
call fcn.004ba8e0
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.0040c3c0
add esp, 8
push 0x16
push str.upgrade_download_start
lea ecx, [ebp - 0x308]
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x2f8], 0
mov dword [ebp - 0x2f4], 0xf
mov byte [ebp - 0x308], 0
call fcn.004033e0
sub esp, 0xc
mov byte [ebp - 4], 0x1a
mov ecx, esp
lea eax, [ebp - 0x2f0]
push dword [ebp - 0x39c]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x320]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.0041b820
push str.common_action
push str.upgrade_download_start
call fcn.004019a0
add esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp - 0x320]
push fcn.00401f10
push 2
push 0x18
push eax
call fcn.004ba8e0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41e851
mov eax, dword [esi]
push 1
push 0x10
push 0x30
push eax
lea ecx, [ebp - 0x454]
call fcn.0041b100
push 0
push 0x14
push 0x4b0
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x398]
call fcn.00418210
lea ecx, [ebp - 0x398]
mov byte [ebp - 4], 0x1c
call fcn.004182f0
test eax, eax
jne 0x41ecab
lea ecx, [ebp - 0x398]
call fcn.00418440
cmp eax, 0xc8
jne 0x41ecab
lea ecx, [ebp - 0x454]
call fcn.00420620
cmp dword [esi + 0x14], 8
jb 0x41e8c9
mov esi, dword [esi]
push 1
push 0x10
push 0x20
push esi
lea ecx, [ebp - 0x5c4]
call fcn.0041b350
lea eax, [ebp - 0x338]
mov byte [ebp - 4], 0x1d
push eax
lea eax, [ebp - 0x5c4]
mov ecx, ebx
push eax
call fcn.004206b0
test al, al
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2f0]
push eax
je 0x41eadc
call fcn.0040c3c0
add esp, 8
push 0x14
push str.upgrade_download_end
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x1e
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x1f
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0x21
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x22
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x23
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.004033e0
push 1
push 0x510128
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x24
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.004033e0
sub esp, 0xc
mov byte [ebp - 4], 0x25
mov ecx, esp
lea eax, [ebp - 0x230]
push dword [ebp - 0x39c]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x2f0]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.0041b820
push str.common_action
push str.upgrade_download_end
call fcn.004019a0
add esp, 0x14
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x2f0]
push fcn.00401f10
push 8
push 0x18
push eax
call fcn.004ba8e0
lea ecx, [ebp - 0x5c4]
mov bl, 1
call fcn.0041c120
jmp 0x41ecad
call fcn.0040c3c0
add esp, 8
push 0x14
push str.upgrade_download_end
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 0x26
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 0xf
mov byte [ebp - 0x2d8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0x27
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0xf
mov byte [ebp - 0x2c0], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 0x28
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x294], 0xf
mov byte [ebp - 0x2a8], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 0x29
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 0x2a
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], 0
call fcn.004033e0
push 0
push 0x5100bc
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x2b
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.004033e0
push 1
push 0x51012c
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0x2c
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.004033e0
sub esp, 0xc
mov byte [ebp - 4], 0x2d
mov ecx, esp
lea eax, [ebp - 0x230]
push dword [ebp - 0x39c]
mov dword [ecx], 0
push eax
lea eax, [ebp - 0x2f0]
mov dword [ecx + 4], 0
push eax
mov dword [ecx + 8], 0
call fcn.0041b820
push str.common_action
push str.upgrade_download_end
call fcn.004019a0
add esp, 0x14
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x2f0]
push fcn.00401f10
push 8
push 0x18
push eax
call fcn.004ba8e0
lea ecx, [ebp - 0x5c4]
xor bl, bl
call fcn.0041c120
jmp 0x41ecad
xor bl, bl
lea ecx, [ebp - 0x398]
call fcn.0041bd50
lea ecx, [ebp - 0x454]
call fcn.0041c1b0
lea ecx, [ebp - 0x350]
call fcn.0041a2a0
mov edx, dword [ebp - 0x3a4]
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41eced
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x41ed29
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41ed1f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41ed47
push edx
push ecx
call fcn.004ba5b1
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.004ba87e
mov esp, ebp
pop ebp
ret
call fcn.004c0839
int3