Function at 0x4024a0
Capabilities:
Download url
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x4042d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x408020]
xor eax, esp
mov dword [esp + 0xbc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x408020]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov ebp, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
push str.win_645721.test
lea eax, [esp + 0x9c]
push 0x408478
push eax
mov byte [esp + 0x23], 0
call ebp
push 0x408494
lea ecx, [esp + 0xc4]
push 0x408478
xor edi, edi
push ecx
mov dword [esp + 0xf4], edi
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0x18
mov byte [esp + 0xdc], 1
mov ecx, dword [0x408438]
sub ecx, dword [0x408434]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], edi
je 0x4027f6
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp edi, eax
jb 0x402567
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [0x408434]
lea eax, [ebx + edx]
push str.dlversion.php_id
push eax
lea eax, [esp + 0x4c]
push eax
call ebp
mov esi, eax
mov byte [esp + 0xe8], 2
call fcn.00401120
push eax
lea ecx, [esp + 0x8c]
push esi
push ecx
call ebp
add esp, 0x18
lea ecx, [esp + 0x44]
mov byte [esp + 0xdc], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [0x408438]
sub ecx, dword [0x408434]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4025d6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [0x408434]
lea eax, [ebx + ecx]
push str.dlupdate.dat
push eax
lea edx, [esp + 0x68]
push edx
call ebp
add esp, 0xc
mov byte [esp + 0xdc], 5
mov eax, dword [esp + 0x80]
mov esi, 0x10
cmp dword [esp + 0x94], esi
jae 0x402613
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
mov ecx, dword [esp + 0x9c]
cmp dword [esp + 0xb0], esi
jae 0x402631
lea ecx, [esp + 0x9c]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x94], esi
jae 0x402648
lea eax, [esp + 0x80]
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x402682
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xdc], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x4027c7
mov eax, dword [esp + 0x9c]
cmp dword [esp + 0xb0], esi
jae 0x402699
lea eax, [esp + 0x9c]
push 0x405618
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
push str._d__d
push esi
call dword [sym.imp.MSVCR90.dll_fscanf]
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 0x1c
cmp dword [esp + 0x1c], 1
jle 0x40284f
mov eax, dword [esp + 0x64]
mov esi, 0x10
cmp dword [esp + 0x78], esi
jae 0x4026e5
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
mov ecx, dword [esp + 0xb8]
cmp dword [esp + 0xcc], esi
jae 0x402703
lea ecx, [esp + 0xb8]
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], esi
jae 0x402711
lea eax, [esp + 0x64]
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x402659
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x402746
lea eax, [esp + 0x2c]
push 0x405510
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
xor bl, bl
test eax, eax
je 0x402767
push eax
mov bl, 1
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x40279f
sub esp, 0x1c
lea eax, [esp + 0xd0]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
call fcn.00401d80
add esp, 0x1c
cmp eax, dword [esp + 0x20]
jne 0x40279f
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xdc], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [esp + 0x18]
mov ecx, dword [0x408438]
sub ecx, dword [0x408434]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add ebx, 0x1c
add eax, edx
mov dword [esp + 0x18], ebx
cmp edi, eax
jb 0x402567
lea ecx, [esp + 0xb4]
mov byte [esp + 0xdc], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x98]
mov dword [esp + 0xdc], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbc]
xor ecx, esp
call fcn.00403658
add esp, 0xcc
ret
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xdc], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb4]
mov byte [esp + 0xdc], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x98]
mov dword [esp + 0xdc], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x402827