Function at 0x40a460
Capabilities:
Create directory
Download url
Receive data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x411e0c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
mov eax, dword [0x413950]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x70], edi
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x413964]
xor ebp, ebp
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0xb8], ebp
call fcn.0041043c
lea esi, [edi + 0x1d4]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
lea edx, [esp + 0x10]
lea ecx, [edi + 0x1cc]
push edx
call fcn.00401000
push esi
lea ecx, [esp + 0x60]
call fcn.00410436
push 0x419640
lea ecx, [esp + 0x60]
mov byte [esp + 0xb8], 1
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x14]
push 0x419634
mov byte [esp + 0xb8], 2
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
sub esi, eax
lea edx, [esp + 0x1c]
sub esi, 9
lea ecx, [esp + 0x14]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb8], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00410436
mov byte [esp + 0xb4], 4
mov bl, 5
push 0x2d
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x40a5b3
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], bl
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 4
call sub.MFC42.DLL_CString::CString
inc ebp
jmp 0x40a565
lea edi, [ebp*4 + 4]
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0xb4], 6
je 0x40a5f3
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
lea esi, [eax + 4]
push ebp
push 4
push esi
mov dword [eax], ebp
call fcn.004107d3
mov ebx, esi
mov dword [esp + 0x38], ebx
jmp 0x40a5ff
mov dword [esp + 0x38], 0
mov ebx, dword [esp + 0x38]
push edi
mov byte [esp + 0xb8], 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0xb4], 7
je 0x40a63e
push sub.MFC42.DLL_CString::CString
push sub.MFC42.DLL_CString::CString_2
lea esi, [eax + 4]
push ebp
push 4
push esi
mov dword [eax], ebp
call fcn.004107d3
mov dword [esp + 0x28], esi
jmp 0x40a64a
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 4
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb8], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 4
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jle 0x40a7c7
mov edi, esi
sub ebx, esi
mov dword [esp + 0x20], ebp
push 0x2d
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x40a71e
lea edx, [esp + 0x1c]
push esi
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x40]
mov eax, dword [eax - 8]
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb8], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x40]
mov byte [esp + 0xb4], 4
call sub.MFC42.DLL_CString::CString
jmp 0x40a72c
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator
push 0x2f
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebx + edi]
mov byte [esp + 0xb8], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb4], 4
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
push 0x2f
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
sub esi, eax
lea edx, [esp + 0x24]
dec esi
lea ecx, [esp + 0x18]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, edi
mov byte [esp + 0xb8], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
add edi, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x40a69c
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x90]
mov byte [esp + 0xb4], 0xd
call fcn.00410418
test ebp, ebp
mov byte [esp + 0xb4], 0xe
mov dword [esp + 0x40], 0
jle 0x40ad6d
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
sub eax, ebx
mov esi, ebx
mov dword [esp + 0x84], eax
mov dword [esp + 0x1c], ebp
mov bl, 0x13
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x10]
add eax, 0x1d8
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [0x413954]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041043c
push 0x419630
lea ecx, [esp + 0x14]
call fcn.0041043c
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x98]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x40a8db
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call fcn.00410436
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x74]
call fcn.0040ae40
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0xb8], 0xf
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x74]
mov byte [esp + 0xb4], 0xe
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x50]
push ecx
mov eax, dword [edx + esi]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x40ad53
mov ebp, 1
mov dword [esp + 0x40], ebp
jmp 0x40a97b
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 0x10
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x413950]
push esi
lea eax, [esp + 0x7c]
push edx
push eax
mov byte [esp + 0xc0], 0x11
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x68]
mov byte [esp + 0xb8], 0x12
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x64]
push 0
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb4], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
mov byte [esp + 0xb4], 0xe
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x40]
push 0x41c354
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xb8], bl
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [0x41395c]
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40ab33
cmp ebp, 1
jne 0x40ab33
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x44]
mov byte [esp + 0xb4], 0x14
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x413950]
push esi
lea eax, [esp + 0x80]
push edx
push eax
mov byte [esp + 0xc0], 0x15
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 0x16
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x7c]
mov byte [esp + 0xb4], 0x15
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x6c]
lea eax, [ecx + 0x1d8]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [0x413954]
lea ecx, [esp + 0x10]
push edx
call fcn.0041043c
push 0x419628
lea ecx, [esp + 0x14]
call fcn.0041043c
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
push 0
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
push 2
lea edx, [esp + 0x5b]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x84], esp
push edx
push 0x4181d0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
sub esp, 0x10
lea eax, [esp + 0x8f]
mov ecx, esp
mov dword [esp + 0xa4], esp
push eax
push 0x41c354
mov byte [esp + 0xe0], 0x17
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
sub esp, 0x10
lea edx, [esp + 0x96]
mov ecx, esp
mov dword [esp + 0xbc], esp
push edx
push 0x419620
mov byte [esp + 0xf0], 0x18
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov byte [esp + 0xe8], 0x15
mov ecx, 0x41c358
call fcn.004079a0
mov eax, dword [esp + 0x3c]
push eax
call edi
lea ecx, [esp + 0x44]
mov byte [esp + 0xb4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x413958]
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40ac7c
cmp ebp, 1
jne 0x40ac7c
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 0x19
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x413950]
push esi
lea eax, [esp + 0x90]
push edx
push eax
mov byte [esp + 0xc0], 0x1a
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xb8], 0x1b
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
push 0
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
push ebp
lea edx, [esp + 0x4f]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x9c], esp
push edx
push 0x4181d0
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
sub esp, 0x10
lea eax, [esp + 0x87]
mov ecx, esp
mov dword [esp + 0xa4], esp
push eax
push 0x41c354
mov byte [esp + 0xe0], 0x1c
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
sub esp, 0x10
lea edx, [esp + 0x95]
mov ecx, esp
mov dword [esp + 0xa4], esp
push edx
push 0x419620
mov byte [esp + 0xf0], 0x1d
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
mov ecx, 0x41c358
mov byte [esp + 0xe8], 0x1a
call fcn.004079a0
mov eax, dword [esp + 0x30]
push eax
call edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xb4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x413960]
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40ad42
cmp ebp, 1
jne 0x40ad42
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb4], 0x1e
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x413950]
push esi
lea eax, [esp + 0x5c]
push edx
push eax
mov byte [esp + 0xc0], 0x1f
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], 0x20
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x58]
mov byte [esp + 0xb4], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
push 0
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [esp + 0x34]
push ecx
call edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb4], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xb4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 0xe
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
add esi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x40a817
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x40ad8e
mov edx, dword [ebx - 4]
lea edi, [ebx - 4]
push sub.MFC42.DLL_CString::CString
push edx
push 4
push ebx
call fcn.004106df
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
test esi, esi
je 0x40adaf
mov eax, dword [esi - 4]
lea edi, [esi - 4]
push sub.MFC42.DLL_CString::CString
push eax
push 4
push esi
call fcn.004106df
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x90]
mov byte [esp + 0xb4], 0xd
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x50]
mov byte [esp + 0xb4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0xb4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa8
ret