Function at 0x403c40
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412b32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x964
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [esi], edi
mov eax, dword [0x41bda8]
cmp eax, edi
je 0x403eb6
push str.tmptdxupdate.dat
lea eax, [ebp - 0x14]
push 0x41bd88
push eax
call sub.MFC42.DLL_operator
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], edi
push ecx
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_1
push 0x2f
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, edi
jl 0x403dc0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx - 8]
sub ecx, eax
lea eax, [ebp + 8]
dec ecx
push ecx
push eax
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.0040cffa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040cfa6
lea ecx, [ebp + 0x10]
lea edx, [ebp + 8]
push ecx
push str.update_
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 3
call fcn.0040cffa
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040cfa6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 0x170]
push edi
push eax
push ecx
push edx
call fcn.004081e0
add esp, 0x10
test eax, eax
jne 0x403d95
lea eax, [ebp - 0x170]
mov ecx, 0x41bd84
push eax
call fcn.0040cfb2
push 0x41bd84
mov ecx, 0x41bd2c
call fcn.0040cffa
push 0x41b320
mov ecx, 0x41bd80
call fcn.0040cfb2
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], edi
jne 0x403dc0
mov ecx, dword [0x41bd90]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 3
push 0x467
push ecx
call esi
mov edx, dword [0x41bd90]
push edi
push edi
push 0x466
push edx
call esi
jmp 0x403dc0
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [ebp - 0x14]
push edi
push 0x40
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x403dee
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040d150
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.0040cfa6
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040cfa6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::GetLength
mov dword [esi], eax
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0xc]
add esp, 4
mov dword [ecx], eax
mov edx, dword [esi]
push edx
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [0x41bd34]
or esi, 0xffffffff
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], edi
jne 0x403e80
mov eax, dword [0x41bd90]
push esi
push 2
push 0x467
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040d150
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.0040cfa6
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0040cfa6
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040d150
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0
call fcn.0040cfa6
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0040cfa6
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x400
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [ebp - 0x70]
push 0x400
push 0x400
push eax
call sub.MFC42.DLL_CMemFile::CMemFile
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov bl, 7
push 0x14
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x3c], 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x40], eax
cmp eax, edi
mov byte [ebp - 4], 8
je 0x403f2c
push edi
push edi
push edi
push edi
push 1
push 0x41b31c
mov ecx, eax
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov ecx, eax
jmp 0x403f2e
xor ecx, ecx
mov edx, dword [ebp + 8]
push edi
push edi
push 0x84000001
mov esi, ecx
push 1
push edx
mov byte [ebp - 4], bl
mov dword [ebp - 0x24], esi
call sub.MFC42.DLL_CInternetSession::OpenURL
mov ebx, eax
lea eax, [ebp - 0x3c]
push edi
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x20000013
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call sub.MFC42.DLL_CHttpFile::QueryInfo_1
mov eax, dword [ebp - 0x1c]
cmp eax, 0x197
je 0x403f73
cmp eax, 0x191
jne 0x403f91
push edi
push 6
push 0x2eee
push edi
mov ecx, ebx
call sub.MFC42.DLL_CHttpFile::ErrorDlg
cmp eax, 0x2f00
je 0x404155
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc8
jb 0x404089
cmp eax, 0x12c
jae 0x404089
lea edx, [ebp - 0x20]
push edi
push edx
push 5
mov ecx, ebx
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [ebp + 0x10]
add esp, 4
lea edx, [ebp - 0x38]
mov dword [ecx], eax
push edx
mov ecx, ebx
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [ebp - 0x38], 0xc8
jne 0x4040fd
mov eax, dword [ebx]
lea ecx, [ebp - 0x570]
push 0x400
push ecx
mov ecx, ebx
call dword [eax + 0x3c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jbe 0x404105
lea edx, [ebp - 0x570]
push esi
push edx
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CMemFile::Write
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x570]
push 0x400
push edx
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov esi, eax
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], ebx
jne 0x404081
lea ecx, [ebp - 0x70]
call sub.MFC42.DLL_CFile::GetLength
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x28], ebx
mov ecx, dword [eax]
fild qword [ebp - 0x44]
mov dword [ebp - 0x2c], ecx
fild qword [ebp - 0x2c]
fdivp st(1)
fmul qword [0x414e40]
call sub.MSVCRT.dll__ftol
mov edx, dword [0x41bd90]
push eax
push ebx
push 0x465
push edx
call edi
jmp 0x403ffa
mov dword [ebp - 0x14], ebx
jmp 0x403ffa
push 0x41b304
mov ecx, 0x41bd84
mov dword [ebp - 0x14], edi
call fcn.0040cfb2
push 0x41bd84
mov ecx, 0x41bd2c
call fcn.0040cffa
push 0x41b320
mov ecx, 0x41bd80
call fcn.0040cfb2
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], edi
jne 0x4040fa
mov eax, dword [0x41bd90]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0xffffffffffffffff
push 3
push 0x467
push eax
call edi
mov ecx, dword [0x41bd90]
push 0
push 0
push 0x466
push ecx
call edi
jmp 0x404103
mov dword [ebp - 0x14], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 6
call sub.MFC42.DLL_CFile::GetLength
lea ecx, [ebp - 0x70]
mov esi, eax
call sub.MFC42.DLL_CMemFile::Detach
mov ecx, eax
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp + 8], ecx
je 0x40428d
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp esi, eax
jne 0x40421d
cmp esi, ebx
je 0x40421d
cmp eax, ebx
je 0x40421d
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x40428d
mov edx, dword [ebp + 8]
push edi
push edi
push 0x84000001
push 1
push edx
mov ecx, esi
call sub.MFC42.DLL_CInternetSession::OpenURL
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push ecx
mov ecx, eax
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
mov ebx, dword [ebp - 0x18]
jmp 0x403f62
push 0x41b304
mov ecx, 0x41bd84
mov dword [ebp - 0x14], ebx
call fcn.0040cfb2
push 0x41bd84
mov ecx, 0x41bd2c
call fcn.0040cffa
push 0x41b320
mov ecx, 0x41bd80
call fcn.0040cfb2
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], ebx
jne 0x404287
mov ecx, dword [0x41bd90]
push 0xffffffffffffffff
push 3
push 0x467
push ecx
call edi
mov edx, dword [0x41bd90]
push ebx
push ebx
push 0x466
push edx
call edi
jmp 0x40428a
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x4042a1
cmp ecx, ebx
je 0x4042a1
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x4042b8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
cmp esi, ebx
je 0x4042cf
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp - 0x14], ebx
je 0x404301
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], ebx
jne 0x4042fe
mov ecx, dword [0x41bd90]
push 0xffffffffffffffff
push 2
push 0x467
push ecx
call edi
jmp 0x404301
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0040cfa6
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d0fc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret