Function at 0x478230
Capabilities:
Check if file exists
Create directory
Get file attributes
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x8000
lea ecx, [esp + 0x20]
call fcn.004b9680
mov eax, dword [esi + 0x354]
lea edi, [esi + 0x398]
xor ebp, ebp
mov ebx, 0x56b730
push eax
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebp
call fcn.00479cc0
test eax, eax
jne 0x4782a2
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ebx
cmp eax, 0xffffffff
je 0x478299
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], ebp
jmp 0x4785fe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and eax, 0x3fff
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
push eax
mov eax, dword [esi + 0x354]
push eax
push str.symbols__s_list.txt__d
lea ecx, [esp + 0x6c]
push 0xff
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x1c]
lea eax, [esp + 0x60]
mov ecx, esi
push edx
push eax
call fcn.00478620
test eax, eax
jne 0x4782ed
mov dword [esp + 0x10], ebx
jmp 0x47850e
push 0
lea ecx, [esp + 0x20]
call fcn.004b9800
mov edx, dword [esp + 0x20]
lea ecx, [esi + 0x185c]
lea ebx, [esi + 0x1858]
push ecx
push ebx
push edx
mov ecx, edi
call fcn.00479f20
cmp dword [ebx], 1
jge 0x478325
mov al, byte [esi + 0x1860]
test al, al
je 0x478506
mov eax, dword [esi + 0x20]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0x8aa4
push 0x111
push eax
call ebx
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, edi
call fcn.0047a1c0
test eax, eax
je 0x4784e1
jmp 0x47835e
mov ebp, dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [esi + 0x1864]
test eax, eax
jne 0x478506
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x354]
push ecx
push edx
mov ecx, eax
push eax
push ecx
push str.symbols__s__s__04d__02d__s.dat
lea edx, [esp + 0x78]
push 0xff
push edx
call ebp
add esp, 0x20
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x60]
push eax
push ecx
mov ecx, esi
call fcn.00478620
test eax, eax
je 0x478506
mov edx, dword [esi + 0x354]
lea eax, [esp + 0x60]
push edx
push 0x5965b8
push str._shistorydownloads_s
push 0xff
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4783ef
lea edx, [esp + 0x60]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x354]
push ecx
push edx
mov ecx, eax
push eax
push ecx
push 0x5965b8
push str._shistorydownloads_s_s__04d__02d__s.dat
lea edx, [esp + 0x7c]
push 0xff
push edx
call ebp
add esp, 0x24
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push 2
push 0x40000000
push eax
call fcn.00412c80
test al, al
je 0x478506
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.00412d40
cmp eax, ebp
jne 0x478520
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x478473
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
mov edx, dword [esi + 0x20]
push 0
push 0x8aa4
push 0x111
push edx
mov dword [esp + 0x28], 0
call ebx
mov ecx, dword [esp + 0x24]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, dword [esp + 0x38]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x354]
push edx
mov edx, dword [esp + 0x38]
push ecx
push edx
push eax
push str.HistoryCenter:__s__04d__02d_loaded___d_kb_
push 0
push 0x596558
call fcn.004aa400
add esp, 0x1c
lea ecx, [esp + 0x30]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, edi
call fcn.0047a1c0
test eax, eax
jne 0x478358
mov ecx, edi
call fcn.0047a2b0
mov ecx, dword [esi + 0x20]
push 0
push 0x8aa4
push 0x111
push ecx
call ebx
lea ebp, [esi + 0x1864]
cmp dword [ebp], 0
je 0x47854c
mov dword [esp + 0x10], 0x56b730
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4785f6
jmp 0x4785e7
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esi + 0x354]
push ecx
push edx
push eax
push str.HistoryCenter:_error_writting_file__s__04d__02d__s.dat
push 1
push 0x596558
call fcn.004aa400
add esp, 0x1c
jmp 0x478506
lea edx, [esp + 0x160]
mov ecx, 0x593d48
push edx
call fcn.0042f650
mov ecx, dword [esp + 0x178]
mov eax, 0x989680
cmp ecx, eax
jge 0x478587
mov dword [esp + 0x178], eax
lea eax, [esp + 0x160]
push eax
mov ecx, 0x593d48
call fcn.0042f680
mov ecx, dword [esi + 0x20]
push ebp
push ecx
mov ecx, edi
call fcn.0047a340
mov edx, dword [esi + 0x20]
push 0
push 0x8aa4
push 0x111
push edx
call ebx
mov eax, dword [esi + 0x20]
push ebp
push eax
mov ecx, edi
call fcn.0047b590
mov ecx, dword [esi + 0x20]
push 0
push 0x8aa4
push 0x111
push ecx
call ebx
push 0
push 8
mov edx, dword [0x5a0c34]
push edx
mov eax, dword [0x5a0c30]
push eax
call ebx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], 0x56b730
cmp eax, 0xffffffff
je 0x4785f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x1c]
call fcn.004b96b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret