Function at 0x4070a0
Capabilities:
Check if file exists
Create directory
Delete directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4377fc
push eax
mov eax, 0x4c44
mov dword fs:[0], esp
call fcn.0041aad0
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebp
call fcn.0042f121
mov eax, dword [esp + 0x4c64]
mov ecx, dword [ebp + 0x3f918]
xor ebx, ebx
push eax
push ecx
mov dword [esp + 0x4c64], ebx
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
test eax, eax
jne 0x4070fb
push 0x78
jmp 0x407c03
mov ecx, ebp
call fcn.00408030
test eax, eax
je 0x407c16
mov ecx, ebp
call fcn.004090f0
mov ecx, dword [0x44bf54]
mov dword [0x44bf50], eax
cmp ecx, ebx
jne 0x40713a
mov ecx, dword [esp + 0x4c68]
xor edx, edx
cmp eax, ebx
sete dl
mov eax, edx
cmp eax, ebx
mov dword [ecx], eax
je 0x4077b3
mov ecx, ebp
call fcn.00409060
mov ecx, ebp
mov dword [ebp + 0x70], eax
call fcn.00408fd0
mov ecx, ebp
mov dword [ebp + 0x74], eax
call fcn.00408f40
push ebx
push str.patch.log
mov dword [ebp + 0x78], eax
call fcn.0041ac9a
add esp, 8
test eax, eax
jne 0x407176
mov dword [ebp + 0x43eb0], 1
jmp 0x40717c
mov dword [ebp + 0x43eb0], ebx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x290]
mov esi, dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x4c0]
rep stosd dword es:[edi], eax
push 0x79
mov ecx, 0x44c0d8
call esi
push eax
mov ecx, ebp
call fcn.00406a90
mov ecx, ebp
call fcn.004087a0
mov ecx, ebp
call fcn.00408090
push 0x446244
push str.list.inf
call fcn.0041a544
add esp, 8
cmp eax, ebx
mov dword [0x478210], eax
jne 0x4071e8
push 0x77
mov ecx, 0x44c0d8
call esi
jmp 0x407c0e
push 0x7a
mov ecx, 0x44c0d8
call esi
push eax
mov ecx, ebp
call fcn.00406a90
lea edx, [esp + 0x7cc]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x446404
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x78]
mov ecx, ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jne 0x4077f3
call fcn.00407c70
cmp eax, 2
je 0x40739d
test eax, eax
jne 0x4072b4
mov edi, 0x4781a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x290]
mov eax, ecx
mov esi, edi
mov edi, edx
push str.Mu.exe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x294]
push ecx
call fcn.00423800
add esp, 8
test eax, eax
jne 0x407367
mov dword [ebp + 0x3fab4], 1
jmp 0x407367
cmp eax, 0x3c
jne 0x407367
call fcn.00407c70
test eax, eax
jne 0x40731d
lea edx, [esp + 0x7cc]
push 0x4781a8
push edx
lea eax, [esp + 0x298]
push 0x4463f4
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407367
lea edx, [esp + 0x290]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x290]
push eax
call fcn.0041ab7c
add esp, 4
jmp 0x407367
cmp eax, 1
jne 0x407367
call fcn.00407c70
lea ecx, [esp + 0x7cc]
push 0x4781a8
push ecx
lea edx, [esp + 0x298]
push 0x4463f4
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407367
lea ecx, [esp + 0x290]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 1
push 0
push 0
lea edx, [esp + 0x38]
push 0
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40724f
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40724f
push str.Tempup_list.zip
lea edx, [esp + 0x190]
push 0x4461f0
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x290]
push str.up_list.zip
push 0x4461f0
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x290]
lea edx, [esp + 0x18c]
push ecx
push edx
mov ecx, ebp
call fcn.00408240
cmp eax, 1
jne 0x4077e7
push 0x92
mov ecx, 0x44c0d8
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
mov ecx, ebp
call fcn.00406a90
lea eax, [esp + 0x18c]
lea ecx, [esp + 0x88]
push eax
call fcn.00403500
lea ecx, [esp + 0x88]
mov byte [esp + 0x4c5c], 1
call fcn.004035f0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
push 0
push ecx
lea ecx, [esp + 0xa4]
call fcn.00403980
mov edx, dword [esp + 0x68]
lea esi, [edx + 1]
push esi
call fcn.0042af6f
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x88]
push 0
push 0
push 0
push 0
push esi
push ebp
push 0
call fcn.00403980
xor eax, eax
mov cl, byte [eax + ebp]
test cl, cl
je 0x407487
cmp cl, 0x2f
jne 0x407484
mov byte [eax + ebp], 0x5c
inc eax
jmp 0x407474
test eax, eax
jle 0x407496
cmp byte [eax + ebp - 1], 0x5c
je 0x4076d5
mov eax, dword [0x448128]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x7cc]
lea edx, [esp + 0x10]
push ecx
push edx
mov byte [esp + 0x4c64], 2
call fcn.0042a696
mov eax, ebp
add esp, 8
neg eax
mov esi, ebp
lea ebx, [esp + eax + 0x8d0]
lea edi, [esp + eax + 0x8d1]
mov al, byte [esi]
test al, al
je 0x40752a
cmp al, 0x5c
mov byte [ebx + esi], al
jne 0x407527
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x8d0]
push eax
push ecx
lea edx, [esp + 0x39c]
push 0x4463f4
push edx
mov byte [edi + esi], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407527
lea ecx, [esp + 0x394]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
inc esi
jmp 0x4074d0
push ebp
push str.Mu.exe
call fcn.00423800
add esp, 8
test eax, eax
jne 0x407559
mov edi, str.Mu._xe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4075d0
push ebp
push str.mumsg.dll
call fcn.00423800
add esp, 8
test eax, eax
jne 0x407572
mov edi, str.mumsg._ll
jmp 0x4075b8
push ebp
push str.wz_zp.dll
call fcn.00423800
add esp, 8
test eax, eax
jne 0x4075a1
mov edi, str.wz_zp._ll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
jmp 0x4075d0
push ebp
push str.message.wtf
call fcn.00423800
add esp, 8
test eax, eax
jne 0x4075d5
mov edi, str.message._tf
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ebp
push ecx
lea edx, [esp + 0x39c]
push 0x4463f4
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407617
lea ecx, [esp + 0x394]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push ebp
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.0042efe0
mov eax, dword [eax]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c68], 3
call fcn.0042f233
test eax, eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c5c], 2
sete bl
call fcn.0042edf5
test bl, bl
push ebp
jne 0x4076ee
call fcn.0042af98
add esp, 4
lea ecx, [esp + 0x88]
call fcn.00403830
lea ecx, [esp + 0xc54]
push 0x4000
push ecx
lea ecx, [esp + 0x90]
call fcn.004039c0
mov esi, eax
test esi, esi
jle 0x4076a6
lea edx, [esp + 0xc54]
push esi
push edx
lea ecx, [esp + 0x20]
call fcn.0042f38a
cmp esi, 0x4000
je 0x407675
lea eax, [esp + 0x48]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x90]
call fcn.004041d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c5c], 1
call fcn.0042edf5
lea ecx, [esp + 0x88]
call fcn.00403630
test al, al
je 0x407774
jmp 0x40742b
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edx
lea eax, [esp + 0xa04]
push 0x4463f4
push eax
call esi
add esp, 0x10
lea ecx, [esp + 0x9fc]
lea edx, [esp + 0xb28]
push ecx
push 0x446374
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x9fc]
push 0
push 0x10
push eax
call fcn.00432515
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0x10
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c5c], 1
call fcn.0042edf5
lea ecx, [esp + 0x88]
mov byte [esp + 0x4c5c], 0
call fcn.00403be0
jmp 0x407c16
lea ecx, [esp + 0x88]
call fcn.00403570
lea eax, [esp + 0x18c]
push eax
call fcn.0041ab7c
add esp, 4
lea ecx, [esp + 0x88]
mov byte [esp + 0x4c5c], 0
call fcn.00403be0
mov ecx, dword [0x478210]
push ecx
call fcn.0041a496
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c5c], 0xffffffff
call fcn.0042f176
mov eax, 1
mov ecx, dword [esp + 0x4c54]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c50
ret 8
mov ecx, dword [0x478210]
push ecx
jmp 0x407bf6
call fcn.00407c70
cmp eax, 2
je 0x4077a4
test eax, eax
jne 0x407ac5
mov edi, 0x4781a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x290]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x5c4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x5c4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407899
mov edi, 0x446404
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x5c4]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x5c4]
lea ecx, [esp + 0x18c]
push eax
push str.Temp_
push 0x4463f4
push ecx
call ebx
lea edi, [esp + 0x2a0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x43eb0]
mov ecx, edx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x407a01
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x89]
mov byte [esp + 0x88], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x70]
lea edi, [esp + 0x191]
test eax, eax
jne 0x407949
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
lea esi, [esp + 0x191]
lea edi, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40798a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffb
lea esi, [esp + 0x191]
mov edx, ecx
lea edi, [esp + 0x88]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x88]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x88]
mov byte [eax], 0
mov ecx, ebp
call fcn.00409680
test eax, eax
jne 0x4079ae
lea ecx, [esp + 0x88]
push ecx
mov ecx, ebp
call fcn.00409180
test eax, eax
jne 0x4077f3
jmp 0x407a01
push str.patch.log
call fcn.0041ab7c
mov eax, dword [ebp + 0x43eac]
add esp, 4
mov edx, eax
xor ecx, ecx
and edx, 0xff
mov dword [esp + 0x14], eax
push edx
xor edx, edx
mov dl, byte [esp + 0x1a]
mov cl, ah
push ecx
push edx
lea eax, [esp + 0x54]
push str._d._d._d
push eax
mov dword [ebp + 0x43eb0], 0
call ebx
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
push 0x56
mov ecx, ebp
call fcn.00409260
lea edx, [esp + 0x290]
lea eax, [esp + 0x18c]
push edx
push eax
mov ecx, ebp
call fcn.00408240
cmp eax, 1
jne 0x407bef
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x407aaf
push 0
lea ecx, [esp + 0x398]
push 0
push ecx
lea edx, [esp + 0x198]
push 0
push edx
call fcn.0041ace0
add esp, 0x14
lea eax, [esp + 0x394]
lea ecx, [esp + 0x18c]
push eax
push ecx
mov ecx, ebp
call fcn.00408c50
test eax, eax
je 0x4077e7
lea edx, [esp + 0x18c]
push edx
call fcn.0041ab7c
lea edi, [esp + 0x190]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x18c]
dec ecx
sub eax, 4
add ecx, eax
mov byte [ecx], 0
lea ecx, [esp + 0x191]
push ecx
push 0x46
mov ecx, ebp
call fcn.00409260
jmp 0x407bb9
lea edx, [esp + 0x191]
mov ecx, ebp
push edx
push 0x46
call fcn.00409260
jmp 0x407bb9
cmp eax, 1
jne 0x407bb9
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4c0]
rep stosd dword es:[edi], eax
call fcn.00407c70
mov edi, 0x4781a8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4c0]
push ecx
call fcn.0041ab50
add esp, 4
lea edx, [esp + 0x4c0]
lea eax, [esp + 0x5c4]
push edx
push str.Temp_s
push eax
call ebx
lea ecx, [esp + 0x5d0]
push ecx
call fcn.0041ab50
mov eax, dword [ebp + 0x74]
add esp, 0x10
cmp eax, 1
jne 0x407bb9
mov eax, dword [esp + 0x4c64]
lea edx, [esp + 0x4c0]
push edx
push eax
lea ecx, [esp + 0x6d0]
push str._s_s_
push ecx
call ebx
lea edi, [esp + 0x6d8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x407b99
cmp byte [esp + eax + 0x6c8], 0x5c
jne 0x407b94
mov byte [esp + eax + 0x6c8], 0x2f
inc eax
cmp eax, ecx
jl 0x407b82
mov eax, dword [ebp + 0x3f918]
lea edx, [esp + 0x6c8]
push edx
push eax
call dword [sym.imp.WININET.dll_FtpSetCurrentDirectoryA]
test eax, eax
je 0x407c31
mov ecx, ebp
call fcn.00408090
push 1
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4077f3
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4077f3
mov edx, dword [0x478210]
push edx
call fcn.0041a496
add esp, 4
push 0x8a
mov ecx, 0x44c0d8
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
mov ecx, ebp
call fcn.00406a90
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c5c], 0xffffffff
call fcn.0042f176
xor eax, eax
jmp 0x4077cc
push 0x78
mov ecx, 0x44c0d8
call dword [sym.imp.mumsg.dll_public:_char____thiscall_CMsg::Get_int_]
push eax
mov ecx, ebp
call fcn.00406a90
mov eax, dword [0x478210]
push eax
call fcn.0041a496
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c5c], 0xffffffff
call fcn.0042f176
xor eax, eax
jmp 0x4077cc