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

Disassembly:
mov eax, 0x4de81e
call fcn.004d1ec0
sub esp, 0x4c
mov eax, dword [0x52f220]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
test ebx, ebx
push esi
mov dword [ebp - 0x10], eax
mov esi, ecx
jne 0x4287e6
xor al, al
jmp 0x4289b6
mov ecx, dword [ebx + 0x78]
test ecx, ecx
push edi
jne 0x4287f2
xor edi, edi
jmp 0x4287fe
push 0x4ed9e0
call fcn.0040eb6d
mov edi, eax
push edi
lea ecx, [esi + 4]
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.00451a68
push 0x4ed9a8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407691
add esp, 0x18
lea edi, [esi + 0xac]
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 - 0x58]
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 0x42887f
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 0x42888a
xor eax, eax
jmp 0x428894
push 0x4f2df8
call fcn.0040eb6d
push eax
lea ecx, [esi + 0x20]
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.004a39d5
and dword [ebp - 0x34], 0
test eax, eax
mov dword [ebp - 0x3c], eax
jbe 0x4289a6
push dword [ebp - 0x34]
mov ecx, ebx
call fcn.0040eb25
mov edi, eax
mov dword [ebp - 0x38], 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 - 0x30], eax
call fcn.0040ee53
push str.link_url
push dword [ebp - 0x30]
mov edi, eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x428902
lea ecx, [esi + 0x58]
push edi
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__]
jmp 0x428987
push str.logo_url
push dword [ebp - 0x30]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x42892c
lea eax, [esi + 0x74]
push eax
push edi
call sub.MSVCR71.dll_strlen
pop ecx
push eax
push edi
call fcn.00451a68
add esp, 0xc
jmp 0x428987
push str.demo_img
push dword [ebp - 0x30]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x428947
lea eax, [esi + 0x90]
jmp 0x428918
push 0x4f2dcc
push dword [ebp - 0x30]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x42895f
lea ecx, [esi + 0x3c]
jmp 0x4288f6
push str.open_tab
push dword [ebp - 0x30]
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x428987
push edi
call dword [sym.imp.MSVCR71.dll_atoi]
dec eax
neg eax
sbb al, al
inc al
pop ecx
mov byte [esi + 0xc8], al
mov ecx, dword [ebp - 0x38]
test ecx, ecx
mov byte [ebp - 4], 0
je 0x428997
call fcn.0040db94
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
jb 0x4288b8
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.004d1f17
leave
ret 4