Function at 0x401810
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x408018]
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, 1
lea eax, [ebp + 8]
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 0x18]
push eax
call fcn.00402ee0
push esi
lea ecx, [ebp + 8]
lea ebx, [eax + 1]
push ecx
lea esi, [ebp - 0x48]
call fcn.00401f60
push 0x405280
lea edx, [ebp + 0x24]
push edx
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00403870
add esp, 0xc
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00403a20
mov byte [ebp - 4], 5
cmp dword [ebp - 0x50], 0x10
jb 0x40189f
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [ebp - 0x1c]
xor ebx, ebx
inc edi
push edi
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
push edi
mov esi, eax
push ebx
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x2c]
mov edi, 0x10
add esp, 0x10
cmp dword [ebp - 0x18], edi
jae 0x4018d6
lea eax, [ebp - 0x2c]
push eax
push 0x405278
push esi
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
jmp 0x4018f0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4018f0
sub eax, edx
mov byte [esi + eax - 2], bl
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x401908
lea eax, [ebp + 8]
push ebx
push ebx
push esi
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov edx, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
test eax, eax
mov eax, dword [sym.imp.MSVCP100.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push edx
jne 0x4019ac
push 0x4052a8
push eax
call fcn.00403a60
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x18], edi
jb 0x40194f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x40196f
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp + 0x1c], edi
jb 0x40198a
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x4019a5
mov ecx, dword [ebp + 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x401a2f
push str.fail
push eax
call fcn.00403a60
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x18], edi
jb 0x4019d4
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], edi
jb 0x4019f4
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp + 0x1c], edi
jb 0x401a0f
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], edi
jb 0x401a2a
mov ecx, dword [ebp + 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, 1
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.00403f3c
mov esp, ebp
pop ebp
ret