Function at 0x51ea00
Capabilities:
Check os version
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x53c24c
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x5c403c]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c403c]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov esi, ecx
call sub.mfc90u.dll_CDialog::OnInitDialog
lea ecx, [esi + 0x314]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov edi, dword [esi + 0xb8]
xor ebx, ebx
or ebp, 0xffffffff
mov dword [esi + 0x328], ebp
mov dword [esi + 0x320], ebx
mov dword [esi + 0x324], ebx
mov eax, dword [esi + 0xb0]
sub eax, dword [esi + 0xac]
mov dword [esp + 0x24], ebx
sar eax, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
cmp edi, eax
jb 0x51ea9c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0xac]
lea eax, [ecx + edi*4]
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call sub.mfc90u.dll_CFile::GetStatus
cmp eax, ebx
je 0x51eb5f
mov eax, dword [esi + 0x100]
or eax, dword [esi + 0x104]
jne 0x51eb5f
cmp dword [esi + 0xe4], ebx
je 0x51eb5f
lea ecx, [esp + 0x18]
call dword [0x55a6c4]
mov dword [esp + 0x25c], ebx
mov ecx, dword [esi + 0xb0]
sub ecx, dword [esi + 0xac]
mov edi, dword [esi + 0xb8]
sar ecx, 2
cmp edi, ecx
jb 0x51eb08
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0xac]
lea eax, [edx + edi*4]
mov eax, dword [eax]
push eax
push 0x49f
lea eax, [esp + 0x20]
push eax
call sub.mfc90u.dll_AfxFormatString1
mov ecx, dword [esp + 0x18]
push ebx
push 4
push ecx
call sub.mfc90u.dll_AfxMessageBox
cmp eax, 6
je 0x51eb4e
push 2
mov ecx, esi
call sub.mfc90u.dll_CDialog::EndDialog
mov dword [esp + 0x25c], ebp
lea ecx, [esp + 0x18]
jmp 0x51edb0
mov dword [esp + 0x25c], ebp
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [0x55a6c4]
mov dword [esp + 0x25c], 1
mov edx, dword [esi + 0x98]
sub edx, dword [esi + 0x94]
mov edi, dword [esi + 0xb8]
sar edx, 2
cmp edi, edx
jb 0x51eb93
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x94]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x18]
push edx
lea ebp, [esi + 0x84]
push ebp
lea eax, [eax + edi*4]
mov eax, dword [eax]
lea ecx, [esi + 0x11c]
push ecx
push eax
call sub.mfc90u.dll_AfxParseURL
test eax, eax
jne 0x51ec9f
mov eax, dword [esi + 0x98]
sub eax, dword [esi + 0x94]
mov edi, dword [esi + 0xb8]
sar eax, 2
cmp edi, eax
jb 0x51ebe3
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x94]
lea edx, [esp + 0x18]
lea ecx, [ecx + edi*4]
push edx
mov ebx, str.http:__
call fcn.004393e0
add esp, 4
mov ebx, eax
mov byte [esp + 0x25c], 2
mov eax, dword [esi + 0x98]
sub eax, dword [esi + 0x94]
mov edi, dword [esi + 0xb8]
sar eax, 2
cmp edi, eax
jb 0x51ec27
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x94]
push ebx
lea ecx, [ecx + edi*4]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x25c], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov edx, dword [esi + 0x98]
sub edx, dword [esi + 0x94]
mov edi, dword [esi + 0xb8]
sar edx, 2
cmp edi, edx
jb 0x51ec68
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x94]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
lea eax, [eax + edi*4]
mov eax, dword [eax]
lea ecx, [esi + 0x11c]
push ecx
push eax
call sub.mfc90u.dll_AfxParseURL
test eax, eax
jne 0x51ec9d
push 2
mov ecx, esi
call sub.mfc90u.dll_CDialog::EndDialog
jmp 0x51eda1
xor ebx, ebx
push 0x2f
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, 0xffffffff
jne 0x51ecc1
push 0x5c
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::ReverseFind]
cmp eax, 0xffffffff
je 0x51ed0c
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 1
jle 0x51ed0c
mov ecx, dword [ecx - 0xc]
sub ecx, eax
dec ecx
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Right]
mov byte [esp + 0x25c], 3
lea edi, [esi + 0x80]
push eax
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
mov byte [esp + 0x25c], 1
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
jmp 0x51ed1f
lea ecx, [esp + 0x14]
lea edi, [esi + 0x80]
push ecx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [esp + 0x1c]
call dword [0x55a6c4]
mov byte [esp + 0x25c], 4
mov eax, dword [ebp]
mov edi, dword [edi]
push eax
push edi
push 0x485
lea edx, [esp + 0x28]
push edx
call sub.mfc90u.dll_AfxFormatString2
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esi + 0x2c0]
call sub.mfc90u.dll_CWnd::SetWindowTextW
push ebx
push 4
push ebx
push ebx
push esi
push 0x51edf0
call sub.mfc90u.dll_AfxBeginThread
mov dword [esi + 0x31c], eax
cmp eax, ebx
jne 0x51ed7c
push 2
mov ecx, esi
call sub.mfc90u.dll_CDialog::EndDialog
jmp 0x51ed8f
mov dword [eax + 0x28], ebx
mov esi, dword [esi + 0x31c]
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov byte [esp + 0x25c], 1
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, 1
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00532776
add esp, 0x24c
ret