Function at 0x404fe0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412d65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x57c
mov eax, dword [0x41bd34]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41bd94]
xor ebx, ebx
cmp eax, ebx
je 0x405030
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
mov eax, dword [ebp + 0xc]
mov ecx, dword [0x41bd90]
mov esi, 1
push eax
push esi
push 0x467
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [0x41bda8]
mov dword [ebp - 0x24], ebx
cmp eax, ebx
je 0x4052c3
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov ecx, 0x41d34c
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push eax
push edx
call fcn.00409420
mov eax, dword [eax]
mov ecx, 0x41d34c
push eax
mov dword [ebp - 4], ebx
call fcn.00409280
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040cfa6
lea eax, [esi + 8]
lea ecx, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::CString_2
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x41b2bc]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x405118
mov ecx, dword [0x41bd20]
lea edx, [ebp + 8]
push ecx
push 0x41b428
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0x2f
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, ebx
jl 0x40510e
mov ecx, dword [esi]
lea edx, [ebp - 0x1c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040cfa6
mov eax, dword [esi + 0x18]
mov dword [0x41bd9c], eax
jmp 0x405134
mov ecx, dword [ebp + 8]
mov edx, dword [0x41bd20]
push ecx
push edx
lea eax, [ebp + 8]
push 0x41b418
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov edi, dword [edi]
lea ecx, [ebp - 0x14]
push ecx
push edi
mov ecx, 0x41d34c
mov byte [ebp - 4], 4
call fcn.00409cd0
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp - 0x14]
push eax
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40521d
xor edi, edi
xor eax, eax
cmp eax, ebx
jne 0x40521d
cmp dword [0x41bd94], ebx
jne 0x4051a3
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x188]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.004081e0
add esp, 0x10
inc edi
cmp edi, 3
jl 0x40516e
cmp eax, ebx
jne 0x40521d
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], ebx
jne 0x4051e3
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x41bd90]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 3
push 0x467
push edx
call esi
mov eax, dword [0x41bd90]
push ebx
push 0xffffffffffffffff
push 0x465
push eax
call esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040cfa6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040cfa6
lea ecx, [ebp + 8]
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
mov eax, dword [0x41bd34]
or edi, 0xffffffff
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], ebx
jne 0x40528d
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x41bd90]
push ecx
push 2
push 0x467
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x14]
mov dword [esi + 0x24], 1
mov byte [ebp - 4], 2
call fcn.0040cfa6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040cfa6
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
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 - 0x14]
mov byte [ebp - 4], 2
call fcn.0040cfa6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040cfa6
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
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 0xc800
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x40], ebx
call sub.MFC42.DLL_operatornew
mov dword [ebp - 0x2c], eax
mov eax, dword [0x41b2bc]
add esp, 4
cmp eax, esi
jne 0x4052ed
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
jmp 0x4052f5
mov edi, dword [ebp + 8]
mov esi, 0x100000
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [ebp - 0x88]
push 0x7d000
push esi
push eax
call sub.MFC42.DLL_CMemFile::CMemFile
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea eax, [edi + 4]
lea ecx, [edi + 0x10]
push eax
lea edx, [ebp - 0x20]
push ecx
push edx
mov byte [ebp - 4], 7
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov ecx, 0x41d34c
mov byte [ebp - 4], 8
call fcn.00409cd0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.0040cfa6
mov eax, dword [edi + 0x1c]
mov edx, dword [ebp - 0x34]
push eax
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40581d
mov bl, 9
push 0x14
mov byte [ebp - 4], bl
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x48], 4
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x38], ecx
test ecx, ecx
mov byte [ebp - 4], 0xa
je 0x4053bc
push 0
push 0
push 0
push 0
push 1
push 0x41b31c
call sub.MFC42.DLL_CInternetSession::CInternetSession
mov ecx, eax
jmp 0x4053be
xor ecx, ecx
mov eax, dword [edi]
push 0
push 0
push 0x84000002
push 1
push eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x1c], ecx
call sub.MFC42.DLL_CInternetSession::OpenURL
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x48]
push esi
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0x20000013
mov ecx, edi
mov dword [ebp - 0x40], edi
call sub.MFC42.DLL_CHttpFile::QueryInfo_1
mov eax, dword [ebp - 0x18]
cmp eax, 0x197
je 0x405404
cmp eax, 0x191
jne 0x405422
push esi
push 6
push 0x2eee
push esi
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::ErrorDlg
cmp eax, 0x2f00
je 0x405696
mov eax, dword [ebp - 0x18]
cmp eax, 0xc8
jb 0x40552c
cmp eax, 0x12c
jae 0x40552c
lea edx, [ebp - 0x30]
push esi
push edx
push 5
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::QueryInfo
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
mov ecx, dword [0x41b2bc]
add esp, 4
cmp ecx, esi
mov dword [ebp - 0x24], eax
jne 0x40546b
mov ecx, dword [ebp + 8]
mov dword [0x41bd9c], eax
mov dword [ecx + 0x18], eax
lea edx, [ebp - 0x44]
mov ecx, edi
push edx
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
cmp dword [ebp - 0x44], 0xc8
jne 0x405574
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi]
push 0xc800
push ecx
mov ecx, edi
call dword [eax + 0x3c]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jbe 0x40557a
mov edx, dword [ebp - 0x2c]
push esi
push edx
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CMemFile::Write
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi]
push 0xc800
push ecx
mov ecx, edi
call dword [eax + 0x3c]
mov esi, eax
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41bd94]
test eax, eax
je 0x4054e8
mov dword [ebp - 0x14], 0
jmp 0x40557a
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CFile::GetLength
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
xor eax, eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x38], eax
fild qword [ebp - 0x50]
fild qword [ebp - 0x3c]
fdivp st(1)
fmul qword [0x414e40]
call sub.MSVCRT.dll__ftol
push eax
mov eax, dword [0x41bd90]
push 0xffffffffffffffff
push 0x465
push eax
call ebx
jmp 0x40549b
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], esi
jne 0x405571
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x41bd90]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 3
push 0x467
push edx
call ebx
mov eax, dword [0x41bd90]
push esi
push 0xffffffffffffffff
push 0x465
push eax
call ebx
jmp 0x40557a
mov dword [ebp - 0x14], esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 7
call sub.MFC42.DLL_CFile::GetLength
lea ecx, [ebp - 0x88]
mov esi, eax
call sub.MFC42.DLL_CMemFile::Detach
mov edi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 0x38], edi
je 0x4057c9
mov eax, dword [ebp - 0x24]
cmp esi, eax
jne 0x405798
test esi, esi
je 0x405798
test eax, eax
je 0x405798
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 0xc
lea esi, [ecx + 0x10]
lea ecx, [ebp - 0x20]
push esi
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x41b2bc]
mov bl, 0xd
test eax, eax
mov byte [ebp - 4], bl
jne 0x405622
mov ecx, dword [ebp + 8]
push 0x2f
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x405622
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov ecx, dword [ecx - 8]
sub ecx, eax
lea eax, [ebp - 0x28]
dec ecx
push ecx
push eax
mov ecx, edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040cfa6
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
push eax
push ecx
mov ecx, 0x41d34c
call fcn.00409420
mov eax, dword [eax]
mov ecx, 0x41d34c
push eax
mov byte [ebp - 4], 0xf
call fcn.00409280
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.0040cfa6
mov edx, dword [ebp - 0x20]
push 0x1041
push edx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CFile::CFile_1
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x60]
push eax
push edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x10
call dword [edx + 0x40]
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CFile::Close
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.0040d150
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
call fcn.0040cfa6
jmp 0x405785
push esi
push esi
push esi
push esi
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::SendRequest
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CHttpFile::QueryInfoStatusCode
jmp 0x4053f3
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 7
mov dword [ecx + 0x24], 1
jmp 0x4057c9
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41bd94]
test eax, eax
jne 0x4057c9
mov edx, dword [ebp + 0xc]
mov eax, dword [0x41bd90]
push edx
push 3
push 0x467
push eax
call ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4057d9
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
test edi, edi
je 0x4057e6
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4057fd
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 - 0x1c]
test esi, esi
je 0x405814
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x405850
xor ebx, ebx
mov eax, dword [0x41bd34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x41bd94], ebx
jne 0x40584d
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x41bd90]
push ecx
push 2
push 0x467
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x405850
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 6
call fcn.0040cfa6
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.0040cfa6
lea ecx, [ebp - 0x88]
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