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

Disassembly:
push 0xffffffffffffffff
push 0x4117a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x413758]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x41376c]
xor edi, edi
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0xb4], edi
call fcn.0041043c
lea esi, [ebx + 0xd0]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
lea edx, [esp + 0x10]
lea ecx, [ebx + 0xc8]
push edx
call fcn.00401000
push esi
lea ecx, [esp + 0x5c]
call fcn.00410436
push 0x419640
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb4], 1
call sub.MFC42.DLL_CString::Find_1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 0x14]
push 0x419634
mov byte [esp + 0xb4], 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 + 0xb4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
xor ebp, ebp
call fcn.00410436
mov byte [esp + 0xb0], 4
push 0x2d
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4064c4
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 + 0xb4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 4
call sub.MFC42.DLL_CString::CString
inc ebp
jmp 0x406475
lea eax, [ebp*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x54], eax
cmp eax, edi
mov byte [esp + 0xb0], 6
je 0x406504
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 edi, esi
mov dword [esp + 0x2c], edi
jmp 0x406508
mov dword [esp + 0x2c], edi
lea eax, [ebp*4 + 4]
mov byte [esp + 0xb0], 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
mov byte [esp + 0xb0], 7
je 0x40654e
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 0x40655a
mov dword [esp + 0x28], 0
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 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 + 0xb4], 8
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 4
call sub.MFC42.DLL_CString::CString
test ebp, ebp
jle 0x4066df
mov ebx, dword [esp + 0x2c]
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 0x406632
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 + 0xb4], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
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 + 0xb4], 0xa
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb0], 4
call sub.MFC42.DLL_CString::CString
jmp 0x406640
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 + 0x34]
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebx + edi]
mov byte [esp + 0xb4], 0xb
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 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 + 0x34]
dec esi
lea ecx, [esp + 0x18]
push esi
push edx
call sub.MFC42.DLL_CString::Right
push eax
mov ecx, edi
mov byte [esp + 0xb4], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
add edi, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x4065b0
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb0], 0xd
call fcn.00410418
test ebp, ebp
mov byte [esp + 0xb0], 0xe
mov dword [esp + 0x3c], 0
jle 0x406c6f
mov eax, dword [esp + 0x28]
mov esi, edi
sub eax, edi
mov edi, dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov dword [esp + 0x80], eax
mov dword [esp + 0x1c], ebp
lea eax, [ebx + 0xd4]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [0x41375c]
lea ecx, [esp + 0x10]
push eax
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 ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CFileFind::FindFile
cmp eax, 1
jne 0x4067eb
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x70], esp
push edx
call fcn.00410436
lea eax, [esp + 0x74]
mov ecx, ebx
push eax
call fcn.00406d40
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0xb4], 0xf
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x70]
mov byte [esp + 0xb0], 0xe
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x4c]
push edx
mov eax, dword [ecx + esi]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x406c55
mov ebp, 1
mov dword [esp + 0x3c], ebp
jmp 0x40688a
lea ecx, [esp + 0x68]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x60]
mov byte [esp + 0xb0], 0x10
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x413758]
push esi
lea ecx, [esp + 0x78]
push eax
push ecx
mov byte [esp + 0xbc], 0x11
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xb4], 0x12
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x74]
mov byte [esp + 0xb0], 0x11
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea ecx, [esp + 0x60]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
push 0
push 0
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x60]
mov byte [esp + 0xb0], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x68]
mov byte [esp + 0xb0], 0xe
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x3c]
push 0x41c354
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xb4], 0x13
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [0x413764]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406a39
cmp ebp, 1
jne 0x406a39
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 0x14
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x413758]
push esi
lea ecx, [esp + 0x7c]
push eax
push ecx
mov byte [esp + 0xbc], 0x15
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0xb4], 0x16
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x78]
mov byte [esp + 0xb0], 0x15
call sub.MFC42.DLL_CString::CString
lea eax, [ebx + 0xd4]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [0x41375c]
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 + 0x28]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
push 0
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
push 2
lea edx, [esp + 0x57]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x80], 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 + 0x8b]
mov ecx, esp
mov dword [esp + 0xa0], esp
push eax
push 0x41c354
mov byte [esp + 0xdc], 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 + 0x93]
mov ecx, esp
mov dword [esp + 0xb8], esp
push edx
push 0x419620
mov byte [esp + 0xec], 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 ecx, ebx
mov byte [esp + 0xe4], 0x15
call fcn.004079a0
mov eax, dword [esp + 0x38]
push eax
call edi
lea ecx, [esp + 0x24]
mov byte [esp + 0xb0], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xb0], 0x13
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x413760]
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406b7d
cmp ebp, 1
jne 0x406b7d
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 0x19
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x413758]
push esi
lea eax, [esp + 0x8c]
push edx
push eax
mov byte [esp + 0xbc], 0x1a
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0xb4], 0x1b
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x88]
mov byte [esp + 0xb0], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x44]
push 0
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
push ebp
lea edx, [esp + 0x69]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x98], 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 + 0x6f]
mov ecx, esp
mov dword [esp + 0xa0], esp
push eax
push 0x41c354
mov byte [esp + 0xdc], 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 + 0x9a]
mov ecx, esp
mov dword [esp + 0xa0], esp
push edx
push 0x419620
mov byte [esp + 0xec], 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, ebx
mov byte [esp + 0xe4], 0x1a
call fcn.004079a0
mov eax, dword [esp + 0x44]
push eax
call edi
lea ecx, [esp + 0x34]
mov byte [esp + 0xb0], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0xb0], 0x13
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x413768]
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406c44
cmp ebp, 1
jne 0x406c44
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 0x1e
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [0x413758]
push esi
lea eax, [esp + 0x58]
push edx
push eax
mov byte [esp + 0xbc], 0x1f
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0xb4], 0x20
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x54]
mov byte [esp + 0xb0], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::operator
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
push 0
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov ecx, dword [esp + 0x40]
push ecx
call edi
lea ecx, [esp + 0x30]
mov byte [esp + 0xb0], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xb0], 0xe
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
add esi, 4
dec eax
mov dword [esp + 0x1c], eax
jne 0x40672d
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x406c90
mov edx, dword [edi - 4]
lea ebx, [edi - 4]
push sub.MFC42.DLL_CString::CString
push edx
push 4
push edi
call fcn.004106df
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
test esi, esi
je 0x406cb1
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 + 0x8c]
mov byte [esp + 0xb0], 0xd
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x4c]
mov byte [esp + 0xb0], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xb0], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa4
ret