Function at 0x41b5c2
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, 0x4ac4e9
call fcn.0049f0d0
sub esp, 0x50
mov eax, dword [0x4f0dd0]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
test ebx, ebx
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
jne 0x41b5eb
xor al, al
jmp 0x41b793
mov ecx, dword [ebx + 0x78]
test ecx, ecx
push edi
jne 0x41b5f7
xor edi, edi
jmp 0x41b603
push 0x4b8874
call fcn.0040761a
mov edi, eax
push edi
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
push edi
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push edi
call fcn.0043c417
push 0x4b883c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00406b0a
add esp, 0x18
lea edi, [esi + 0xa8]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.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__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b683
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll__wmkdir]
pop ecx
mov ecx, dword [ebx + 0x78]
test ecx, ecx
jne 0x41b68e
xor eax, eax
jmp 0x41b698
push 0x4bc150
call fcn.0040761a
push eax
lea ecx, [esi + 0x1c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [ebx + 0x80]
call fcn.00465347
and dword [ebp - 0x38], 0
test eax, eax
mov dword [ebp - 0x3c], eax
jbe 0x41b783
push dword [ebp - 0x38]
mov ecx, ebx
call fcn.004075d2
mov edi, eax
mov dword [ebp - 0x40], edi
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, edi
mov dword [ebp - 0x34], eax
call fcn.00407c6a
push str.download_url
push dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x41b6fd
lea ecx, [esi + 0x54]
jmp 0x41b75c
push str.logo_url
push dword [ebp - 0x34]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x41b72b
lea eax, [esi + 0x70]
push eax
push dword [ebp - 0x30]
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push dword [ebp - 0x30]
call fcn.0043c417
add esp, 0xc
jmp 0x41b765
push str.demo_img
push dword [ebp - 0x34]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x41b746
lea eax, [esi + 0x8c]
jmp 0x41b713
push 0x4bc120
push dword [ebp - 0x34]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x41b765
lea ecx, [esi + 0x38]
push dword [ebp - 0x30]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
test edi, edi
mov byte [ebp - 4], 0
je 0x41b774
mov ecx, edi
call fcn.004063b8
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x3c]
jb 0x41b6bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret 4