Function at 0x4d0db0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd153
mov eax, dword fs:[0]
push eax
sub esp, 0x588
mov eax, dword [0x6264e4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x56c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.0040be80
movzx eax, al
test eax, eax
je 0x4d0e1b
push 0
push 0x4f6218
push 0x4f6220
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4d0f3b
mov ecx, dword [ebp + 8]
call fcn.00401aa0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4d0e51
push 0
push 0x4f622c
push 0x4f6234
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4d0f3b
mov ecx, dword [ebp - 0x18]
and ecx, 0x10
je 0x4d0eb9
mov word [ebp - 0x224], 0
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.0047d050
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00401aa0
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0047fa14
add esp, 8
push 0x4f6244
lea ecx, [ebp - 0x224]
push ecx
call fcn.0047f9ea
add esp, 8
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d0890
add esp, 8
mov dword [ebp - 0x14], eax
jmp 0x4d0f33
mov word [ebp - 0x42c], 0
push 0x206
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.0047d050
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00401aa0
push eax
lea edx, [ebp - 0x42c]
push edx
call fcn.0047fa14
add esp, 8
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x4f6258
lea ecx, [ebp - 0x42c]
push ecx
call fcn.0047f9ea
add esp, 8
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
push eax
call fcn.004d0560
add esp, 4
test eax, eax
je 0x4d0f33
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
xor edx, edx
jne 0x4d0df3
call fcn.004a9e70
movzx eax, al
test eax, eax
je 0x4d1014
call fcn.004a9740
cmp eax, 3
jg 0x4d1014
lea ecx, [ebp - 0x4cc]
call fcn.00401030
mov dword [ebp - 0x570], eax
mov ecx, dword [ebp - 0x570]
mov dword [ebp - 0x574], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x56c]
or edx, 1
mov dword [ebp - 0x56c], edx
push 3
push 0x98
push 0x4f626c
lea ecx, [ebp - 0x4c8]
call fcn.004aa4b0
mov dword [ebp - 0x578], eax
mov eax, dword [ebp - 0x578]
mov dword [ebp - 0x57c], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x56c]
or ecx, 2
mov dword [ebp - 0x56c], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0x4f6298
mov ecx, dword [ebp - 0x574]
push ecx
call fcn.00401000
add esp, 0x10
mov ecx, eax
call fcn.00401aa0
push eax
mov ecx, dword [ebp - 0x57c]
call fcn.004177b0
mov ecx, eax
call fcn.00401610
push eax
lea ecx, [ebp - 0x435]
call fcn.0041ffe0
mov ecx, eax
call fcn.0042bb10
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x56c]
and edx, 2
je 0x4d1038
and dword [ebp - 0x56c], 0xfffffffd
lea ecx, [ebp - 0x4c8]
call fcn.004aa2b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x56c]
and eax, 1
je 0x4d105c
and dword [ebp - 0x56c], 0xfffffffe
lea ecx, [ebp - 0x4cc]
call fcn.0042ddc0
call fcn.004a9e70
movzx ecx, al
test ecx, ecx
je 0x4d1141
call fcn.004a9740
cmp eax, 3
jg 0x4d1141
lea ecx, [ebp - 0x564]
call fcn.00401030
mov dword [ebp - 0x580], eax
mov edx, dword [ebp - 0x580]
mov dword [ebp - 0x584], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x56c]
or eax, 4
mov dword [ebp - 0x56c], eax
push 3
push 0x99
push 0x4f6314
lea ecx, [ebp - 0x560]
call fcn.004aa4b0
mov dword [ebp - 0x588], eax
mov ecx, dword [ebp - 0x588]
mov dword [ebp - 0x58c], ecx
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x56c]
or edx, 8
mov dword [ebp - 0x56c], edx
mov eax, dword [0x629a14]
push eax
mov ecx, dword [0x629a10]
push ecx
mov edx, dword [0x629a0c]
push edx
push 0x4f6340
mov eax, dword [ebp - 0x584]
push eax
call fcn.00401000
add esp, 0x14
mov ecx, eax
call fcn.00401aa0
push eax
mov ecx, dword [ebp - 0x58c]
call fcn.004177b0
mov ecx, eax
call fcn.00401610
push eax
lea ecx, [ebp - 0x4cd]
call fcn.0041ffe0
mov ecx, eax
call fcn.0042bb10
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x56c]
and ecx, 8
je 0x4d1165
and dword [ebp - 0x56c], 0xfffffff7
lea ecx, [ebp - 0x560]
call fcn.004aa2b0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x56c]
and edx, 4
je 0x4d1189
and dword [ebp - 0x56c], 0xfffffffb
lea ecx, [ebp - 0x564]
call fcn.0042ddc0
cmp dword [ebp - 0x14], 0
jle 0x4d126a
mov ecx, 0x629a70
call fcn.0040be80
movzx eax, al
test eax, eax
jne 0x4d126a
mov dword [ebp - 0x434], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00401050
mov dword [ebp - 4], 4
push 0x5c
mov ecx, 0x629a70
call fcn.00401220
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
jle 0x4d1258
mov ecx, dword [ebp - 0x434]
push ecx
lea edx, [ebp - 0x568]
push edx
mov ecx, 0x629a70
call fcn.004012c0
mov dword [ebp - 0x590], eax
mov eax, dword [ebp - 0x590]
mov dword [ebp - 0x594], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x594]
mov edx, dword [ecx]
push edx
push str.e:_toufang_ftprootdayreport_s
lea eax, [ebp - 0x430]
push eax
call fcn.0040a8f0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x568]
call fcn.00401070
push 0
lea ecx, [ebp - 0x430]
call fcn.00401aa0
push eax
mov ecx, 0x629a70
call fcn.00401aa0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0047d9e4
mov esp, ebp
pop ebp
ret