Function at 0x67330120
Capabilities:
Create directory
Download url
Print debug messages
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x4d0]
sub esp, 0x4d0
push 0xffffffffffffffff
push 0x674099ac
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x67460ecc]
xor eax, ebp
mov dword [ebp + 0x4cc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call dword [0x67460ef8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x6733045a
lea ecx, [eax + 4]
lea eax, [ebp]
push eax
call fcn.6732c160
lea eax, [ebx + 8]
push eax
lea ecx, [ebp + 0x40]
mov dword [ebp - 4], 0
call dword [0x67411c90]
lea esi, [ebx + 0x24]
push esi
lea ecx, [ebp + 0x5c]
call dword [0x67411c90]
push esi
lea ecx, [ebp + 0xb0]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov byte [ebp - 4], 1
cmp dword [esi + 0x18], 8
jb 0x673301bb
mov edi, dword [esi + 4]
jmp 0x673301be
lea edi, [esi + 4]
test edi, edi
jne 0x673301c7
mov dword [ebp - 0x14], edi
jmp 0x67330213
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x6733020e
lea ebx, [eax + eax]
mov eax, ebx
call fcn.673f11f0
mov esi, esp
test esi, esi
je 0x6733020b
mov ecx, dword [ebp - 0x18]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push ecx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, esi
jmp 0x67330210
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x14], eax
cmp dword [ebx + 0x20], 8
jb 0x6733021e
mov edi, dword [ebx + 0xc]
jmp 0x67330221
lea edi, [ebx + 0xc]
test edi, edi
je 0x6733026c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x6733026c
lea ebx, [eax + eax]
mov eax, ebx
call fcn.673f11f0
mov esi, esp
test esi, esi
je 0x67330269
mov edx, dword [ebp - 0x18]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push edx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x10]
neg eax
sbb eax, eax
and eax, esi
jmp 0x6733026e
mov ebx, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0xcc]
push str.m_wsPhotoID___s___wsDownloadPath___s
push edx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
lea eax, [ebp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp + 0xc4], 0
je 0x673303ec
mov eax, dword [ebp + 0xb4]
mov edi, 8
cmp dword [ebp + 0xc8], edi
jae 0x673302bb
lea eax, [ebp + 0xb4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 3
je 0x673303ec
push 0x6742eef0
lea ecx, [ebp + 0xb0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
cmp dword [ebp + 0x58], edi
mov eax, dword [ebp + 0x44]
jae 0x673302e9
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp + 0xb0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push str..jpg
lea ecx, [ebp + 0xb0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push 0xc
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 2
je 0x67330335
mov edx, dword [ebx + 4]
lea ecx, [ebp]
push ecx
mov ecx, dword [edx + 0xd0]
push ecx
mov esi, eax
call fcn.6732c0d0
mov esi, eax
jmp 0x67330337
xor esi, esi
test esi, esi
mov byte [ebp - 4], 1
je 0x673303d0
mov dword [esi], 0
cmp dword [ebp + 0xc8], edi
mov eax, dword [ebp + 0xb4]
jae 0x6733035d
lea eax, [ebp + 0xb4]
lea edx, [ebp - 0x48]
push edx
push eax
call dword [sym.imp.MSVCR80.dll__wstat64i32]
add esp, 8
cmp eax, 0xffffffff
jne 0x673303ca
cmp dword [ebx + 0x58], edi
jb 0x6733037a
mov eax, dword [ebx + 0x44]
jmp 0x6733037d
lea eax, [ebx + 0x44]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
cmp eax, 1
jne 0x673303d0
cmp dword [ebp + 0xc8], edi
mov ecx, dword [ebp + 0xb4]
jae 0x6733039d
lea ecx, [ebp + 0xb4]
cmp dword [ebx + 0x58], edi
jb 0x673303b6
mov eax, dword [ebx + 0x44]
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [esi], eax
jmp 0x673303d0
push 0
push 0
push ecx
lea eax, [ebx + 0x44]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [esi], eax
jmp 0x673303d0
mov dword [esi], 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xd4]
test eax, eax
je 0x673303ec
push 0
push esi
push 0x8002
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xc
call sub.MFC80U.DLL_Ordinal_762
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
mov byte [ebp - 4], 3
je 0x67330418
mov edx, dword [ebx + 4]
lea ecx, [ebp]
push ecx
mov ecx, dword [edx + 0xd0]
push ecx
mov esi, eax
call fcn.6732c0d0
jmp 0x6733041a
xor eax, eax
mov byte [ebp - 4], 1
mov esi, dword [ebx + 4]
mov ecx, eax
call fcn.6732fd20
mov dword [ebx + 4], 0
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push 1
mov ecx, ebx
call eax
lea ecx, [ebp + 0xb0]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.6732c240
lea esp, [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4cc]
xor ecx, ebp
call fcn.673f06fa
add ebp, 0x4d0
mov esp, ebp
pop ebp
ret 4